public static bool EveryInterfaceParameterHasAnImplementation(this TypeContext typeContext) { return (typeContext.EveryClassHasOneMethod() && typeContext.EveryClassMethodHasParameters(1) && typeContext.EveryClassMethodsParameterIsAnInterface() && typeContext.ClassMethodList.All(m => { var firstParamterType = m.Value.First().GetParameters().First().ParameterType; return TypeProvider.Types.Count(t => t.Implements(firstParamterType)) >= 1; })); }
public void DannDarfJedeMethodeNurEinenParameterHaben() { _typeContext.EveryClassMethodHasParameters(1).Should().BeTrue(); }