Esempio n. 1
0
        public void TestEmptyArrayDeque()
        {
            var deque = new ArrayDeque <int>();

            Assert.That(deque.Count, Is.EqualTo(0));
            Assert.That(deque.Count(), Is.EqualTo(0));
            Assert.That(() => deque.First(), Throws.InvalidOperationException.With.Message.EqualTo("Sequence contains no elements"));
        }