public void GetResultAsyncShouldReturnPassForANonEmptyQueryable(NotNullOrEmpty <int> sut, [RuleContext] RuleContext context) { Assert.That(() => sut.GetResultAsync(new [] { 1, 2 }.AsQueryable(), context), Is.PassingValidationResult); }
public void GetResultAsyncShouldReturnPassForANonEmptyReadOnlyCollection(NotNullOrEmpty <int> sut, [RuleContext] RuleContext context) { Assert.That(() => sut.GetResultAsync((IReadOnlyCollection <int>) new List <int> { 1, 2 }, context), Is.PassingValidationResult); }
public void GetResultAsyncShouldReturnPassForANonEmptyArray(NotNullOrEmpty sut, [RuleContext] RuleContext context) { Assert.That(() => sut.GetResultAsync(new [] { 1, 2 }, context), Is.PassingValidationResult); }
public void GetResultAsyncShouldReturnPassForANonEmptyString(NotNullOrEmpty sut, [RuleContext] RuleContext context) { Assert.That(() => sut.GetResultAsync("Foo bar", context), Is.PassingValidationResult); }
public void GetResultAsyncShouldReturnPassForANonEmptyEnumerable(NotNullOrEmpty sut, [RuleContext] RuleContext context) { Assert.That(() => sut.GetResultAsync((IEnumerable <int>) new List <int> { 1, 2 }, context), Is.PassingValidationResult); }