Validate() 개인적인 메소드

Validates that a variable name is valid with or without optional append character "+".
private Validate ( object arguments ) : bool
arguments object The arguments to validate.
리턴 bool
예제 #1
0
        public void VariableNameValueValidAppend()
        {
            var sut = new ValidateVariableNameAttribute();

            Assert.IsTrue(sut.Validate("+a"));
        }
예제 #2
0
        public void VariableNameValueNumeric()
        {
            var sut = new ValidateVariableNameAttribute();

            Assert.IsFalse(sut.Validate(0));
        }
예제 #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));
 }