// FIXME: [InlineData("After The Sunset - [0004].mkv", "After The Sunset")] public void CleanStringTest_NeedsCleaning_Success(string input, string expectedName) { Assert.True(_videoResolver.TryCleanString(input, out ReadOnlySpan <char> newName)); // TODO: compare spans when XUnit supports it Assert.Equal(expectedName, newName.ToString()); }
public void CleanStringTest_DoesntNeedCleaning_False(string?input) { Assert.False(VideoResolver.TryCleanString(input, _namingOptions, out var newName)); Assert.True(string.IsNullOrEmpty(newName)); }
public void CleanStringTest_DoesntNeedCleaning_False(string?input) { Assert.False(VideoResolver.TryCleanString(input, _namingOptions, out ReadOnlySpan <char> newName)); Assert.True(newName.IsEmpty); }
// FIXME: [InlineData("After The Sunset - [0004].mkv", "After The Sunset")] public void CleanStringTest_NeedsCleaning_Success(string input, string expectedName) { Assert.True(VideoResolver.TryCleanString(input, _namingOptions, out var newName)); Assert.Equal(expectedName, newName); }