Пример #1
0
 // 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());
 }
Пример #2
0
 public void CleanStringTest_DoesntNeedCleaning_False(string?input)
 {
     Assert.False(VideoResolver.TryCleanString(input, _namingOptions, out var newName));
     Assert.True(string.IsNullOrEmpty(newName));
 }
Пример #3
0
 public void CleanStringTest_DoesntNeedCleaning_False(string?input)
 {
     Assert.False(VideoResolver.TryCleanString(input, _namingOptions, out ReadOnlySpan <char> newName));
     Assert.True(newName.IsEmpty);
 }
Пример #4
0
 // 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);
 }