public void TooManyArgs(IsAllowableFunc sut) { sut.IsAllowed(typeof(Func <string, string>)) .Should().BeFalse(); }
public void NotEnumerable(IsAllowableFunc sut) { sut.IsAllowed(typeof(string)) .Should().BeFalse(); }
public void Typical(IsAllowableFunc sut) { sut.IsAllowed(typeof(Func <string>)) .Should().BeTrue(); sut.ValidateTypeCtor.Received(1).Validate(typeof(string), Arg.Any <HashSet <string>?>()); }