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