public void OverrideKind_OrdinaryMethod_ReturnsNone() { CreatePublicFunction("MyClass.MyFunction"); vsCMOverrideKind kind = codeFunction.OverrideKind; Assert.AreEqual(vsCMOverrideKind.vsCMOverrideKindNone, kind); }
public void OverrideKind_MethodHiddenByNewKeyword_ReturnsNew() { CreatePublicFunction("MyClass.MyFunction"); helper.MakeMethodNewOverride(); vsCMOverrideKind kind = codeFunction.OverrideKind; Assert.AreEqual(vsCMOverrideKind.vsCMOverrideKindNew, kind); }
public void OverrideKind_SealedMethod_ReturnsSealed() { CreatePublicFunction("MyClass.MyFunction"); helper.MakeMethodSealed(); vsCMOverrideKind kind = codeFunction.OverrideKind; Assert.AreEqual(vsCMOverrideKind.vsCMOverrideKindSealed, kind); }
public void OverrideKind_VirtualMethod_ReturnsVirtual() { CreatePublicFunction("MyClass.MyFunction"); helper.MakeMethodVirtual(); vsCMOverrideKind kind = codeFunction.OverrideKind; Assert.AreEqual(vsCMOverrideKind.vsCMOverrideKindVirtual, kind); }
public void OverrideKind_AbstractMethod_ReturnsAbstract() { CreatePublicFunction("MyClass.MyFunction"); helper.MakeMethodAbstract(); vsCMOverrideKind kind = codeFunction.OverrideKind; Assert.AreEqual(vsCMOverrideKind.vsCMOverrideKindAbstract, kind); }