コード例 #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);
        }