Ejemplo n.º 1
0
        public void IndexOf_WrongItem()
        {
            // Arrange
            ReverseCollection <int> reversedCollection = new ReverseCollection <int>(initialArray);

            int itemToSearch      = int.MaxValue;
            int expectedItemIndex = -1;

            // Act
            int actualItemIndex = reversedCollection.IndexOf(itemToSearch);

            // Assert
            Assert.AreEqual(expectedItemIndex, actualItemIndex);
        }