示例#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);
        }
示例#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);
		}