Esempio n. 1
0
        public void TestWrap()
        {
            for (var i = 0; i < 10001; i++)
            {
                _subject.AddEntry(new LogEntry {
                    ErrorMessage = i.ToString(CultureInfo.InvariantCulture)
                });
            }

            Assert.AreEqual(10000, _subject.Entries().Count());
            Assert.AreEqual("1", _subject.Entries().First().ErrorMessage);
            Assert.AreEqual("10000", _subject.Entries().Last().ErrorMessage);
        }