public void PositionshouldNotchange() { TrackingMissileLauncher launcher = new TrackingMissileLauncher(); launcher.HorizAxisPos = 0; launcher.Left(); System.Threading.Thread.Sleep(1000); launcher.Fire(); Assert.AreEqual(20, launcher.HorizAxisPos); System.Threading.Thread.Sleep(1000); Assert.AreEqual(20, launcher.HorizAxisPos); }
public void ShouldReach20Degrees() { var launcher = new TrackingMissileLauncher(); launcher.HorizAxisPos = 0; launcher.Left(); System.Threading.Thread.Sleep(1000); Assert.AreEqual(20, launcher.HorizAxisPos); }
public void ShouldStop() { TrackingMissileLauncher launcher = new TrackingMissileLauncher(); launcher.HorizAxisPos = 160; launcher.Left(); System.Threading.Thread.Sleep(3000); Assert.AreEqual(180, launcher.HorizAxisPos); }