public void Test3DName() { var result = VideoResolver.ResolveFile(@"C:/Users/media/Desktop/Video Test/Movies/Oblivion/Oblivion.3d.hsbs.mkv", _namingOptions); Assert.Equal("hsbs", result?.Format3D); Assert.Equal("Oblivion", result?.Name); }
public void ResolveFile_ValidFileName_Success(VideoFileInfo expectedResult) { var result = _videoResolver.ResolveFile(expectedResult.Path); Assert.NotNull(result); Assert.Equal(result?.Path, expectedResult.Path); Assert.Equal(result?.Container, expectedResult.Container); Assert.Equal(result?.Name, expectedResult.Name); Assert.Equal(result?.Year, expectedResult.Year); Assert.Equal(result?.ExtraType, expectedResult.ExtraType); Assert.Equal(result?.Format3D, expectedResult.Format3D); Assert.Equal(result?.Is3D, expectedResult.Is3D); Assert.Equal(result?.IsStub, expectedResult.IsStub); Assert.Equal(result?.StubType, expectedResult.StubType); Assert.Equal(result?.IsDirectory, expectedResult.IsDirectory); Assert.Equal(result?.FileNameWithoutExtension, expectedResult.FileNameWithoutExtension); Assert.Equal(result?.ToString(), expectedResult.ToString()); }
public void ResolveFile_EmptyPath() { var result = VideoResolver.ResolveFile(string.Empty, _namingOptions); Assert.Null(result); }
public void TestStubName() { var result = VideoResolver.ResolveFile(@"C:/Users/media/Desktop/Video Test/Movies/Oblivion/Oblivion.dvd.disc", _namingOptions); Assert.Equal("Oblivion", result?.Name); }