main
1using System.Collections.Generic;
2using gorilla.commons.utility;
3
4namespace tests.unit.commons.utility
5{
6 public class EnumerableExtensionsSpecs
7 {
8 [Concern(typeof (EnumerableExtensions))]
9 public class when_joining_one_collection_with_another : concerns
10 {
11 it should_return_the_items_from_both = () =>
12 {
13 results.should_contain(1);
14 results.should_contain(2);
15 };
16
17 because b = () =>
18 {
19 results = new List<int> {1}.join_with(new List<int> {2});
20 };
21
22 static IEnumerable<int> results;
23 }
24
25 [Concern(typeof (EnumerableExtensions))]
26 public class when_attemping_to_join_a_list_with_a_null_value : concerns
27 {
28 it should_return_the_original_list = () => new List<int> {1}.join_with(null).should_contain(1);
29 }
30 }
31}