Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        public void LoadTest3()
        {
            var db = new SaveData.DataContext();

            Assert.IsNotNull(DataContext.LoadDataDrives());
        }