Exemplo n.º 1
0
 public void RecordRecipesToDbsExceptionThrown2Test()
 {
     try
     {
         string     con     = MyMethodsLib.GetConnectionString();
         List <int> example = new List <int>()
         {
             1, 1, 1, 1, 1
         };
         MyMethodsLib.RecordRecipesToDbs(example, 1, con);
         Assert.Fail();
     }
     catch (Exception) { }
 }
Exemplo n.º 2
0
        public void RecordRecipesToDbsTest()
        {
            bool       check   = false;
            List <int> example = new List <int>()
            {
                1, 1, 1, 1, 1
            };
            string con = MyMethodsLib.GetConnectionString();

            MyMethodsLib.RecordRecipesToDbs(example, 999, con);


            Assert.AreEqual(check, MyMethodsLib.checkForTesting);
        }