示例#1
0
 IMethod[] GetOverridableMethods(IClass baseClass)
 {
     return(OverrideCompletionDataProvider.GetOverridableMethods(new MockClass("DerivedClass")
     {
         BaseType = baseClass.DefaultReturnType
     }));
 }
示例#2
0
 protected override void InitContent()
 {
     foreach (IMethod m in OverrideCompletionDataProvider.GetOverridableMethods(currentClass))
     {
         Content.Add(new MethodWrapper(m));
     }
     Content.Sort();
 }
示例#3
0
        public void OverridableMethodPartOfClass()
        {
            MockMethod method = new MockMethod("Run");

            method.DeclaringType = c;
            method.IsOverridable = true;
            returnType.Methods.Add(method);

            IMethod[] methods = OverrideCompletionDataProvider.GetOverridableMethods(c);

            AssertAreMethodsEqual(expectedMethods, methods);
        }
示例#4
0
 public void NullArgument()
 {
     OverrideCompletionDataProvider.GetOverridableMethods(null);
 }