public void NamespaceScanner_Scan_NS_Foo3_Test() { //arrange IEnumerable <Type> types; Mock <TestAssembly> mockAssembly = MockAssembly.GetMockWithTypeSetup(NamesapceSetupLevel.All); NamespaceScanner nsScanner = new NamespaceScanner((Assembly)mockAssembly.Object, "FakeTypes.For.ScannerTest.Foo1.Foo2.Foo3"); //act types = nsScanner.Scan(); //assert Assert.IsTrue(types.Contains(typeof(foo_3))); Assert.IsFalse(types.Contains(typeof(foo_2))); Assert.IsFalse(types.Contains(typeof(foo_1))); Assert.IsFalse(types.Contains(typeof(foo_4))); }
public void InitForEachTests() { mockAssembly = MockAssembly.GetMockWithTypeSetup(NamesapceSetupLevel.All); }
public void Init() { mockAssembly = MockAssembly.GetMockWithTypeSetup(NamesapceSetupLevel.DI); }