public void RedisHost_ProcessTerminatesSuccessfully() { // Create a new Redis host, and ensure the process is running. RedisHost testHost = new RedisHost(); testHost.Start(); // Dispose the host, and ensure that we've finished. testHost.Dispose(); Assert.IsFalse(testHost.Running); }
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); }