public void AddFirst_01()
        {
            // Arrange
            var list = new LimitList <int>(3);

            // Act
            list.AddFirst(1);
            list.AddFirst(2);

            // Assert
            CollectionAssert.AreEquivalent(new int[] { 2, 1 }, list.ToList());
        }
Beispiel #2
0
        public void AddFirst_01()
        {
            // Arrange
            var list = new LimitList <int>(3);

            // Act
            list.AddFirst(1);
            list.AddFirst(2);

            // Assert
            Assert.Equal(new int[] { 2, 1 }, list.ToList());
        }