public void GetHeightFromDbsFailTest() { int exp = 100; string con = MyMethodsLib.GetConnectionString(); int res = MyMethodsLib.GetHeightFromDbs("ladygoodwill", con); Assert.AreNotEqual(exp, res); }
public void GetHeightFromDbsExceptionThrownTest() { try { string con = MyMethodsLib.GetConnectionString(); int res = MyMethodsLib.GetHeightFromDbs("ladygoodwill", con); Assert.Fail(); } catch (Exception) { } }