public void SaveAndLoadSampleDataForClassToXmlTest() { SamplerServices <PocoEvents> .SaveToFile(SamplerServices <PocoEvents> .CreateSampleData(20)); Assert.IsTrue(SamplerServices <PocoEvents> .LoadSavedFile().Any()); SamplerServices <PocoEvents> .DeleteFile(); }
public void AttachItemsToListTest() { List <PocoEvents> eventsList = SamplerServices <PocoEvents> .CreateSampleData(10); foreach (var events in eventsList) { events.Pocos = SamplerServices <Poco> .CreateSampleData(10); } SamplerServices <PocoEvents> .SaveToFile(eventsList); SamplerServices <PocoEvents> .DeleteFile(); Assert.IsTrue(eventsList.Count == 10); }
public void DeleteSampleDataForClassToXmlTest() { SamplerServices <PocoEvents> .DeleteFile(); }