Ejemplo n.º 1
0
        public void TheCtorShouldThrowOnNullOrWhitespace(string value)
        {
            // ReSharper disable once NotAccessedVariable
            ScalingExpression expr;
            Action            action = () => expr = new ScalingExpression(value);

            action.ShouldThrow <ArgumentException>();
        }
Ejemplo n.º 2
0
        public void TheToStringMethodShouldReturnValue(string verbatim)
        {
            var expr = new ScalingExpression(verbatim);

            expr.ToString().Should().Be(verbatim);
        }
Ejemplo n.º 3
0
        public void TheValuePropertyShouldReturnCorrectValue(string verbatim)
        {
            var expr = new ScalingExpression(verbatim);

            expr.Value.Should().Be(verbatim);
        }
 public void TheCtorShouldThrowWhenScalingExpressionIsNull(ScalingExpression scalingExpression)
 {
     Constructor(() => new SetInstanceCountSettings("appalias", "v1", "componentAlias", scalingExpression)).ShouldThrow <ArgumentException>().And.ParamName.Should().Be("expression");
 }