public void Should_be_returned_all_initials_moves() { var allInitialsMoves = GetAllMoveBaseClass().Select(x => x.InitialMove); var containerInitials = ContainerMoves.GetAllInitials(); containerInitials.Should().BeEquivalentTo(allInitialsMoves); }
public void Should_be_recorded_all_moves() { var allMoves = GetAllMoveBaseClass(); var containerMoves = ContainerMoves.GetAllMoves(); containerMoves.Should().BeEquivalentTo(allMoves); }
private static MoveBase FindPlayerMove(Player player) { return(ContainerMoves.GetAllMoves().Find(move => move.Rule(player.Move))); }
public static bool MoveIsValid(string move) { var allInitialsMoves = ContainerMoves.GetAllInitials(); return(allInitialsMoves.Contains(move)); }