public void IsAssignableGenericFrom_ClassNotImplementInterface_False() { // Arrange var eventHandler = new UserEventHandler(); // Act var success = eventHandler.GetType().IsAssignableGenericFrom(typeof(IQueueService <,>)); // Assert Assert.False(success); }
public void IsAssignableGenericFrom_ClassImplementInterface_True() { // Arrange var eventHandler = new UserEventHandler(); // Act var success = eventHandler.GetType().IsAssignableGenericFrom(typeof(IEventHandler <>)); // Assert Assert.True(success); }