예제 #1
0
        public void ValueNode_NotEquals(int avalue, int bvalue)
        {
            // arrange
            IValueNode a = new IntValueNode(avalue);
            IValueNode b = new IntValueNode(bvalue);

            // act
            bool result = a.Equals(b);

            // assert
            Assert.False(result);
        }
예제 #2
0
        public void ValueNode_Equals(int value)
        {
            // arrange
            IValueNode a = new IntValueNode(value);
            IValueNode b = new IntValueNode(value);

            // act
            bool result = a.Equals(b);

            // assert
            Assert.True(result);
        }