Пример #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);
 }
Пример #2
0
 public void TestCloneShouldReturDifferentReference()
 {
     Cell cell1 = new Cell(new Position(1,1));
     ICell cell2 = cell1.Clone();
     Assert.AreNotSame(cell1,cell2);
 }
Пример #3
0
 public void TestCloneShouldReturnCellWithSameCharValue()
 {
     Cell cell1 = new Cell(new Position(1, 1));
     ICell cell2 = cell1.Clone();
     Assert.AreEqual(cell1.ValueChar, cell2.ValueChar);
 }
Пример #4
0
 public void TestCloneShouldReturCellWithDifferentPositionReference()
 {
     Cell cell1 = new Cell(new Position(1, 1));
     ICell cell2 = cell1.Clone();
     Assert.AreNotSame(cell1.Position, cell2.Position);
 }