public void TestSimpleIntField()
        {
            TestCase testCase = TestCase.GetClassWithIntField();
            var      finfo    = RunFieldCollectorTest(testCase);

            Assert.IsFalse(finfo.IsStatic);
        }
        public void TestSimpleIntField()
        {
            TestCase testCase  = TestCase.GetClassWithIntField();
            var      fieldNode = Helpers.GetFirstNodeOfType <FieldDeclarationSyntax>(testCase.Code);
            var      propNode  = Helpers.GetFirstNodeOfType <PropertyDeclarationSyntax>(testCase.Code);
            var      gen       = new PropertyWithValueListenerGen();

            FieldInfo fieldInfo = new FieldInfo();

            fieldInfo.Names.Add("field1");

            fieldInfo.Type      = fieldNode.Declaration.Type;
            fieldInfo.Modifiers = fieldNode.Modifiers;

            var PropNode = gen.GenerateProperty(fieldInfo);

            var getter = Helpers.GetFirstNodeOfType <AccessorDeclarationSyntax>(PropNode[0]);

            Assert.IsTrue(getter.Body.Statements[0].GetText().ToString().Contains(fieldInfo.Names[0]));
        }
        public void TestSimpleIntField()
        {
            TestCase testCase = TestCase.GetClassWithIntField();

            RunFieldGeneratorTest(testCase);
        }