public void RandomDelayShouldThrowIfMaxIsSmallerThanMin() { IRandomDataService randomDataService = new RandomDataService(); Assert.ThrowsAsync <ArgumentOutOfRangeException>("maxSeconds", () => randomDataService.RandomDelay(1, 0)); }
public void RandomDelayShouldThrowIfMinIsNegative() { IRandomDataService randomDataService = new RandomDataService(); Assert.ThrowsAsync <ArgumentOutOfRangeException>("minSeconds", () => randomDataService.RandomDelay(-1, 0)); }