示例#1
0
        public void EqualsDifferentTypesTest()
        {
            var def    = new Define(Variable.X, new Number(1));
            var number = new Number(1);

            Assert.False(def.Equals(number));
        }
示例#2
0
        public void EqualsDifferentOnjectsTest()
        {
            var def1 = new Define(Variable.X, new Number(1));
            var def2 = new Define(new Variable("y"), new Number(2));

            Assert.False(def1.Equals(def2));
        }
示例#3
0
        public void EqualsSameReferenceTest()
        {
            var def = new Define(Variable.X, new Number(1));

            Assert.True(def.Equals(def));
        }