예제 #1
0
        public void Members_ClassHasOneProperty_ReturnsOneProperty()
        {
            CreateProjectContent();
            CreatePublicClass("MyClass");
            AddPropertyToClass("MyClass.MyProperty");

            CodeElements  codeElements = codeClass.Members;
            CodeProperty2 codeFunction = codeElements.FirstCodeProperty2OrDefault();

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