Example #1
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);
        }
Example #2
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);
		}