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