Пример #1
0
        public void BuildAListWithAnInstance()
        {
            var example = new House {
                Color = "Green", SquareFoot = 800
            };
            var houses = plant.BuildListOf(3, example);

            Assert.That(houses.Count(), Is.EqualTo(3));
            foreach (var house in houses)
            {
                Assert.That(house, Is.Not.SameAs(example));
                Assert.That(house.Color, Is.EqualTo("Green"));
                Assert.That(house.SquareFoot, Is.EqualTo(800));
            }
        }