示例#1
0
 public void It_should_concatenate_the_list_of_strings_returned_by_the_enumerator()
 {
     Assert.AreEqual("123j",
                     GetLambda <object>()(new List <object> {
         1, "2", 3, "j"
     }));
 }
示例#2
0
 public void It_should_map_properly_from_different_source_types()
 {
     Assert.AreEqual("1234", GetLambda <int>()(new List <int> {
         1, 2, 3, 4
     }));
     Assert.AreEqual("hello, world!",
                     GetLambda <string>()(new List <string> {
         "hello", ", ", "world", "!", ""
     }));
 }
示例#3
0
 public void It_should_return_null_if_the_object_is_null()
 {
     Assert.IsNull(GetLambda <object>()(null));
 }