public void Should_write_change_asap() { Page1.Name = "x2"; using (var fss = new FileSystemStorage(_dir)) { Assert.AreEqual("x2", fss.GetPage(Page1.Identity).Name); } Page1.Content = "x3"; using (var fss = new FileSystemStorage(_dir)) { Assert.AreEqual("x3\r\n", fss.GetPage(Page1.Identity).Content); Assert.AreEqual("x2", fss.GetPage(Page1.Identity).Name); } Page1.Content = "x3\r\nx4"; using (var fss = new FileSystemStorage(_dir)) { Assert.AreEqual("x3\r\nx4\r\n", fss.GetPage(Page1.Identity).Content); Assert.AreEqual("x2", fss.GetPage(Page1.Identity).Name); } }