Пример #1
0
 public void TooManyArgs(IsAllowableFunc sut)
 {
     sut.IsAllowed(typeof(Func <string, string>))
     .Should().BeFalse();
 }
Пример #2
0
 public void NotEnumerable(IsAllowableFunc sut)
 {
     sut.IsAllowed(typeof(string))
     .Should().BeFalse();
 }
Пример #3
0
 public void Typical(IsAllowableFunc sut)
 {
     sut.IsAllowed(typeof(Func <string>))
     .Should().BeTrue();
     sut.ValidateTypeCtor.Received(1).Validate(typeof(string), Arg.Any <HashSet <string>?>());
 }