예제 #1
0
        public void ShouldHandleEnumerableWithSimpleType()
        {
            var prettyPrinter = new PrettyPrinter();
            var result        = prettyPrinter.Print(WithEnumerable.Build());

            result.Should().Be("StringList: [ { first }, { second }, { third }, {  } ]");
        }
        public void GetEnumerables_WithList_ShouldReturnOne()
        {
            WithEnumerable input = new WithEnumerable();

            IEnumerable <PropertyInfo> result = input.GetEnumerables();

            Assert.AreEqual(1, result.Count());
            Assert.AreEqual("Strings", result.First().Name);
        }