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