public void DataStorage_InMemoryStorage_HasObject_Missing() { IDataStorage storage = new InMemoryStorage(); const string input = "missing"; const bool expected = false; var actual = storage.HasObject(input); Assert.Equal(expected, actual); }
public void DataStorage_InMemoryStorage_HasObject_Existing() { IDataStorage storage = new InMemoryStorage(); const string key = "Test/key"; const int obj = 6; storage.StoreObject(obj, key); const bool expected = true; var actual = storage.HasObject(key); Assert.Equal(expected, actual); }