[TestMethod] public void AssemblyByNameTest() { Assert.IsNull(GetSolution.AssemblyByName(dummyName)); var assembly = GetSolution.AssemblyByName(assemblyName); Assert.IsTrue(assembly.FullName.StartsWith(assemblyName)); }
[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)); } }