public void BeepBadFrequency() { Beep task = new Beep(); task.BuildEngine = new MockBuild(); task.Frequency = 0; Assert.IsTrue(task.Execute(), @"Beep task failed"); }
public void BeepBadDuration() { Beep task = new Beep(); task.BuildEngine = new MockBuild(); task.Duration = 0; Assert.IsTrue(task.Execute(), @"Beep task failed"); }
public void BeepCustom() { Beep task = new Beep(); task.BuildEngine = new MockBuild(); task.Frequency = 440; task.Duration = 400; Assert.IsTrue(task.Execute(), @"Beep task failed"); }
public void BeepDefault() { Beep task = new Beep(); task.BuildEngine = new MockBuild(); // assert default values Assert.AreEqual(800, task.Frequency, @"Wrong default frequency"); Assert.AreEqual(200, task.Duration, @"Wrong default duration"); Assert.IsTrue(task.Execute(), @"Beep task failed"); }