Esempio n. 1
0
        public void CanGetOppositePair_DirAndOpposite()
        {
            helper.GetOppositePair(Direction.S)
            .ShouldContain()
            .Elements(Direction.S, Direction.N);

            helper.GetOppositePair(Direction.SW)
            .ShouldContain()
            .Elements(Direction.SW, Direction.NE);
        }
Esempio n. 2
0
 public override List <Direction> ExcludedDirections()
 {
     return(directionHelper.GetAllDirections()
            .Except(directionHelper.GetOppositePair(direction))
            .ToList());
 }