Inheritance: System.Management.Automation.ValidateArgumentsAttribute
Ejemplo n.º 1
0
        public void VariableNameValueValidAppend()
        {
            var sut = new ValidateVariableNameAttribute();

            Assert.IsTrue(sut.Validate("+a"));
        }
Ejemplo n.º 2
0
        public void VariableNameValueNumeric()
        {
            var sut = new ValidateVariableNameAttribute();

            Assert.IsFalse(sut.Validate(0));
        }
Ejemplo n.º 3
0
        public void VariableNameValueEmpty()
        {
            var sut = new ValidateVariableNameAttribute();

            Assert.IsFalse(sut.Validate(null));
        }
 public void VariableNameValueValidAppend()
 {
     var sut = new ValidateVariableNameAttribute();
     Assert.IsTrue(sut.Validate("+a"));
 }
 public void VariableNameValueNumeric()
 {
     var sut = new ValidateVariableNameAttribute();
     Assert.IsFalse(sut.Validate(0));
 }
 public void VariableNameValueEmpty()
 {
     var sut = new ValidateVariableNameAttribute();
     Assert.IsFalse(sut.Validate(null));
 }