Пример #1
0
        public void OverrideKind_OrdinaryMethod_ReturnsNone()
        {
            CreatePublicFunction("MyClass.MyFunction");

            vsCMOverrideKind kind = codeFunction.OverrideKind;

            Assert.AreEqual(vsCMOverrideKind.vsCMOverrideKindNone, kind);
        }
Пример #2
0
        public void OverrideKind_MethodHiddenByNewKeyword_ReturnsNew()
        {
            CreatePublicFunction("MyClass.MyFunction");
            helper.MakeMethodNewOverride();

            vsCMOverrideKind kind = codeFunction.OverrideKind;

            Assert.AreEqual(vsCMOverrideKind.vsCMOverrideKindNew, kind);
        }
Пример #3
0
        public void OverrideKind_SealedMethod_ReturnsSealed()
        {
            CreatePublicFunction("MyClass.MyFunction");
            helper.MakeMethodSealed();

            vsCMOverrideKind kind = codeFunction.OverrideKind;

            Assert.AreEqual(vsCMOverrideKind.vsCMOverrideKindSealed, kind);
        }
Пример #4
0
        public void OverrideKind_VirtualMethod_ReturnsVirtual()
        {
            CreatePublicFunction("MyClass.MyFunction");
            helper.MakeMethodVirtual();

            vsCMOverrideKind kind = codeFunction.OverrideKind;

            Assert.AreEqual(vsCMOverrideKind.vsCMOverrideKindVirtual, kind);
        }
Пример #5
0
        public void OverrideKind_AbstractMethod_ReturnsAbstract()
        {
            CreatePublicFunction("MyClass.MyFunction");
            helper.MakeMethodAbstract();

            vsCMOverrideKind kind = codeFunction.OverrideKind;

            Assert.AreEqual(vsCMOverrideKind.vsCMOverrideKindAbstract, kind);
        }