Exemple #1
0
        public void ListStorageClear()
        {
            var storage = new ListStorage();

            Assert.That(storage.Count, Is.Zero);

            // Technically, various values should be set... but unless we throw an error, it should still work
            storage.AddLogSorted(logEntry);

            Assert.That(storage.Count, Is.EqualTo(1));
            Assert.That(storage.Entries, Is.Not.ExEmpty());

            storage.Clear();

            Assert.That(storage.Count, Is.Zero);
            Assert.That(storage.Entries, IsEx.ExEmpty);
        }