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);
        }
예제 #3
0
 private static MoveBase FindPlayerMove(Player player)
 {
     return(ContainerMoves.GetAllMoves().Find(move => move.Rule(player.Move)));
 }
예제 #4
0
        public static bool MoveIsValid(string move)
        {
            var allInitialsMoves = ContainerMoves.GetAllInitials();

            return(allInitialsMoves.Contains(move));
        }