public void CreateTestExtensionShouldCreateExtensionTypeInstance() { var instance = TestPluginManager.CreateTestExtension <ITestDiscoverer>(typeof(DummyTestDiscoverer)); Assert.IsNotNull(instance); Assert.IsTrue(instance is ITestDiscoverer); }
public void CreateTestExtensionShouldThrowIfInstanceCannotBeCreated() { Assert.ThrowsException <MissingMethodException>(() => TestPluginManager.CreateTestExtension <ITestLogger>(typeof(AbstractDummyLogger))); }