Exemplo n.º 1
0
        public void McfContextTest_Constructor_Null_Redis_Should_Throw()
        {
            // Arrange
            _redis = null;
            McfContext context = null;

            // Act
            Action action = () => context = CreateMcfContext();

            // Assert
            context.ShouldBeNull();
            action.ShouldThrow <ArgumentNullException>().
            ParamName.ShouldBe("redis");
        }
Exemplo n.º 2
0
        public void McfContextTest_Constructor_Null_LoadBalancer_Should_Throw()
        {
            // Arrange
            _loadBalancer = null;
            McfContext context = null;

            // Act
            Action action = () => context = CreateMcfContext();

            // Assert
            context.ShouldBeNull();
            action.ShouldThrow <ArgumentNullException>().
            ParamName.ShouldBe("loadBalancerUri");
        }