Beispiel #1
0
        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);
        }
Beispiel #2
0
		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);
		}
Beispiel #3
0
        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);
        }
Beispiel #4
0
		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);
		}