public void EnsureStaticInitializerDoesNotThrowForValidType() { Assert.DoesNotThrow( () => SimpleComponent.VerifyGenericParameters(typeof(ISimpleComponent), typeof(IWriteableSimpleComponent))); }
public void EnsureStaticInitalizerThrowsForInvalidWriteableComponentInterface() { Assert.Throws <NotSupportedException>( () => SimpleComponent.VerifyGenericParameters(typeof(ISimpleComponent), typeof(IWriteableComponent))); }