Ejemplo n.º 1
0
        public void RedisHost_ReturnsAccessorWhileRunning()
        {
            // Build the test host.
            RedisHost testHost = new RedisHost();

            testHost.Start();

            // Grab the accessor.
            var accessor = testHost.CreateAccessor();

            Assert.IsNotNull(accessor);
        }
Ejemplo n.º 2
0
        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);
        }