示例#1
0
        public string GetOffLineFileName()
        {
            string show  = DataCleansing.FileSafeFileName(ShowName);
            string title = DataCleansing.FileSafeFileName(Title);

            return($"{GetDownloadFolder()}\\{show}\\{title}.mp3");
        }
示例#2
0
        public void ShouldRemoveManyStrings()
        {
            string str = "All and and and Everything else";

            str = DataCleansing.RemoveAllStrings(str, new List <string>()
            {
                "and", "else"
            });

            str.Should().Be("All    Everything ");
        }
示例#3
0
        public void ShouldRemoveDoubleSpaces(string starting, string expected)
        {
            string end = DataCleansing.RemoveDoubleSpaces(starting);

            end.Should().Be(expected);
        }
示例#4
0
 public void ShouldMakeFilenameSafe(string text, string expected)
 {
     DataCleansing.FileSafeFileName(text).Should().Be(expected);
 }