Exemplo n.º 1
0
 public void TestCloneShouldReturnCellWithSamePositionValues()
 {
     Cell cell1 = new Cell(new Position(1, 1));
     ICell cell2 = cell1.Clone();
     Assert.AreEqual(cell1.Position.Column, cell2.Position.Column);
     Assert.AreEqual(cell1.Position.Row,cell2.Position.Row);
 }
Exemplo n.º 2
0
 public void TestCloneShouldReturDifferentReference()
 {
     Cell cell1 = new Cell(new Position(1,1));
     ICell cell2 = cell1.Clone();
     Assert.AreNotSame(cell1,cell2);
 }
Exemplo n.º 3
0
 public void TestCloneShouldReturnCellWithSameCharValue()
 {
     Cell cell1 = new Cell(new Position(1, 1));
     ICell cell2 = cell1.Clone();
     Assert.AreEqual(cell1.ValueChar, cell2.ValueChar);
 }
Exemplo n.º 4
0
 public void TestCloneShouldReturCellWithDifferentPositionReference()
 {
     Cell cell1 = new Cell(new Position(1, 1));
     ICell cell2 = cell1.Clone();
     Assert.AreNotSame(cell1.Position, cell2.Position);
 }