public void TowerOfHanoi_Constructor_Test() { // Arrange & Act this.towerOfHanoi = new TowerOfHanoieCommand(); // Assert Assert.IsNotNull(this.towerOfHanoi); }
public void TowerOfHanoi_Test() { //Arrange int expectedValue = 7; int Value = 3; // Act this.towerOfHanoi = new TowerOfHanoieCommand(); this.towerOfHanoi.SolveTowerOfHanoi(Value, 'A', 'B', 'C'); // Assert Assert.AreEqual(expectedValue, this.towerOfHanoi.TotalNumOfMoves); }