예제 #1
0
        public void Equals_returns_false_with_different_name()
        {
            // arrange
            TagInt target;
            TagInt other;
            bool   actual;

            target = new TagInt("Alpha", 1073741823);
            other  = new TagInt("Beta", 1073741823);

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

            // assert
            Assert.False(actual);
        }
예제 #2
0
        public void Equals_returns_false_with_different_value()
        {
            // arrange
            TagInt target;
            TagInt other;
            bool   actual;

            target = new TagInt(string.Empty, 1073741823);
            other  = new TagInt(string.Empty, 536870911);

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

            // assert
            Assert.False(actual);
        }
예제 #3
0
        public void Equals_returns_true_for_matching_tag()
        {
            // arrange
            TagInt target;
            TagInt other;
            bool   actual;

            target = new TagInt("alpha", 1073741823);
            other  = new TagInt("alpha", 1073741823);

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

            // assert
            Assert.True(actual);
        }