Ejemplo n.º 1
0
 public void EqualBoolean()
 {
     Dictionary<string, string> values = new Dictionary<string, string>
     {
         {"true", "true"},
         {"false", "false"}
     };
     Scenario sc = new Scenario(values, "boolean", "eq", parser, templateAll, null);
     sc.Test(true);
 }
Ejemplo n.º 2
0
 public void NotEqualString()
 {
     Dictionary<string, string> values = new Dictionary<string, string>
     {
         {"text1", "text1 "},
         {"1.2.3", " 1.2.3"},
         {"ABC", "abc"},
         {"abcd", "ABCD"}
     };
     Scenario sc = new Scenario(values, "string", "ne", parser, templateFullNotation, null);
     sc.Test(true);
 }
Ejemplo n.º 3
0
 public void NotEqualInteger()
 {
     Dictionary<string, string> values = new Dictionary<string, string>
     {
         {"10", "-10"},
         {"-60", "60"},
         {"0", "-10"},
         {"-0", "2"},
         {"1", "2"}
     };
     Scenario sc = new Scenario(values, "integer", "ne", parser, templateFullNotation, null);
     sc.Test(true);
 }
Ejemplo n.º 4
0
 public void NotEqualFloat()
 {
     Dictionary<string, string> values = new Dictionary<string, string>
     {
         {"1.0", "-1.0"},
         {"0.1", "-0.0"},
         {"-0.0", "10.0"},
         {"-1.0", "1.0"}
     };
     Scenario sc = new Scenario(values, "real", "ne", parser, templateFullNotation, null);
     sc.Test(true);
 }
Ejemplo n.º 5
0
 public void MatchingRegexString()
 {
     Dictionary<string, string> values = new Dictionary<string, string>
     {
         {"teyt1 ", ".*"},
         {"c", "."},
         {"AZ123", "[A-Z0-9]*"},
         {"3", "[A-Z0-9]*"},
         {"text1", "text1"},
         {"123", "123"},
         {"teeeeeext1", "te*xt1"},
         {"ahoj", "ah*oj"}
     };
     Scenario sc = new Scenario(values, "string", "mp", parser, templateFullNotation, null);
     sc.Test(true);
 }
Ejemplo n.º 6
0
 public void GreaterEqualFloat()
 {
     Dictionary<string, string> values = new Dictionary<string, string>
     {
         {"1.0", "-1.0"},
         {"1", "0"},
         {"10", "0"},
         {"-1.0", "-2.0"},
         {"1.112", "1.112"},
         {"0", "0"},
         {"-1.01", "-1.01"}
     };
     Scenario sc = new Scenario(values, "real", "ge", parser, templateAllExComp, null);
     sc.Test(true);
 }
Ejemplo n.º 7
0
 public void EqualFloat()
 {
     Dictionary<string, string> values = new Dictionary<string, string>
     {
         {"1.0", "1.0"},
         {"0.0", "0.0"},
         {"-0.0", "0.0"},
         {"-1.0", "-1.0"}
     };
     Scenario sc = new Scenario(values, "real", "eq", parser, templateAll, null);
     sc.Test(true);
 }
Ejemplo n.º 8
0
 public void UvNotEqualInteger()
 {
     Dictionary<string, string> customVar = new Dictionary<string, string>
     {
         {"a", "-10"},
         {"b", "-1"},
         {"c", "0"},
         {"d", "1"}
     };
     Dictionary<string, string> values = new Dictionary<string, string>
     {
         {"-1", "a"},
         {"1", "b"},
         {"20", "c"},
         {"11", "d"}
     };
     Scenario sc = new Scenario(values, "integer", "uv_ne", parser, templateFullNotation, customVar);
     sc.Test(true);
 }
Ejemplo n.º 9
0
 public void LessEqualString()
 {
     Dictionary<string, string> values = new Dictionary<string, string>
     {
         {"text1", "teyt1 "},
         {"123a", "124b"},
         {"Abc", "abc"},
         {"d", "1b"},
         {"teXt1", "teXt1"},
         {"1234a", "1234a"},
         {"", ""},
         {" ", "  "}
     };
     Scenario sc = new Scenario(values, "string", "le", parser, templateAllExComp, null);
     sc.Test(true);
 }
Ejemplo n.º 10
0
 public void IpNotEqualInteger()
 {
     Dictionary<string, string> values = new Dictionary<string, string>
     {
         {"-1", "10"},
         {"1", "12"},
         {"20", "-5"},
         {"11", "1"}
     };
     Scenario sc = new Scenario(values, "integer", "ip_ne", parser, templateFullNotation, null);
     sc.Test(true);
 }
Ejemplo n.º 11
0
        public void IpEqualString()
        {
            Dictionary<string, string> values = new Dictionary<string, string>
            {
                {"text1", "text1"},
                {"123", "123"},
                {"c", "c"},
                {"d", "d"}
            };

            Scenario sc = new Scenario(values, "string", "ip_eq", parser, templateFullNotation, null);
            sc.Test(true);

            sc = new Scenario(values, "string", "ip_le", parser, templateFullNotation, null);
            sc.Test(true);

            sc = new Scenario(values, "string", "ip_ge", parser, templateFullNotation, null);
            sc.Test(true);
        }
Ejemplo n.º 12
0
 public void GreaterThanString()
 {
     Dictionary<string, string> values = new Dictionary<string, string>
     {
         {"teyt1 ", "text1"},
         {"123ddgd", "sdfs"},
         {"abc ", "Abc"},
         {"1abcd1abcd", "1abcd"}
     };
     Scenario sc = new Scenario(values, "string", "gt", parser, templateAllExComp, null);
     sc.Test(true);
 }
Ejemplo n.º 13
0
 public void GreaterEqualString()
 {
     Dictionary<string, string> values = new Dictionary<string, string>
     {
         {"aaaaaa", "bbb"},
         {"124x", "123x"},
         {"abc ", "Abc"},
         {"abaa", "1d"},
         {"tegjggxt1", "abaa"},
         {"123x", "123x"},
         {"   ", " "}
     };
     Scenario sc = new Scenario(values, "string", "ge", parser, templateAllExComp, null);
     sc.Test(true);
 }
Ejemplo n.º 14
0
 public void GreaterEqualInteger()
 {
     Dictionary<string, string> values = new Dictionary<string, string>
     {
         {"11", "10"},
         {"-60", "-61"},
         {"1", "0"},
         {"12", "1"},
         {"2", "-1"},
         {"9", "9"},
         {"60", "60"},
         {"0", "0"},
         {"-1", "-1"}
     };
     Scenario sc = new Scenario(values, "integer", "ge", parser, templateAllExComp, null);
     sc.Test(true);
 }
Ejemplo n.º 15
0
        public void UvEqualString()
        {
            Dictionary<string, string> customVar = new Dictionary<string, string>
            {
                {"a", "text1"},
                {"b", "123"},
                {"c", "1.###3"},
                {"d", "2,48"}
            };
            Dictionary<string, string> values = new Dictionary<string, string>
            {
                {"text1", "a"},
                {"123", "b"},
                {"1.###3", "c"},
                {"2,48", "d"}
            };
            Scenario sc = new Scenario(values, "string", "uv_eq", parser, templateFullNotation, customVar);
            sc.Test(true);

            sc = new Scenario(values, "string", "uv_le", parser, templateFullNotation, customVar);
            sc.Test(true);

            sc = new Scenario(values, "string", "uv_ge", parser, templateFullNotation, customVar);
            sc.Test(true);
        }
Ejemplo n.º 16
0
        public void UvGreaterThanFloat()
        {
            Dictionary<string, string> customVar = new Dictionary<string, string>
            {
                {"a", "-10.2"},
                {"b", "-1"},
                {"c", "0"},
                {"d", "1.22"}
            };
            Dictionary<string, string> values = new Dictionary<string, string>
            {
                {"-10", "a"},
                {"1", "b"},
                {"20", "c"},
                {"1.23", "d"}
            };
            Scenario sc = new Scenario(values, "real", "uv_gt", parser, templateFullNotation, customVar);
            sc.Test(true);

            sc = new Scenario(values, "real", "uv_ge", parser, templateFullNotation, customVar);
            sc.Test(true);
        }
Ejemplo n.º 17
0
 public void LessThanFloat()
 {
     Dictionary<string, string> values = new Dictionary<string, string>
     {
         {"-1.0", "1.0"},
         {"0.1", "1.0"},
         {"0.0", "10.0"},
         {"-2.0", "-1.0"}
     };
     Scenario sc = new Scenario(values, "real", "lt", parser, templateAllExComp, null);
     sc.Test(true);
 }
Ejemplo n.º 18
0
 public void LessThanInteger()
 {
     Dictionary<string, string> values = new Dictionary<string, string>
     {
         {"10", "11"},
         {"-61", "-60"},
         {"0", "1"},
         {"1", "11"},
         {"-1", "1"}
     };
     Scenario sc = new Scenario(values, "integer", "lt", parser, templateAllExComp, null);
     sc.Test(true);
 }
Ejemplo n.º 19
0
 public void LessThanString()
 {
     Dictionary<string, string> values = new Dictionary<string, string>
     {
         {"tex1", "teyt1 "},
         {"12x", "124y"},
         {"Ac", "abc"},
         {"1abd", "1hjkhkjhb"}
     };
     Scenario sc = new Scenario(values, "string", "lt", parser, templateAllExComp, null);
     sc.Test(true);
 }
Ejemplo n.º 20
0
 public void EqualInteger()
 {
     Dictionary<string, string> values = new Dictionary<string, string>
     {
         {"10", "10"},
         {"-60", "-60"},
         {"0", "-0"},
         {"-1", "-1"}
     };
     Scenario sc = new Scenario(values, "integer", "eq", parser, templateAll, null);
     sc.Test(true);
 }
Ejemplo n.º 21
0
 public void EqualString()
 {
     Dictionary<string, string> values = new Dictionary<string, string>
     {
         {"text1", "text1"},
         {"123x", "123x"},
         {"", ""},
         {" ", " "}
     };
     Scenario sc = new Scenario(values, "string", "eq", parser, templateAll, null);
     sc.Test(true);
 }