public void GetTotalRecordCount_WhenDbError_ThrowsException() { try { systemUnderTest = new DatabaseLogDbActions(string.Empty); systemUnderTest.GetTotalRecordCount(); Assert.IsTrue(false, "An error was not thrown."); } catch { Assert.IsTrue(true); } }
public void GetTotalRecordCount_WhenInvoked_ReturnsCorrectNumberOfRecords() { var result = systemUnderTest.GetTotalRecordCount(); Assert.AreEqual(1597, result); }