Exemplo n.º 1
0
        public void ParsParam_Test()
        {
            IDictionary <string, object> parms = BaseControlParameter.ParsParameter("@fromDate=123;@toDate=1391/01/02;");

            Assert.AreEqual(2, parms.Count);
            Assert.AreEqual("123", parms["fromDate"]);
            Assert.AreEqual("1391/01/02", parms["toDate"]);
        }
Exemplo n.º 2
0
 public void ParsParam_Format_Test()
 {
     try
     {
         IDictionary <string, object> parms = BaseControlParameter.ParsParameter("@fromDate=123;toDate1391/01/02");
     }
     catch (ReportParameterIsNotMatchException ex)
     {
         Assert.Pass();
     }
 }
Exemplo n.º 3
0
 public void ParsParam_Format_equalColonTest()
 {
     try
     {
         IDictionary <string, object> parms = BaseControlParameter.ParsParameter("@fromDate=123;@toDate1391/01/02;");
     }
     catch (ReportParameterIsNotMatchException ex)
     {
         Assert.AreEqual(UIFatalExceptionIdentifiers.ReportParameterParsingSplitSign, ex.FatalExceptionIdentifier);
     }
 }