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)); }
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)); }