@@ -688,13 +688,6 @@ public void TypeTesting(string expression, Type type)
688
688
[ TestCase ( "IEEERemainder(6, 3)" , ExpectedResult = 0 , Category = "Standard Functions,IEEERemainder Function" ) ]
689
689
#endregion
690
690
691
- //#region if Function
692
- //[TestCase("if(true, \"It's OK\", \"Ho no\")", ExpectedResult = "It's OK", Category = "Standard Functions,if Function")]
693
- //[TestCase("if(false, \"It's OK\", \"Ho no\")", ExpectedResult = "Ho no", Category = "Standard Functions,if Function")]
694
- //[TestCase("if(3<5, \"It's OK\", \"Ho no\")", ExpectedResult = "It's OK", Category = "Standard Functions,if Function")]
695
- //[TestCase("if(3>5, \"It's OK\", \"Ho no\")", ExpectedResult = "Ho no", Category = "Standard Functions,if Function")]
696
- //#endregion
697
-
698
691
#region in Function
699
692
[ TestCase ( "in(8, 4, 2, 8)" , ExpectedResult = true , Category = "Standard Functions,in Function" ) ]
700
693
[ TestCase ( "in(20, 4, 2, 8)" , ExpectedResult = false , Category = "Standard Functions,in Function" ) ]
@@ -708,6 +701,18 @@ public void TypeTesting(string expression, Type type)
708
701
[ TestCase ( "List(14, \" A text for test\" , 2.5, true)[3]" , ExpectedResult = true , Category = "Standard Functions,List Function,Indexing" ) ]
709
702
#endregion
710
703
704
+ #region ListOfType Function
705
+ [ TestCase ( "ListOfType(typeof(int), 1,2,3 ).GetType()" , ExpectedResult = typeof ( List < int > ) , Category = "Standard Functions,ListOfType Function,Instance Property" ) ]
706
+ [ TestCase ( "ListOfType(typeof(int), 1,2,3 ).Count" , ExpectedResult = 3 , Category = "Standard Functions,ListOfType Function,Instance Property" ) ]
707
+ [ TestCase ( "ListOfType(typeof(int), 1,2,3 )[0]" , ExpectedResult = 1 , Category = "Standard Functions,ListOfType Function,Indexing" ) ]
708
+ [ TestCase ( "ListOfType(typeof(int), 1,2,3 )[1]" , ExpectedResult = 2 , Category = "Standard Functions,ListOfType Function,Indexing" ) ]
709
+ [ TestCase ( "ListOfType(typeof(int), 1,2,3 )[2]" , ExpectedResult = 3 , Category = "Standard Functions,ListOfType Function,Indexing" ) ]
710
+ [ TestCase ( "ListOfType(typeof(string), \" hello\" ,\" Test\" ).GetType()" , ExpectedResult = typeof ( List < string > ) , Category = "Standard Functions,ListOfType Function,Instance Property" ) ]
711
+ [ TestCase ( "ListOfType(typeof(string), \" hello\" ,\" Test\" ).Count" , ExpectedResult = 2 , Category = "Standard Functions,ListOfType Function,Instance Property" ) ]
712
+ [ TestCase ( "ListOfType(typeof(string), \" hello\" ,\" Test\" )[0]" , ExpectedResult = "hello" , Category = "Standard Functions,ListOfType Function,Indexing" ) ]
713
+ [ TestCase ( "ListOfType(typeof(string), \" hello\" ,\" Test\" )[1]" , ExpectedResult = "Test" , Category = "Standard Functions,ListOfType Function,Indexing" ) ]
714
+ #endregion
715
+
711
716
#region Log Function
712
717
[ TestCase ( "Log(64d, 2d)" , ExpectedResult = 6 , Category = "Standard Functions,Log Function" ) ]
713
718
[ TestCase ( "Log(100d, 10d)" , ExpectedResult = 2 , Category = "Standard Functions,Log Function" ) ]
0 commit comments