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