public void GetEnumerator_OneClassCompletionEntryInNamespace_ReturnsOneCodeClass() { helper.AddClassToProjectContentAndCompletionEntries("Test", "Test.MyClass"); CreateCodeElements("Test"); CodeClass2 codeClass = codeElements.ToList().FirstOrDefault() as CodeClass2; Assert.AreEqual(1, codeElements.Count); Assert.AreEqual("MyClass", codeClass.Name); Assert.AreEqual("Test.MyClass", codeClass.FullName); }
void AddClassToProjectContent(string namespaceName, string className) { helper.AddClassToProjectContentAndCompletionEntries(namespaceName, className); }