public void CreateStorageTest() { var test = new TestClasse { PropertyOne = "test", PropertyTwo = 1, }; var store = new SerializationStorage<TestClasse> {test}; Assert.IsTrue(store.Any()); }
public void CleanStorageTest() { var test = new TestClasse { PropertyOne = "test", PropertyTwo = 1, }; using (var store = new SerializationStorage<TestClasse>()) { store.Add(test); } using (var store = new SerializationStorage<TestClasse>()) { store.Clear(); } using (var store = new SerializationStorage<TestClasse>()) { Assert.IsFalse(store.Any()); } }