Beispiel #1
0
        public async Task ConsoleWriter_PrintList_ShouldNot_throw_exception_for_empty_content()
        {
            var customers = new Customer[3];

            for (int i = 1; i <= 3; i++)
            {
                customers[i - 1] = new Customer {
                    Id = i, Name = $"Customer {i}"
                };
            }

            var writer = new ConsoleWriter();
            await writer.CreateOutputAsync <Customer>(null);

            Assert.IsTrue(true);

            await writer.CreateOutputAsync <Customer>(customers);

            Assert.IsTrue(true);
        }