Beispiel #1
0
        public void Should_instantiate_correctly_by_specification()
        {
            var argument = new FileSizeArgument("10");

            Assert.Equal("File Size", argument.Name);
            Assert.Equal(10485760L, argument.GetValue());
            Assert.Equal("-f", argument.Argument);
            Assert.False(argument.Required);
        }
Beispiel #2
0
        public void Should_value_be_default_when_instantiating_with_value_zero()
        {
            var argument = new FileSizeArgument("0");

            Assert.Equal(104857600L, argument.GetValue());
        }
Beispiel #3
0
        public void Should_instantiate_correctly_when_value_is_default()
        {
            var argument = new FileSizeArgument();

            Assert.Equal(104857600L, argument.GetValue());
        }