Ejemplo n.º 1
0
        public void GetOverridingMethodsTest1()
        {
            var expected = new List <MethodDeclarationSyntax>
            {
                testAnalysis.GetMethodDeclSyntax("int ExampleCode2.DerivedAbstractClass.Method1(int)")
            };
            var actual = testAnalysis.GetOverridingMethods(testAnalysis.GetMethodDeclSyntax("int ExampleCode2.BaseClass.Method1(int)"));

            CollectionAssert.AreEqual(expected, actual);
        }
Ejemplo n.º 2
0
        public void GetOverridingMethodsTest1()
        {
            var expected = new List <MethodDeclarationSyntax> {
            };
            var actual   = testAnalysis.GetOverridingMethods(testAnalysis.GetMethodDeclSyntax("int ExampleCode1.C1.M1(int)"));

            CollectionAssert.AreEqual(expected, actual);
        }