Пример #1
0
 private IEnumerable <ITestRule> GetStrongEqualsReturns(T instance, T other, bool result, string testCase) =>
 StrongEqualsMethod.Select(
     method => MethodReturns <T, bool> .InstanceMethod(method, instance, result, testCase, other));
Пример #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));
Пример #3
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));
Пример #4
0
 private IEnumerable <Rules.ITestRule> GetEqualsReturns(T instance, T other, bool result, string testCase) =>
 this.EqualsMethod.Select <MethodInfo, Rules.MethodReturns <T, bool> >(
     method => MethodReturns <T, bool> .InstanceMethod(method, instance, result, testCase, other));