public void ShouldReach36Degrees() { TrackingMissileLauncher launcher = new TrackingMissileLauncher(); launcher.VertAxisPos = 45; launcher.Down(); System.Threading.Thread.Sleep(1000); launcher.Stop(); Assert.AreEqual(36, launcher.VertAxisPos); }
public void ShouldStop() { TrackingMissileLauncher launcher = new TrackingMissileLauncher(); launcher.VertAxisPos = 5; launcher.Down(); System.Threading.Thread.Sleep(3000); Assert.AreEqual(0, launcher.VertAxisPos); }