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); }
public void TestCloneShouldReturDifferentReference() { Cell cell1 = new Cell(new Position(1,1)); ICell cell2 = cell1.Clone(); Assert.AreNotSame(cell1,cell2); }
public void TestCloneShouldReturnCellWithSameCharValue() { Cell cell1 = new Cell(new Position(1, 1)); ICell cell2 = cell1.Clone(); Assert.AreEqual(cell1.ValueChar, cell2.ValueChar); }
public void TestCloneShouldReturCellWithDifferentPositionReference() { Cell cell1 = new Cell(new Position(1, 1)); ICell cell2 = cell1.Clone(); Assert.AreNotSame(cell1.Position, cell2.Position); }