public void InvalidPost() { // Arrange bool res = false; SQLiteServiceBase db = new SQLiteServiceBase(); Location obj = GetValidObject(); // Act try { db.Add(obj); } catch (Exception) { res = true; } // Assert Assert.IsFalse(res); }
public void Post() { // Arrange bool res = true; SQLiteServiceBase db = new SQLiteServiceBase(); CustomerEmployee obj = GetValidObject(); // Act try { db.Add(obj); } catch (Exception) { res = false; } // Assert Assert.IsTrue(res); }