public void DoesNotResolveInvalidStageAssemblies() { IStageDiscovery discovery = new StageDiscovery(s_log); foreach (string assm in s_invalidAssembliesToProbe) { discovery.Discover(assm); Assert.AreEqual(0, discovery.StageTypes.Count); } }
public void GetInvalidTypeFromImportedAssembly() { IStageDiscovery discovery = new StageDiscovery(s_log); discovery.Discover(s_validAssembliesToProbe.First()); Type actual = discovery.GetType("SampleStageLibrary.SomeRandomType"); Assert.IsNull(actual); }
public void DiscoverThrowsWithNullInput() { IStageDiscovery discovery = new StageDiscovery(s_log); discovery.Discover(null); }
public void DiscoverThrowsWithEmptyInput() { IStageDiscovery discovery = new StageDiscovery(s_log); discovery.Discover(String.Empty); }
public void ResolvesCorrectNumberOfTypes() { IStageDiscovery discovery = new StageDiscovery(s_log); discovery.Discover(s_validAssembliesToProbe.First()); Assert.AreEqual(1, discovery.StageTypes.Count); }
public void GetValidTypeFromImportedAssembly() { IStageDiscovery discovery = new StageDiscovery(s_log); discovery.Discover(s_validAssembliesToProbe.First()); Type actual = discovery.GetType("SampleStageLibrary.SampleStage1"); Assert.AreEqual<Type>(typeof(SampleStageLibrary.SampleStage1), actual); }
public void GetNullTypeFromImportedAssembly() { IStageDiscovery discovery = new StageDiscovery(s_log); discovery.Discover(s_validAssembliesToProbe.First()); Type actual = discovery.GetType(null); }