Esempio n. 1
0
        public void GetLongParameterTest()
        {
            long val = BaseDocumentReport.GetLongParameter(new Dictionary <string, string> {
                { "@ObjID", "123" }
            }, "@ObjID");

            Assert.AreEqual(123, val);
        }
Esempio n. 2
0
        public void TryGetStringParameterEmptyTest()
        {
            string val;

            Assert.IsFalse(BaseDocumentReport.TryGetStringParameter(new Dictionary <string, string> {
                { "@ObjID", "" }
            }, "@ObjID", out val));
        }
Esempio n. 3
0
        public void GetStringParameterTest()
        {
            string val = BaseDocumentReport.GetStringParameter(new Dictionary <string, string> {
                { "@ObjID", "xxx" }
            }, "@ObjID");

            Assert.AreEqual("xxx", val);
        }
Esempio n. 4
0
        public void TryGetLongParameterTest()
        {
            long val;

            Assert.IsTrue(BaseDocumentReport.TryGetLongParameter(new Dictionary <string, string> {
                { "@ObjID", "123" }
            }, "@ObjID", out val));
            Assert.AreEqual(123, val);
        }
Esempio n. 5
0
 public void GetStringParameterEmptyTest()
 {
     BaseDocumentReport.GetStringParameter(new Dictionary <string, string> {
         { "@ObjID", "" }
     }, "@ObjID");
 }
Esempio n. 6
0
 public void GetStringParameterNullTest()
 {
     BaseDocumentReport.GetStringParameter(new Dictionary <string, string>(), "@ObjID");
 }