public void ComponentThrowsWhenCopyingToDifferentComponentType() { IComponent c1 = new SimpleComponent(); IComponent c2 = new OtherSimpleComponent(); Should.Throw <ArgumentException>(() => { c1.CopyTo(c2); }); }
public void ComponentThrowsWhenCopyingToDifferentComponentType() { IComponent c1 = new SimpleComponent(); IComponent c2 = new OtherSimpleComponent(); Should.Throw<ArgumentException>(() => { c1.CopyTo(c2); }); }