private static List <Type> getAssemblyClasses(string assemblyName) { var l = GetSolution.TypesForAssembly(assemblyName); if (l.Count == 0) { report(noClassesInAssembly, assemblyName); } return(l); }
private static List <Type> GetTypes(string assembly) { var l = GetSolution.TypesForAssembly(assembly); if (l.Count == 0) { NotTested(NoClassesInAssembly, assembly); } return(l); }
[TestMethod] public void TypesForAssemblyTest() { var expected = GetSolution.AssemblyByName(assemblyName).GetTypes(); var actual = GetSolution.TypesForAssembly(dummyName); Assert.AreEqual(0, actual.Count); Assert.IsInstanceOfType(actual, typeof(List <Type>)); actual = GetSolution.TypesForAssembly(assemblyName); Assert.AreEqual(expected.Length, actual.Count); foreach (var e in expected) { Assert.IsTrue(actual.Contains(e)); } }