Exemplo n.º 1
0
        public void CreateExactNumberOfItemsInAList()
        {
            var houses = plant.CreateListOf <House>(3);

            Assert.That(houses.Count(), Is.EqualTo(3));
            foreach (var house in houses)
            {
                Assert.That(house.Color, Is.EqualTo("Red"));
                Assert.That(house.SquareFoot, Is.EqualTo(1000));
            }
        }