public string GetOffLineFileName() { string show = DataCleansing.FileSafeFileName(ShowName); string title = DataCleansing.FileSafeFileName(Title); return($"{GetDownloadFolder()}\\{show}\\{title}.mp3"); }
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 "); }
public void ShouldRemoveDoubleSpaces(string starting, string expected) { string end = DataCleansing.RemoveDoubleSpaces(starting); end.Should().Be(expected); }
public void ShouldMakeFilenameSafe(string text, string expected) { DataCleansing.FileSafeFileName(text).Should().Be(expected); }