public void ShouldReach45Degrees() { TrackingMissileLauncher launcher = new TrackingMissileLauncher(); launcher.VertAxisPos = 0; launcher.Up(); System.Threading.Thread.Sleep(5000); launcher.Stop(); Assert.AreEqual(45, launcher.VertAxisPos); }
public void ShouldStop() { TrackingMissileLauncher launcher = new TrackingMissileLauncher(); launcher.VertAxisPos = 40; launcher.Up(); System.Threading.Thread.Sleep(3000); Assert.AreEqual(45, launcher.VertAxisPos); }