Exemplo n.º 1
0
        public void ComponentThrowsWhenCopyingToDifferentComponentType()
        {
            IComponent c1 = new SimpleComponent();
            IComponent c2 = new OtherSimpleComponent();

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

            Should.Throw<ArgumentException>(() =>
            {
                c1.CopyTo(c2);
            });
        }