public void RedisHost_ReturnsAccessorWhileRunning() { // Build the test host. RedisHost testHost = new RedisHost(); testHost.Start(); // Grab the accessor. var accessor = testHost.CreateAccessor(); Assert.IsNotNull(accessor); }
public void RedisHost_ReturnsNullAccessorWhileNotRunning() { // Build the test host. RedisHost testHost = new RedisHost(); testHost.Start(); // Kill the process. testHost.Dispose(); // Grab the accessor. var accessor = testHost.CreateAccessor(); Assert.IsNull(accessor); }