Exemple #1
0
		public void DynamicListShouldContainTakeMethod()
		{
			var list =
				new DynamicList(
					new List<Address>
					{
						new Address { Street = "Street1" },
						new Address { Street = "Street2" },
						new Address { Street = "Street3" }
					});

			Assert.Equal(2, list.Take(2).Count());
		}
Exemple #2
0
        public void DynamicListShouldContainTakeMethod()
        {
            var list =
                new DynamicList(
                    new List <Address>
            {
                new Address {
                    Street = "Street1"
                },
                new Address {
                    Street = "Street2"
                },
                new Address {
                    Street = "Street3"
                }
            });

            Assert.Equal(2, list.Take(2).Count());
        }