public void Members_ClassHasOneMethod_ReturnsOneMethod() { CreateProjectContent(); CreatePublicClass("MyClass"); AddMethodToClass("MyClass.MyMethod"); CodeElements codeElements = codeClass.Members; CodeFunction2 codeFunction = codeElements.FirstCodeFunction2OrDefault(); Assert.AreEqual(1, codeElements.Count); Assert.AreEqual("MyMethod", codeFunction.Name); }