public void CreateFileDirectoryNotFound()
        {
            string path = new NotFoundPath().GetPlatformPath();
            Console.Out.WriteLine(path);
            UserFileHandler handler = new UserFileHandler();

            DataFile dataFile = handler.CreateFile(path);
        }
Пример #2
0
        public void CreateFileDirectoryNotFound()
        {
            string path = new NotFoundPath().GetPlatformPath();

            UserFileHandler handler = new UserFileHandler();

            DataFile dataFile = handler.CreateFile(path);
        }
        public void CreateFileMultiPlatform()
        {
            string path = new EasyPath().GetPlatformPath();
            UserFileHandler handler = new UserFileHandler();

            DataFile dataFile = handler.CreateFile(path);
            if (!File.Exists(path))
            {
                Assert.Fail("File was not created");
            }
            Console.Out.WriteLine(dataFile.Stream);
            Assert.IsNotNull(dataFile.Stream);
        }
Пример #4
0
        public void CreateFileMultiPlatform()
        {
            string          path     = new EasyPath().GetPlatformPath();
            UserFileHandler handler  = new UserFileHandler();
            DataFile        dataFile = handler.CreateFile(path);

            if (!File.Exists(path))
            {
                Assert.Fail("File was not created");
            }

            Assert.IsNotNull(dataFile.Stream);
        }
Пример #5
0
        public Form1()
        {
            InitializeComponent();
            Global.menuItemsEdit.Add(addAnimalToolStripMenuItem);
            //Global.menuItemsEdit.Add(removeAnimalToolStripMenuItem);
            Global.menuItemsEdit.Add(removeUserToolStripMenuItem);
            Global.menuItemsEdit.Add(addBreedToolStripMenuItem);
            Global.menuItemsUser.Add(loginToolStripMenuItem);
            Global.menuItemsUser.Add(logoutToolStripMenuItem);
            Global.menuItemsUser.Add(registerToolStripMenuItem);
            Global.panel = panelMain;

            UserFileHandler.verifyUserImageFiles();

            registerToolStripMenuItem.Visible = true;
            loginToolStripMenuItem.Visible    = true;
            panelMain.Controls.Add(new UserControlHome());
        }