Exemple #1
0
        public void ValidateNotNullNotEmptyFail1()
        {
            string a = null;

            HelperClass.ValidateNotNullNotEmpty(a, "name");
        }
Exemple #2
0
        public void ValidateNotNullFail()
        {
            object a = null;

            HelperClass.ValidateNotNull(a, "name");
        }
Exemple #3
0
 public void ValidateNotNullNotEmptyAccuracy()
 {
     HelperClass.ValidateNotNullNotEmpty("   b      ", "name");
 }
Exemple #4
0
 public void ValidateNotEmptyFail()
 {
     HelperClass.ValidateNotEmpty("         ", "name");
 }
Exemple #5
0
 public void ValidateNotNullAccuracy()
 {
     HelperClass.ValidateNotNull("abcd", "name");
     HelperClass.ValidateNotNull(new object(), "name");
 }
Exemple #6
0
 public void ValidateNonNegativeFail()
 {
     HelperClass.ValidateNonNegative(-1, "abcd");
 }
Exemple #7
0
 public void ValidateNotEmptyAccuracy()
 {
     HelperClass.ValidateNotEmpty("abcd", "name");
     HelperClass.ValidateNotEmpty("         s           ", "name");
 }
Exemple #8
0
 public void ValidateNonNegativeAccuracy()
 {
     HelperClass.ValidateNonNegative(0, "abcd");
     HelperClass.ValidateNonNegative(5, "abcd");
 }
Exemple #9
0
        public void ValidateWellFormedXml_Fail8()
        {
            string xml = File.ReadAllText("../../test_files/invalid_wrong_tag_order.xml");

            HelperClass.ValidateWellFormedXml(xml, "name");
        }
Exemple #10
0
        public void ValidateWellFormedXml_Fail7()
        {
            string xml = File.ReadAllText("../../test_files/invalid_two_roots.xml");

            HelperClass.ValidateWellFormedXml(xml, "name");
        }
Exemple #11
0
        public void ValidateWellFormedXml_Fail6()
        {
            string xml = File.ReadAllText("../../test_files/invalid_two_attributes_same_name.xml");

            HelperClass.ValidateWellFormedXml(xml, "name");
        }
Exemple #12
0
        public void ValidateWellFormedXml_Accuracy()
        {
            string xml = File.ReadAllText("../../test_files/valid.xml");

            HelperClass.ValidateWellFormedXml(xml, "name");
        }