public void FirstReadReturnsEmptyList()
 {
     IStatePersister toTest = new StatePersister();
     toTest.Clean();
     var result = toTest.Read();
     Assert.IsEmpty(result);
 }
 public void TestPersistThenRead()
 {
     IStatePersister toTest = new StatePersister();
     var configurations = new List<Configuration>();
     for (int i = 0; i < 10; i++)
     {
         configurations.Add(GetFakeConfig(i));
     }
     toTest.Persist(configurations);
     var result = toTest.Read();
     Assert.AreEqual(result.Count, configurations.Count);
     Assert.IsTrue(result.All(configurations.Contains));
 }