Exemple #1
0
        public void Equal2Test()
        {
            var exp1 = new Undefine(Variable.X);
            var exp2 = new Undefine(new Variable("y"));

            Assert.False(exp1.Equals(exp2));
        }
Exemple #2
0
        public void EqualDiffTypesTest()
        {
            var exp1 = new Undefine(Variable.X);
            var exp2 = new Number(2);

            Assert.False(exp1.Equals(exp2));
        }
Exemple #3
0
        public void EqualTest()
        {
            var exp1 = new Undefine(Variable.X);
            var exp2 = new Undefine(Variable.X);

            Assert.True(exp1.Equals(exp2));
        }
Exemple #4
0
        public void EqualRefTest()
        {
            var exp = new Undefine(Variable.X);

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