Exemple #1
0
        public void Test_StorageFileHelper_IsFilePathValid_WithIllegalCharacters()
        {
            string filepath = "my>folder|my<file\t.txt";

            bool result = StorageFileHelper.IsFilePathValid(filepath);

            Assert.IsFalse(result);
        }
Exemple #2
0
        public void Test_StorageFileHelper_IsFilePathValid_WithCorrectFilePath()
        {
            string filepath = "my_folder/my_file.txt";

            bool result = StorageFileHelper.IsFilePathValid(filepath);

            Assert.IsTrue(result);
        }