public void Members_ClassHasOneField_ReturnsOneField()
        {
            CreateProjectContent();
            CreatePublicClass("MyClass");
            AddFieldToClass("MyClass.MyField");

            global::EnvDTE.CodeElements codeElements = codeClass.Members;
            CodeVariable codeVariable = codeElements.FirstCodeVariableOrDefault();

            Assert.AreEqual(1, codeElements.Count);
            Assert.AreEqual("MyField", codeVariable.Name);
        }
        public void Members_ClassHasOneField_ReturnsOneField()
        {
            CreateClass(
                "public class MyClass {\r\n" +
                "    public int MyField;\r\n" +
                "}");

            global::EnvDTE.CodeElements codeElements = codeClass.Members;

            CodeVariable codeVariable = codeElements.FirstCodeVariableOrDefault();

            Assert.AreEqual(1, codeElements.Count);
            Assert.AreEqual("MyField", codeVariable.Name);
        }