Beispiel #1
0
        public void Members_ClassHasOneMethod_ReturnsOneMethod()
        {
            CreateProjectContent();
            CreatePublicClass("MyClass");
            AddMethodToClass("MyClass.MyMethod");

            CodeElements codeElements = codeClass.Members;
            CodeFunction codeFunction = codeElements.FirstCodeFunctionOrDefault();

            Assert.AreEqual(1, codeElements.Count);
            Assert.AreEqual("MyMethod", codeFunction.Name);
        }