private List <string> GetTestClasses() { var tests = GetSolution.TypeNamesForAssembly(TestAssembly); RemoveNotIn(tests, TestNamespace); RemoveSurrogates(tests); return(tests.Select(RemoveGenericsChars).ToList()); }
private List <string> getTestClasses() { var l = new List <string>(); var tests = GetSolution.TypeNamesForAssembly(testAssembly); foreach (var t in tests) { var n = removeGenericsChars(t); l.Add(n); } return(l); }
[TestMethod] public void TypeNamesForAssemblyTest() { var expected = GetSolution.AssemblyByName(assemblyName).GetTypes(); var actual = GetSolution.TypeNamesForAssembly(dummyName); Assert.AreEqual(0, actual.Count); Assert.IsInstanceOfType(actual, typeof(List <string>)); actual = GetSolution.TypeNamesForAssembly(assemblyName); Assert.AreEqual(expected.Length, actual.Count); foreach (var e in expected) { Assert.IsTrue(actual.Contains(e.FullName)); } }
private void removeTested() { var tests = GetSolution.TypeNamesForAssembly(testAssembly); for (var i = list.Count; i > 0; i--) { var className = list[i - 1]; var testName = toTestName(className); var t = tests.Find(o => o.EndsWith(testName)); if (ReferenceEquals(null, t)) { continue; } list.RemoveAt(i - 1); } }
private List <string> GetTestClasses() { var tests = GetSolution.TypeNamesForAssembly(testAssembly); return(tests.Select(t => RemoveGenericsChars(t)).ToList()); }