public void TestAggregate()
        {
            var aggregator = new PassThroughLineAggregator<Person>();
            var person = new Person { Id = 1, Name = "Person 1" };

            var result = aggregator.Aggregate(person);

            Assert.AreEqual("[Person-Id(1),Name(Person 1)", result);
        }
示例#2
0
        public void TestAggregate()
        {
            var aggregator = new PassThroughLineAggregator <Person>();
            var person     = new Person {
                Id = 1, Name = "Person 1"
            };

            var result = aggregator.Aggregate(person);

            Assert.AreEqual("[Person-Id(1),Name(Person 1)", result);
        }