IMethod[] GetOverridableMethods(IClass baseClass) { return(OverrideCompletionDataProvider.GetOverridableMethods(new MockClass("DerivedClass") { BaseType = baseClass.DefaultReturnType })); }
protected override void InitContent() { foreach (IMethod m in OverrideCompletionDataProvider.GetOverridableMethods(currentClass)) { Content.Add(new MethodWrapper(m)); } Content.Sort(); }
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); }
public void NullArgument() { OverrideCompletionDataProvider.GetOverridableMethods(null); }