Пример #1
0
 public static IEnumerable <T> CollectionShouldBeEquivalentTo <T>(
     params T[] expectedParameters) => It.Is <IEnumerable <T> >((Expression <Func <IEnumerable <T>, bool> >)(parameter => MoqParameter.MatchParameter <T>(parameter, expectedParameters)));
Пример #2
0
 public static T ShouldBeEquivalentTo <T>(T expectedParameter) => It.Is <T>((Expression <Func <T, bool> >)(parameter => MoqParameter.MatchParameter <T>(parameter, expectedParameter)));
Пример #3
0
 public static T ShouldBeEquivalentTo <T>(
     T expectedParameter,
     Func <EquivalencyAssertionOptions <T>, EquivalencyAssertionOptions <T> > config) => It.Is <T>((Expression <Func <T, bool> >)(parameter => MoqParameter.MatchParameter <T>(parameter, expectedParameter, config)));