示例#1
0
        public void EscapeInvalidPathFromName_returns_false_if_file_does_not_contains_invalid_char()
        {
            //Arrange

            //Act
            var res = FilesAndDirectoryInfoExtension.EscapeInvalidPathFromName("df@ù^^sfdf");

            //Assert
            Assert.AreEqual("df@ù^^sfdf", res);
        }
示例#2
0
        public void EscapeInvalidPathFromName_escapes_invalid_char_slash()
        {
            //Arrange

            //Act
            var res = FilesAndDirectoryInfoExtension.EscapeInvalidPathFromName("dfdsf/sdf");

            //Assert
            Assert.AreEqual("dfdsfsdf", res);
        }