@@ -513,18 +513,30 @@ public void TypeTesting(string expression, Type type)
513
513
[ TestCase ( "new ClassForTest2(10){ Value2 = 100 }.GetType()" , ExpectedResult = typeof ( ClassForTest2 ) , Category = "Create instance with new Keyword, Object Initializer" ) ]
514
514
[ TestCase ( "new ClassForTest2(10){ Value2 = 100 }.Value1" , ExpectedResult = 10 , Category = "Create instance with new Keyword, Object Initializer" ) ]
515
515
[ TestCase ( "new ClassForTest2(10){ Value2 = 100 }.Value2" , ExpectedResult = 100 , Category = "Create instance with new Keyword, Object Initializer" ) ]
516
- [ TestCase ( "new Dictionary<int, string>(){ [7] = \" seven\" , [7+2] = \" nine\" }.GetType()" , ExpectedResult = typeof ( Dictionary < int , string > ) , Category = "Create instance with new Keyword, Object Initializer" ) ]
517
- [ TestCase ( "new Dictionary<int, string>(){ [7] = \" seven\" , [7+2] = \" nine\" }[7]" , ExpectedResult = "seven" , Category = "Create instance with new Keyword, Object Initializer" ) ]
518
- [ TestCase ( "new Dictionary<int, string>(){ [7] = \" seven\" , [7+2] = \" nine\" }[9]" , ExpectedResult = "nine" , Category = "Create instance with new Keyword, Object Initializer" ) ]
519
- [ TestCase ( "new Dictionary<int, string>{ [7] = \" seven\" , [7+2] = \" nine\" }.GetType()" , ExpectedResult = typeof ( Dictionary < int , string > ) , Category = "Create instance with new Keyword, Object Initializer" ) ]
520
- [ TestCase ( "new Dictionary<int, string>{ [7] = \" seven\" , [7+2] = \" nine\" }[7]" , ExpectedResult = "seven" , Category = "Create instance with new Keyword, Object Initializer" ) ]
521
- [ TestCase ( "new Dictionary<int, string>{ [7] = \" seven\" , [7+2] = \" nine\" }[9]" , ExpectedResult = "nine" , Category = "Create instance with new Keyword, Object Initializer" ) ]
522
- [ TestCase ( "new Dictionary<string, int>(){ [\" seven\" ] = 7, [\" nine\" ] = 9 }.GetType()" , ExpectedResult = typeof ( Dictionary < string , int > ) , Category = "Create instance with new Keyword, Object Initializer" ) ]
523
- [ TestCase ( "new Dictionary<string, int>(){ [\" seven\" ] = 7, [\" nine\" ] = 9 }[\" seven\" ]" , ExpectedResult = 7 , Category = "Create instance with new Keyword, Object Initializer" ) ]
524
- [ TestCase ( "new Dictionary<string, int>(){ [\" seven\" ] = 7, [\" nine\" ] = 9 }[\" nine\" ]" , ExpectedResult = 9 , Category = "Create instance with new Keyword, Object Initializer" ) ]
525
- [ TestCase ( "new Dictionary<string, int>{ [\" seven\" ] = 7, [\" nine\" ] = 9 }.GetType()" , ExpectedResult = typeof ( Dictionary < string , int > ) , Category = "Create instance with new Keyword, Object Initializer" ) ]
526
- [ TestCase ( "new Dictionary<string, int>{ [\" seven\" ] = 7, [\" nine\" ] = 9 }[\" seven\" ]" , ExpectedResult = 7 , Category = "Create instance with new Keyword, Object Initializer" ) ]
527
- [ TestCase ( "new Dictionary<string, int>{ [\" seven\" ] = 7, [\" nine\" ] = 9 }[\" nine\" ]" , ExpectedResult = 9 , Category = "Create instance with new Keyword, Object Initializer" ) ]
516
+ [ TestCase ( "new Dictionary<int, string>(){ [7] = \" seven\" , [7+2] = \" nine\" }.GetType()" , ExpectedResult = typeof ( Dictionary < int , string > ) , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
517
+ [ TestCase ( "new Dictionary<int, string>(){ [7] = \" seven\" , [7+2] = \" nine\" }[7]" , ExpectedResult = "seven" , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
518
+ [ TestCase ( "new Dictionary<int, string>(){ [7] = \" seven\" , [7+2] = \" nine\" }[9]" , ExpectedResult = "nine" , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
519
+ [ TestCase ( "new Dictionary<int, string>{ [7] = \" seven\" , [7+2] = \" nine\" }.GetType()" , ExpectedResult = typeof ( Dictionary < int , string > ) , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
520
+ [ TestCase ( "new Dictionary<int, string>{ [7] = \" seven\" , [7+2] = \" nine\" }[7]" , ExpectedResult = "seven" , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
521
+ [ TestCase ( "new Dictionary<int, string>{ [7] = \" seven\" , [7+2] = \" nine\" }[9]" , ExpectedResult = "nine" , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
522
+ [ TestCase ( "new Dictionary<string, int>(){ [\" seven\" ] = 7, [\" nine\" ] = 9 }.GetType()" , ExpectedResult = typeof ( Dictionary < string , int > ) , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
523
+ [ TestCase ( "new Dictionary<string, int>(){ [\" seven\" ] = 7, [\" nine\" ] = 9 }[\" seven\" ]" , ExpectedResult = 7 , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
524
+ [ TestCase ( "new Dictionary<string, int>(){ [\" seven\" ] = 7, [\" nine\" ] = 9 }[\" nine\" ]" , ExpectedResult = 9 , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
525
+ [ TestCase ( "new Dictionary<string, int>{ [\" seven\" ] = 7, [\" nine\" ] = 9 }.GetType()" , ExpectedResult = typeof ( Dictionary < string , int > ) , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
526
+ [ TestCase ( "new Dictionary<string, int>{ [\" seven\" ] = 7, [\" nine\" ] = 9 }[\" seven\" ]" , ExpectedResult = 7 , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
527
+ [ TestCase ( "new Dictionary<string, int>{ [\" seven\" ] = 7, [\" nine\" ] = 9 }[\" nine\" ]" , ExpectedResult = 9 , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
528
+ [ TestCase ( "new Dictionary<int, string>(){ {7 ,\" seven\" }, {7+2, \" nine\" } }.GetType()" , ExpectedResult = typeof ( Dictionary < int , string > ) , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
529
+ [ TestCase ( "new Dictionary<int, string>(){ {7 ,\" seven\" }, {7+2, \" nine\" } }[7]" , ExpectedResult = "seven" , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
530
+ [ TestCase ( "new Dictionary<int, string>(){ {7 ,\" seven\" }, {7+2, \" nine\" } }[9]" , ExpectedResult = "nine" , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
531
+ [ TestCase ( "new Dictionary<int, string>{ {7 ,\" seven\" }, {7+2, \" nine\" } }.GetType()" , ExpectedResult = typeof ( Dictionary < int , string > ) , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
532
+ [ TestCase ( "new Dictionary<int, string>{ {7 ,\" seven\" }, {7+2, \" nine\" } }[7]" , ExpectedResult = "seven" , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
533
+ [ TestCase ( "new Dictionary<int, string>{ {7 ,\" seven\" }, {7+2, \" nine\" } }[9]" , ExpectedResult = "nine" , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
534
+ [ TestCase ( "new Dictionary<string, int>(){ {\" seven\" , 7} , {\" nine\" , 9 } }.GetType()" , ExpectedResult = typeof ( Dictionary < string , int > ) , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
535
+ [ TestCase ( "new Dictionary<string, int>(){ {\" seven\" , 7} , {\" nine\" , 9 } }[\" seven\" ]" , ExpectedResult = 7 , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
536
+ [ TestCase ( "new Dictionary<string, int>(){ {\" seven\" , 7} , {\" nine\" , 9 } }[\" nine\" ]" , ExpectedResult = 9 , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
537
+ [ TestCase ( "new Dictionary<string, int>{ {\" seven\" , 7} , {\" nine\" , 9 } }.GetType()" , ExpectedResult = typeof ( Dictionary < string , int > ) , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
538
+ [ TestCase ( "new Dictionary<string, int>{ {\" seven\" , 7} , {\" nine\" , 9 } }[\" seven\" ]" , ExpectedResult = 7 , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
539
+ [ TestCase ( "new Dictionary<string, int>{ {\" seven\" , 7} , {\" nine\" , 9 } }[\" nine\" ]" , ExpectedResult = 9 , Category = "Create instance with new Keyword, Dictionary Initializer" ) ]
528
540
529
541
#endregion
530
542
0 commit comments