Exemplo n.º 1
0
        private static List <Type> getAssemblyClasses(string assemblyName)
        {
            var l = GetSolution.TypesForAssembly(assemblyName);

            if (l.Count == 0)
            {
                report(noClassesInAssembly, assemblyName);
            }
            return(l);
        }
Exemplo n.º 2
0
        private static List <Type> GetTypes(string assembly)
        {
            var l = GetSolution.TypesForAssembly(assembly);

            if (l.Count == 0)
            {
                NotTested(NoClassesInAssembly, assembly);
            }
            return(l);
        }
Exemplo n.º 3
0
        [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));
            }
        }