public void DatabaseIsNotInitializedWhenCallCount() { // Prepare data. var exception = Assert.ThrowsException <StorageException>(() => _adapter.Count(TableName, ColumnChannelName, StorageTestChannelName)); Assert.AreEqual("The database wasn't initialized.", exception.Message); InitializeStorageAdapter(); CreateTable(); _adapter.Count(TableName, ColumnChannelName, StorageTestChannelName); }