public void Members_ClassHasOneField_ReturnsOneField() { CreateProjectContent(); CreatePublicClass("MyClass"); AddFieldToClass("MyClass.MyField"); CodeElements codeElements = codeClass.Members; CodeVariable codeVariable = codeElements.FirstCodeVariableOrDefault(); Assert.AreEqual(1, codeElements.Count); Assert.AreEqual("MyField", codeVariable.Name); }