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) { } }
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); }