public void Simple_Left_Rotation_Check() { Initialisation roverDemo = new Initialisation(); roverDemo.FacingDirection = "E"; roverDemo.ComputePosition("L"); Assert.Equal("N", roverDemo.FacingDirection); }
void IDirectionTests.Motion_Check() { Initialisation roverDemo = new Initialisation(); roverDemo.FacingDirection = "W"; roverDemo.CurrX = 2; roverDemo.CurrY = 3; roverDemo.LimitX = 100; roverDemo.LimitY = 100; roverDemo.ComputePosition("M"); Assert.Equal(1, roverDemo.CurrX); }
void IDirectionTests.Motion_Check() { Initialisation roverDemo = new Initialisation(); roverDemo.FacingDirection = "E"; roverDemo.CurrX = 2; roverDemo.CurrY = 3; roverDemo.LimitX = 100; roverDemo.LimitY = 100; roverDemo.ComputePosition("M"); Assert.Equal(3, roverDemo.CurrX); throw new NotImplementedException(); }