Exemple #1
0
        public void StringToLong()
        {
            Assert.AreEqual("1,751,477,359", mp.Evaluate("\"helo\" as decimal").ToString());


            Assert.AreEqual("\"helo\"", mp.GetInterpretation("\"helo\" as string"));
            Assert.AreEqual("\"helo\"", mp.GetInterpretation("\"helo\""));

            Assert.AreEqual("\"helo\" as Decimal", mp.GetInterpretation("\"helo\" as decimal"));
        }
Exemple #2
0
 public void GetInterpretation()
 {
     Assert.AreEqual("(0x13) as Binary", mp.GetInterpretation("0x13 as binary"));
     Assert.AreEqual("45 as Binary", mp.GetInterpretation("45 as binary"));
 }