public void Should_correctly_add_two_items_to_the_list() { ImmutableList <int> list = new EmptyImmutableList <int>().Add(27).Add(47); list.Count.ShouldEqual(2); list.First().ShouldEqual(47); list.Skip(1).First().ShouldEqual(27); }
public void Should_correctly_add_two_items_to_the_list() { ImmutableList<int> list = new EmptyImmutableList<int>().Add(27).Add(47); list.Count.ShouldEqual(2); list.First().ShouldEqual(47); list.Skip(1).First().ShouldEqual(27); }
public void Should_correctly_add_an_item_to_the_list() { ImmutableList <int> list = new EmptyImmutableList <int>(); list = list.Add(27); list.Count.ShouldEqual(1); list.First().ShouldEqual(27); }
public void Should_correctly_add_an_item_to_the_list() { ImmutableList<int> list = new EmptyImmutableList<int>(); list = list.Add(27); list.Count.ShouldEqual(1); list.First().ShouldEqual(27); }
public void Should_correctly_implement_an_empty_queue() { var empty = new EmptyImmutableList <int>(); empty.IsEmpty.ShouldBeTrue(); }
public void Should_correctly_implement_an_empty_queue() { var empty = new EmptyImmutableList<int>(); empty.IsEmpty.ShouldBeTrue(); }