Ejemplo n.º 1
0
        public void Get_West_For_W()
        {
            OrientationState orientation = CommandHelper.OrientationFactory("W");

            Assert.AreSame(typeof(West), orientation.GetType());
        }
Ejemplo n.º 2
0
        public void Get_North_For_InvalidCommand()
        {
            OrientationState orientation = CommandHelper.OrientationFactory("X");

            Assert.AreSame(typeof(North), orientation.GetType());
        }
Ejemplo n.º 3
0
 public void When_Create_Rover_The_Initial_Orientation_Equals_To_Input()
 {
     Assert.AreSame(_inputOrientation.GetType(), _rover.Orientation.GetType());
 }