internal static FakeOptions HasRecorder(this IArgumentConstraintManager <FakeOptions> scope, ISelfInitializingFakeRecorder recorder)
 {
     return(scope.Matches(x => recorder.Equals(x.SelfInitializedFakeRecorder), "Specified recorder"));
 }
Exemplo n.º 2
0
 internal static FakeOptions HasRecorder(this IArgumentConstraintManager<FakeOptions> scope, ISelfInitializingFakeRecorder recorder)
 {
     return scope.Matches(x => recorder.Equals(x.Wrapper.Recorder), "Specified recorder");
 }
 internal static ArgumentConstraint <FakeOptions> HasRecorder(this ArgumentConstraintScope <FakeOptions> scope, ISelfInitializingFakeRecorder recorder)
 {
     return(ArgumentConstraint.Create(scope, x => recorder.Equals(x.SelfInitializedFakeRecorder), "Specified recorder"));
 }