private void BrowseAssembly() { AsmBrowser asmBrowser = new AsmBrowser(); AssemblyInfo browseResult = asmBrowser.CollectAssemblyInfo(filePath); if (browseResult != null) { AssemblyName = browseResult.AssemblyName; AssemblyData = browseResult.Namespaces; } }
public void TestNamespaces() { result = asmBrowser.CollectAssemblyInfo("C:\\Users\\home\\Desktop\\Labs\\Третий Сем\\СПП\\OldFaker\\Faker\\bin\\Debug\\netstandard2.0\\Faker.dll"); Assert.AreEqual(result.Namespaces.Count(), 1); Assert.AreEqual(result.Namespaces.First().NamespaceName, "Faker"); Assert.AreEqual(result.Namespaces.First().TypesInfo.Count(), 12); }