public void Equals_should_return_false_for_fill_array_and_null_array()
        {
            var first = new IntCollection();

            first.Collection = null;
            first.Count      = 0;

            var second = new IntCollection();

            second.Collection = new[] { 1 };
            second.Count      = 0;

            var result = first.Equals(second);

            Assert.False(result);
        }
        public void Equals_should_return_true_for_reference_equal_array()
        {
            var first = new IntCollection();

            first.Collection = new[] { 1, 2, 3, 4, 5, 6 };
            first.Count      = 2;

            var second = new IntCollection();

            second.Collection = first.Collection;
            second.Count      = 2;

            var result = first.Equals(second);

            Assert.True(result);
        }
        public void Equals_should_return_true_for_null_array()
        {
            var first = new IntCollection();

            first.Collection = null;
            first.Count      = 0;

            var second = new IntCollection();

            second.Collection = null;
            second.Count      = 0;

            var result = first.Equals(second);

            Assert.True(result);
        }
        public void Equals_should_return_true_for_equal_collections()
        {
            var first = new IntCollection();

            first.Collection = new[] { 1, 2, 3, 4, 5, 6 };
            first.Count      = 2;

            var second = new IntCollection();

            second.Collection = new List <int> {
                1, 2, 3, 4, 5, 6
            };
            second.Count = 2;

            var result = first.Equals(second);

            Assert.True(result);
        }