Exemplo n.º 1
0
        public void NOrToStringTest2()
        {
            var eq = new Maths.Expressions.LogicalAndBitwise.And(new NOr(new Bool(true), new Bool(false)), new Bool(false));

            Assert.Equal("(True nor False) and False", eq.ToString(commoonFormatter));
        }
Exemplo n.º 2
0
        public void AndAndToStringTest()
        {
            var exp = new Maths.Expressions.LogicalAndBitwise.And(new Bool(true), new Maths.Expressions.LogicalAndBitwise.And(new Bool(true), new Bool(true)));

            Assert.Equal("True and (True and True)", exp.ToString(commoonFormatter));
        }