Exemplo n.º 1
0
        public void RandomDelayShouldThrowIfMaxIsSmallerThanMin()
        {
            IRandomDataService randomDataService = new RandomDataService();

            Assert.ThrowsAsync <ArgumentOutOfRangeException>("maxSeconds", () => randomDataService.RandomDelay(1, 0));
        }
Exemplo n.º 2
0
        public void RandomDelayShouldThrowIfMinIsNegative()
        {
            IRandomDataService randomDataService = new RandomDataService();

            Assert.ThrowsAsync <ArgumentOutOfRangeException>("minSeconds", () => randomDataService.RandomDelay(-1, 0));
        }