コード例 #1
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);
        }
コード例 #2
0
        public void UvEqualInteger()
        {
            Dictionary <string, string> customVar = new Dictionary <string, string>
            {
                { "a", "-10" },
                { "b", "-1" },
                { "c", "0" },
                { "d", "1" }
            };
            Dictionary <string, string> values = new Dictionary <string, string>
            {
                { "-10", "a" },
                { "-1", "b" },
                { "0", "c" },
                { "1", "d" }
            };
            Scenario sc = new Scenario(values, "integer", "uv_eq", parser, templateFullNotation, customVar);

            sc.Test(true);

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

            sc = new Scenario(values, "integer", "uv_ge", parser, templateFullNotation, customVar);
            sc.Test(true);
        }
コード例 #3
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);
 }
コード例 #4
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);
        }
コード例 #5
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);
        }
コード例 #6
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);
        }
コード例 #7
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);
        }
コード例 #8
0
        public void GreaterThanFloat()
        {
            Dictionary <string, string> values = new Dictionary <string, string>
            {
                { "1.0", "-1.0" },
                { "1.1", "0.0" },
                { "10.0", "0.0" },
                { "-1.0", "-2.0" }
            };
            Scenario sc = new Scenario(values, "real", "gt", parser, templateAllExComp, null);

            sc.Test(true);
        }
コード例 #9
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);
        }
コード例 #10
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);
        }
コード例 #11
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);
        }
コード例 #12
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);
        }
コード例 #13
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);
        }
コード例 #14
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);
        }
コード例 #15
0
        public void GreaterThanInteger()
        {
            Dictionary <string, string> values = new Dictionary <string, string>
            {
                { "11", "10" },
                { "-60", "-61" },
                { "1", "0" },
                { "111", "11" },
                { "10", "-1" }
            };
            Scenario sc = new Scenario(values, "integer", "gt", parser, templateAllExComp, null);

            sc.Test(true);
        }
コード例 #16
0
        public void LessEqualFloat()
        {
            Dictionary <string, string> values = new Dictionary <string, string>
            {
                { "-1.1", "1.0" },
                { "0.2", "1.0" },
                { "8.0", "10.0" },
                { "-2.0", "-1.0" },
                { "1.0", "1.0" },
                { "0.0", "0.0" },
                { "-1.0", "-1.0" }
            };
            Scenario sc = new Scenario(values, "real", "le", parser, templateAllExComp, null);

            sc.Test(true);
        }
コード例 #17
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);
        }
コード例 #18
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);
        }
コード例 #19
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);
        }
コード例 #20
0
        public void LessEqualInteger()
        {
            Dictionary <string, string> values = new Dictionary <string, string>
            {
                { "100", "101" },
                { "-61", "-60" },
                { "2", "11" },
                { "1", "11" },
                { "-2", "1" },
                { "10", "10" },
                { "-60", "-60" },
                { "0", "0" },
                { "-1", "-1" }
            };
            Scenario sc = new Scenario(values, "integer", "le", parser, templateAllExComp, null);

            sc.Test(true);
        }
コード例 #21
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);
        }
コード例 #22
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);
        }
コード例 #23
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);
 }
コード例 #24
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);
 }
コード例 #25
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);
 }
コード例 #26
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);
 }
コード例 #27
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);
 }
コード例 #28
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);
 }
コード例 #29
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);
 }
コード例 #30
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);
 }
コード例 #31
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);
        }
コード例 #32
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);
        }
コード例 #33
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);
 }
コード例 #34
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);
 }
コード例 #35
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);
 }
コード例 #36
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);
 }
コード例 #37
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);
 }
コード例 #38
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);
        }
コード例 #39
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);
 }
コード例 #40
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);
 }
コード例 #41
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);
 }
コード例 #42
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);
 }