public void Serialized_Build_Can_Be_Read() { // arrange var build = new Build { Name = BuildName, Date = DateTime.Today, Revision = "1337", Status = "success" }; build.AddDetail(DetailsVersionKey, "1.0.1"); // act writer.SaveBuildDescription(build); writer.Flush(); // arrange Assert.IsTrue(File.Exists(docuFiles.GetBuildFile(BranchName, BuildName))); // a build can't be read, because there is no implementation to read the details. // i'd propose to change xml to json since it's more tolerant. just look // at Details.cs:#WriteXml if you don't understand this comment. ////var result = reader.LoadBuild(BranchName, BuildName); ////Assert.That(BuildName, Is.EqualTo(result.Name)); ////Assert.That("1337", Is.EqualTo(result.Revision)); ////Assert.That("success", Is.EqualTo("success")); }