示例#1
0
        public void Process_IncorrectCombination_ArgumentExceptionThrown()
        {
            var    processor = new Processor();
            IColor color1    = new Blue();
            IColor color2    = new Red();

            Assert.Throws(typeof(ArgumentException), () => color1.AcceptProcessor(color2, processor));
        }
示例#2
0
        public void Process_IncorrectCombination_ArgumentExceptionThrown()
        {
            var processor = new Processor();
            IColor color1 = new Blue();
            IColor color2 = new Red();

            Assert.Throws(typeof (ArgumentException), () => color1.AcceptProcessor(color2, processor));
        }