Example #1
0
 public void TestAccessWriteOnlyInterface()
 {
     ComponentReflectionUtility.GetWriteOnlyComponentInterface(typeof(SimpleComponent))
     .ShouldBe(typeof(IWriteableSimpleComponent));
 }
Example #2
0
 public void TestInvalidTypeThrowsException()
 {
     Should.Throw <ArgumentException>(
         () =>
         ComponentReflectionUtility.GetReadOnlyComponentInterface(typeof(ComponentReflectionUtilityTests)));
 }
Example #3
0
 public void TestAccessReadOnlyInterface()
 {
     ComponentReflectionUtility.GetReadOnlyComponentInterface(typeof(SimpleComponent))
     .ShouldBe(typeof(ISimpleComponent));
 }