Example #1
0
 @Test
 public void applyValue_expect_valueSet() {
   target = target.applyValue(0, Cell.EMPTY);
   Assert.assertSame(Cell.EMPTY, target.getValue(0));
 }
Example #2
0
 @Test
 public void constructor_expect_InitiallyNull() {
   for (int i = 0; i < target.getLength(); ++i) {
     Assert.assertEquals(Cell.NULL, target.getValue(i));
   }
 }
Example #3
0
 @Test
 public void applyValue_expect_returnsNewRowColumn() {
   Assert.assertNotSame(target.applyValue(0, Cell.EMPTY), target);
 }
Example #4
0
 @Test
 public void getLength() {
   Assert.assertEquals(10, target.getLength());
 }