public void Equals_returns_true_for_matching_tag()
        {
            // arrange
            TagIntArray target;
            TagIntArray other;
            bool        actual;

            target = new TagIntArray("alpha", new[] { 2190, 2994, 3248, 4294394 });
            other  = new TagIntArray("alpha", new[] { 2190, 2994, 3248, 4294394 });

            // act
            actual = target.Equals(other);

            // assert
            Assert.True(actual);
        }
        public void Equals_returns_false_with_different_value()
        {
            // arrange
            TagIntArray target;
            TagIntArray other;
            bool        actual;

            target = new TagIntArray(string.Empty, new[] { 2190, 2994, 3248, 4294394 });
            other  = new TagIntArray(string.Empty, new[] { 2190, 2994, 3248, 294394 });

            // act
            actual = target.Equals(other);

            // assert
            Assert.False(actual);
        }
Exemple #3
0
        public void Equals_returns_false_with_different_name()
        {
            // arrange
            TagIntArray target;
            TagIntArray other;
            bool        actual;

            target = new TagIntArray("Alpha", new[] { 2190, 2994, 3248, 4294394 });
            other  = new TagIntArray("Beta", new[] { 2190, 2994, 3248, 4294394 });

            // act
            actual = target.Equals(other);

            // assert
            Assert.IsFalse(actual);
        }