Exemple #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);
		}
Exemple #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);
		}
Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
		}
Exemple #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);
		}
Exemple #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);
		}
Exemple #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);
		}