public void GetDatesOfInputWeightExceptionThrownTest() { try { string con = MyMethodsLib.GetConnectionString(); List <string> listRes = MyMethodsLib.GetDatesOfInputWeight("ladygoodwill", con); Assert.Fail(); } catch (Exception) { } }
public void GetDatesOfInputWeightFailTest() { List <string> emptyList = new List <string>(); int exp = emptyList.Count + 1; string con = MyMethodsLib.GetConnectionString(); List <string> listRes = MyMethodsLib.GetDatesOfInputWeight("ladygoodwill", con); int res = listRes.Count; Assert.AreNotEqual(exp, res); }