Esempio n. 1
0
		public void OpOverloads_Unary_DEC_Pre() {
			OpOverloads opOvers = new OpOverloads();
			const string data = "--opOver";
			OpOverloadType expected = OpOverloadType.DEC;
			object actual = CsEval.Eval(opOvers, data);
			Assert.IsTrue(expected == opOvers.opOver.LastOp);
		}
Esempio n. 2
0
		public void OpOverloads_Unary_INC_Post() {
			OpOverloads opOvers = new OpOverloads();
			const string data = "opOver++";
			OpOverloadType expected = OpOverloadType.INC;
			object actual = CsEval.Eval(opOvers, data);
			Assert.IsTrue(expected == opOvers.opOver.LastOp);
		}
Esempio n. 3
0
        public void OpOverloads_Unary_DEC_Pre()
        {
            OpOverloads    opOvers  = new OpOverloads();
            const string   data     = "--opOver";
            OpOverloadType expected = OpOverloadType.DEC;
            object         actual   = CsEval.Eval(opOvers, data);

            Assert.IsTrue(expected == opOvers.opOver.LastOp);
        }
Esempio n. 4
0
        public void OpOverloads_Unary_INC_Post()
        {
            OpOverloads    opOvers  = new OpOverloads();
            const string   data     = "opOver++";
            OpOverloadType expected = OpOverloadType.INC;
            object         actual   = CsEval.Eval(opOvers, data);

            Assert.IsTrue(expected == opOvers.opOver.LastOp);
        }
Esempio n. 5
0
        public void OpOverloads_Comparison_Gte()
        {
            OpOverloads    opOvers  = new OpOverloads();
            const string   data     = "opOver >= opOver2";
            OpOverloadType expected = OpOverloadType.GTE;
            object         actual   = CsEval.Eval(opOvers, data);

            Assert.IsTrue(expected == opOvers.opOver.LastOp);
        }
Esempio n. 6
0
        public void OpOverloads_Binary_BIT_RSHIFT()
        {
            OpOverloads    opOvers  = new OpOverloads();
            const string   data     = "opOver >> 3";
            OpOverloadType expected = OpOverloadType.BIT_RSHIFT;
            object         actual   = CsEval.Eval(opOvers, data);

            Assert.IsTrue(expected == opOvers.opOver.LastOp);
        }
Esempio n. 7
0
        public void OpOverloads_Binary_MOD()
        {
            OpOverloads    opOvers  = new OpOverloads();
            const string   data     = "opOver % opOver2";
            OpOverloadType expected = OpOverloadType.MOD;
            object         actual   = CsEval.Eval(opOvers, data);

            Assert.IsTrue(expected == opOvers.opOver.LastOp);
        }
Esempio n. 8
0
        public void OpOverloads_Unary_False()
        {
            OpOverloads    opOvers  = new OpOverloads();
            const string   data     = "(!opOver) ? true : false";
            OpOverloadType expected = OpOverloadType.FALSE;
            object         actual   = CsEval.Eval(opOvers, data);

            Assert.IsTrue(expected == opOvers.opOver.LastOp);
        }
Esempio n. 9
0
		public void OpOverloads_Unary_True() {
			OpOverloads opOvers = new OpOverloads();
			const string data = "(opOver) ? true : false";
			OpOverloadType expected = OpOverloadType.TRUE;
			object actual = CsEval.Eval(opOvers, data);
			Assert.IsTrue(expected == opOvers.opOver.LastOp);
		}
Esempio n. 10
0
		public void OpOverloads_Comparison_Gte() {
			OpOverloads opOvers = new OpOverloads();
			const string data = "opOver >= opOver2";
			OpOverloadType expected = OpOverloadType.GTE;
			object actual = CsEval.Eval(opOvers, data);
			Assert.IsTrue(expected == opOvers.opOver.LastOp);
		}
Esempio n. 11
0
		public void OpOverloads_Binary_BIT_RSHIFT() {
			OpOverloads opOvers = new OpOverloads();
			const string data = "opOver >> 3";
			OpOverloadType expected = OpOverloadType.BIT_RSHIFT;
			object actual = CsEval.Eval(opOvers, data);
			Assert.IsTrue(expected == opOvers.opOver.LastOp);
		}
Esempio n. 12
0
		public void OpOverloads_Binary_MOD() {
			OpOverloads opOvers = new OpOverloads();
			const string data = "opOver % opOver2";
			OpOverloadType expected = OpOverloadType.MOD;
			object actual = CsEval.Eval(opOvers, data);
			Assert.IsTrue(expected == opOvers.opOver.LastOp);
		}