public void FactoryReturnsPaper() { var move = "P"; var moveReturned = MoveFactory.GetMoveFor(move); Assert.IsType(typeof(Paper), moveReturned); }
public void Factory_Returns_Scissors() { var move = "S"; var moveReturned = MoveFactory.GetMoveFor(move); Assert.IsType(typeof(Scissors), moveReturned); }
public void Factory_Returns_Rock() { var move = "R"; var moveReturned = MoveFactory.GetMoveFor(move); Assert.IsType(typeof(Rock), moveReturned); }
public Player(string name, string move) { _name = name; _move = MoveFactory.GetMoveFor(move); }
public void Factory_Throws_NoSuchStrategyError() { var move = "T"; Assert.Throws <NoSuchStrategyError>(() => MoveFactory.GetMoveFor(move)); }