예제 #1
0
        public void ReadWrite_PropertyHasGetterAndSetter_ReturnsReadWriteProperty()
        {
            helper.CreatePublicProperty("MyProperty");
            helper.HasGetterAndSetter();
            CreateCodeProperty2();

            vsCMPropertyKind kind = property.ReadWrite;

            Assert.AreEqual(vsCMPropertyKind.vsCMPropertyKindReadWrite, kind);
        }
예제 #2
0
        public void ReadWrite_PropertyHasSetterOnly_ReturnsWriteOnlyProperty()
        {
            helper.CreatePublicProperty("MyProperty");
            helper.HasSetterOnly();
            CreateCodeProperty2();

            vsCMPropertyKind kind = property.ReadWrite;

            Assert.AreEqual(vsCMPropertyKind.vsCMPropertyKindWriteOnly, kind);
        }