Пример #1
0
        public void GetEmailFromDbsFailTest()
        {
            string exp = "Not going to happen";
            string con = MyMethodsLib.GetConnectionString();
            string res = MyMethodsLib.GetEmailFromDbs("ladygoodwill", con);

            Assert.AreNotEqual(exp, res);
        }
Пример #2
0
        public void GetEmailFromDbsTest()
        {
            string exp = "";
            string con = MyMethodsLib.GetConnectionString();
            string res = MyMethodsLib.GetEmailFromDbs("ladygoodwill", con);

            Assert.AreEqual(exp, res);
        }
Пример #3
0
 public void GetEmailFromDbsExceptionThrownTest()
 {
     try
     {
         string con = MyMethodsLib.GetConnectionString();
         string res = MyMethodsLib.GetEmailFromDbs("ladygoodwill", con);
         Assert.Fail();
     }
     catch (Exception) { }
 }