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.º 2
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);
        }