Namespace: Drench
Assembly: Drench (in Drench.exe) Version: 1.1.1.0 (1.1.1)
Tests: Drench.Tests.BoardTests
2 unit tests call Drench.Board.Clone
Assembly: Drench (in Drench.exe) Version: 1.1.1.0 (1.1.1)
Syntax
Return Value
Type: BoardRemarks
Examples
[Test] public void CloneMatchesOriginal() { board.SetColor(0, 0, Color.Red); Board clone = board.Clone(); Assert.AreEqual(Color.Red, clone.GetColor(0, 0)); }
[Test] public void ChangingOriginalAfterCloningDoesntAffectClone() { Board clone = board.Clone(); board.SetColor(0, 0, Color.Red); Assert.AreNotEqual(Color.Red, clone.GetColor(0, 0)); }
See Also