Esempio n. 1
0
 public async Task ShouldRunAsync()
 {
     //Act
     using (var actual = await RedisRunner.StartAsync())
     {
         //Assert
         Assert.Equal(State.Running, actual.State);
     }
 }
Esempio n. 2
0
        public async Task ShouldTimeoutAsync()
        {
            //Act
            var exception = await Assert.ThrowsAsync <TimeoutException>(
                async() => await RedisRunner.StartAsync(1)
                );

            //Assert
            Assert.NotNull(exception);
        }