Exemplo n.º 1
0
        public void CreateFileDirectoryNotFound()
        {
            string path = new NotFoundPath().GetPlatformPath();

            UserFileHandler handler = new UserFileHandler();

            DataFile dataFile = handler.CreateFile(path);
        }
        public void CreateFileDirectoryNotFound()
        {
            string path = new NotFoundPath().GetPlatformPath();
            Console.Out.WriteLine(path);
            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);
        }
Exemplo n.º 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);
        }