Beispiel #1
0
        public void turnOnGoodParameter()
        {
            IAMIAgregator agr2 = new Agregator(Enums.State.off);

            bool ret = agr2.turnOn();

            Assert.AreEqual(true, ret);
        }
Beispiel #2
0
        public void turnOnBadParameter()
        {
            IAMIAgregator agr2 = new Agregator(Enums.State.on);

            Assert.Throws <ArgumentException>(() =>
            {
                agr2.turnOn();
            });
        }