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