12345678910111213141516171819202122232425262728293031323334 |
-
-
- import org.junit.Assert;
- import org.junit.After;
- import org.junit.Before;
- import org.junit.Test;
-
- /**
- * The test class ScrabbleTest.
- *
- * @author (your name)
- * @version (a version number or a date)
- */
- public class ScrabbleTest
- {
- @Test
- public void scrabbleTest1(){
- Scrabble scrabble = new Scrabble();
- int actual = scrabble.score("buzz");
- int expected = 24;
- Assert.assertEquals(actual,expected);
-
- }
- @Test
- public void scrabbleTest2(){
- Scrabble scrabble = new Scrabble();
- int actual = scrabble.score("scrabble");
- int expected = 14;
- Assert.assertEquals(actual,expected);
-
- }
-
- }
|