예제 #1
0
        public void A_ClassesCanHaveGetters()
        {
            // Classes can can have properties with just a getter.
            ClassWithGet obj = new ClassWithGet();

            // This class only has a get for A, so this would be illegal:
            //obj.A = 5;
            Assert.AreEqual(FILL_ME_IN, obj.A);
        }
예제 #2
0
        public void A_ClassesCanHaveGetters()
        {
            // Classes can can have properties with just a getter.
            ClassWithGet obj = new ClassWithGet();

            // This class only has a get for A, so this would be illegal:
            //obj.A = 5;
            Assert.Equal(FILL_ME_IN, obj.A);
        }