コード例 #1
0
        public void GetMealDateFailTest()
        {
            string con = MyMethodsLib.GetConnectionString();
            var    exp = "";
            var    res = MyMethodsLib.GetMealDate(0, con);

            Assert.AreNotEqual(exp, res);
        }
コード例 #2
0
        public void GetMealDateTest()
        {
            string   con = MyMethodsLib.GetConnectionString();
            DateTime exp = default(DateTime);
            var      res = MyMethodsLib.GetMealDate(0, con);

            Assert.AreEqual(exp, res);
        }
コード例 #3
0
 public void GetMealDateExceptionThrownTest()
 {
     try
     {
         string con = MyMethodsLib.GetConnectionString();
         var    res = MyMethodsLib.GetMealDate(0, con);
         Assert.Fail();
     }
     catch (Exception) { }
 }