コード例 #1
0
 public void UninterestingNameReturnsNoSpecimen(
     ISpecimenContext context,
     ModKeyMultipleParameterBuilder sut)
 {
     foreach (var method in typeof(NotInterestingQueries).Methods())
     {
         var param = method.GetParameters().First();
         var ret   = sut.Create(param, context);
         ret.Should().BeOfType <NoSpecimen>();
     }
 }
コード例 #2
0
 public void ExistsQueriesSplitService(
     ISpecimenContext context,
     ModKeyMultipleParameterBuilder sut)
 {
     foreach (var method in typeof(ExistingQuery).Methods())
     {
         var param = method.GetParameters().First();
         var ret   = sut.Create(param, context);
         sut.SplitEnumerableIntoSubtypes
         .Received(1)
         .Split <ModKey>(context, param.ParameterType);
     }
 }