Exemplo n.º 1
0
        public void CloneTest()
        {
            var exp   = new And(new Bool(true), new Bool(false));
            var clone = exp.Clone();

            Assert.Equal(exp, clone);
        }
Exemplo n.º 2
0
        public void CloneTest()
        {
            var lessThen    = new LessThan(Variable.X, new Number(10));
            var greaterThen = new GreaterThan(Variable.X, new Number(10));
            var exp         = new And(lessThen, greaterThen);
            var clone       = exp.Clone();

            Assert.Equal(exp, clone);
        }
Exemplo n.º 3
0
        public void CloneTest()
        {
            var parameters = new ParameterCollection()
            {
                new Parameter("x", 0)
            };
            var lessThen    = new LessThan(new Variable("x"), new Number(10));
            var greaterThen = new GreaterThan(new Variable("x"), new Number(10));
            var exp         = new And(lessThen, greaterThen);
            var clone       = exp.Clone();

            Assert.Equal(exp, clone);
        }