public void CodeElements_OneClassWithNoNamespaceInProject_ReturnsOneCodeClassItem() { CreateCodeModel(); AddClassToProject("public class TestClass { }"); global::EnvDTE.CodeElements codeElements = codeModel.CodeElements; CodeClass2 codeClass = codeElements .FindFirstCodeClass2OrDefault(e => e.FullName == "TestClass"); Assert.AreEqual("TestClass", codeClass.Name); }