public void ContainsShouldThrowExceptionForNull()
        {
            var col = new NonGenericCollection();

            Assert.Throws <ArgumentNullException>(
                "item", () => col.Contains(null));
        }
        public void AddManyShouldNotThrowException(string[] data)
        {
            var col = new NonGenericCollection();

            col.AddMany(data);
            // if no exception thrown, success
        }
        public void AddShouldNotThrowException()
        {
            // Arrange
            var col = new NonGenericCollection();

            // Act
            col.Add("test string");

            // Assert
            // if we reach here, the test is successful
        }
        public void DumbLongestShouldReturnLongest(
            string expected, string[] data)
        {
            // Arrange
            var col = new NonGenericCollection();

            col.AddMany(data);

            // Act
            var actual = col.DumbLongest();

            // Assert
            Assert.Equal(expected, actual);
        }
        public void ThirdAlphabeticalShouldReturnCorrectly()
        {
            // Arrange
            var col   = new NonGenericCollection();
            var items = new List <string>
            {
                "a", "abc", "ab", "Nick Escalona", "12345"
            };
            var expected = "ab";

            col.AddMany(items);

            // Act
            var actual = col.ThirdAlphabetical();

            // Assert
            Assert.Equal(expected, actual);
        }
        public void ExtensionMethodIsEmptyShouldSayEmpty()
        {
            var col = new NonGenericCollection();

            Assert.True(col.IsEmpty());
        }