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