Пример #1
0
 private IEnumerable <ITestRule> GetInequalityOperatorReturns(T instance, T other, bool result, string testCase) =>
 InequalityOperator.Select(
     method => MethodReturns <T, bool> .Operator(method, "operator !=", instance, other, result, testCase));
Пример #2
0
 private IEnumerable <Rules.ITestRule> GetEqualityOperatorReturns(T instance, T other, bool result, string testCase) =>
 this.EqualityOperator.Select <MethodInfo, Rules.MethodReturns <T, bool> >(
     method => MethodReturns <T, bool> .Operator(method, "operator ==", instance, other, result, testCase));