public void Serialized_Usecase_Can_Be_Read() { // arrange var usecase = new UseCase { Name = SerializationUseCase, Description = "Serialization of scenarioo objects with .NET", Status = "success", }; usecase.AddDetail("webtestName", "UseCaseWebTest"); // act writer.SaveUseCase(usecase); writer.Flush(); // assert Assert.IsTrue(File.Exists(docuFiles.GetUseCaseFile(BranchName, BuildName, SerializationUseCase))); var usecaseXml = File.ReadAllText(docuFiles.GetUseCaseFile(BranchName, BuildName, SerializationUseCase)); StringAssert.Contains("UseCaseWebTest", usecaseXml); StringAssert.Contains(usecase.Name, usecaseXml); StringAssert.Contains(usecase.Description, usecaseXml); StringAssert.Contains(usecase.Status, usecaseXml); }