public void LoadTest() { var db = new SaveData.DataContext(); foreach (SaveData.DataSet save in db.SavedDataFiles.ToList()) { Console.WriteLine(save.Name); } Assert.IsNotNull(db.SavedDataFiles); Assert.IsNotNull(db.SavedDataDrives); }
public void SaveTest2() { FilesData data = new FilesData(); data.Dir = new DirectoryInfo(@"c:\Users\Adam\source\repos\FileManager\NUnitTestFM\FolderTestowy"); data.Start(); var db = new SaveData.DataContext(); List <DataSet> drives = new List <DataSet>(); DataSet set1 = new DataSet(); set1.Data = data; set1.Name = @"C:\"; set1.Date = DateTime.Now; drives.Add(set1); DataContext.SaveDataDrives(drives); }
public void LoadTest3() { var db = new SaveData.DataContext(); Assert.IsNotNull(DataContext.LoadDataDrives()); }