public void CanMakeAMove() { StringWriter sw = new StringWriter(); Console.SetOut(sw); IComputerStrategy hardStrategy = new HardStrategy(); Computer computer = new Computer(hardStrategy); computer.AssignMarker("X"); string[] spaces = { "X", "X", "2", "3", "4", "5", "6", "7", "8" }; Assert.AreEqual(2, computer.Move(spaces)); }
public void NewHardStrategyObjectIsCreated() { hardStrategy = new HardStrategy(); }