예제 #1
0
        public void ContainsWorks()
        {
            _myArray = default;
#pragma warning disable xUnit2017 // Do not use Contains() to check if a value exists in a collection
            Assert.False(_myArray.Contains(11));
            _myArray.Add(12);
            _myArray.Add(13);
            Assert.True(_myArray.Contains(13));
#pragma warning restore xUnit2017 // Do not use Contains() to check if a value exists in a collection
        }