예제 #1
0
        public void BeepBadFrequency()
        {
            Beep task = new Beep();
            task.BuildEngine = new MockBuild();
            task.Frequency = 0;

            Assert.IsTrue(task.Execute(), @"Beep task failed");
        }
예제 #2
0
        public void BeepBadDuration()
        {
            Beep task = new Beep();
            task.BuildEngine = new MockBuild();
            task.Duration = 0;

            Assert.IsTrue(task.Execute(), @"Beep task failed");
        }
예제 #3
0
        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 BeepBadDuration()
        {
            Beep task = new Beep();

            task.BuildEngine = new MockBuild();
            task.Duration    = 0;

            Assert.IsTrue(task.Execute(), @"Beep task failed");
        }
        public void BeepBadFrequency()
        {
            Beep task = new Beep();

            task.BuildEngine = new MockBuild();
            task.Frequency   = 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");
        }
예제 #7
0
        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");
        }
        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");
        }