Ejemplo n.º 1
0
        public void TestMethod1()
        {
            var monitor = new StateMonitor();

            Assert.IsNotNull(monitor);
            monitor.State.PrintState();
            monitor.ChangeColor(Colors.Green);
            monitor.ShouldBlink(false);
            monitor.State.PrintState();
            monitor.ShouldBlink(true);
            monitor.State.PrintState();
            monitor.ChangeColor(Colors.Red);
            monitor.ShouldBlink(false);
            monitor.State.PrintState();
        }