public async Task BothAndedSpecificationAreFalse() { SetLeftAndRightExpressionsResults(false, false); var isValid = await LeftSpecificationAsync.AndAsync(RightSpecificationAsync).IsSatisfiedByAsync("Clark Kent"); isValid.Should().BeFalse(); CheckCallTosOfLeftAndRightExpressions(Repeated.Exactly.Once, Repeated.Never); }
public async Task RightSpecificationIsFalse() { SetLeftAndRightExpressionsResults(true, false); var isValid = await LeftSpecificationAsync.AndAsync(RightSpecificationAsync).IsSatisfiedByAsync("Jason Voorhees"); isValid.Should().BeFalse(); CheckCallTosOfLeftAndRightExpressions(Repeated.Exactly.Once, Repeated.Exactly.Once); }
public async Task LeftSpecificationIsFalse() { SetLeftAndRightExpressionsResults(false, true); var isValid = await LeftSpecificationAsync.AndAsync(RightSpecificationAsync).IsSatisfiedByAsync("Wade Wilson"); isValid.Should().BeFalse(); CheckCallTosOfLeftAndRightExpressions(Repeated.Exactly.Once, Repeated.Never); }
public async Task BothAndedSpecificationsAreTrue() { SetLeftAndRightExpressionsResults(true, true); var isValid = await LeftSpecificationAsync.AndAsync(RightSpecificationAsync).IsSatisfiedByAsync("Wolverine"); isValid.Should().BeTrue(); CheckCallTosOfLeftAndRightExpressions(Repeated.Exactly.Once, Repeated.Exactly.Once); }