mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-04 18:09:12 +03:00
[PR #2472] [MERGED] moves shows tests to Theory and InlineData format #9130
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jellyfin/jellyfin/pull/2472
Author: @Narfinger
Created: 2/27/2020
Status: ✅ Merged
Merged: 2/27/2020
Merged by: @Bond-009
Base:
master← Head:tests-fix3📝 Commits (1)
107974emoves shows tests to Theory and InlineData format📊 Changes
9 files changed (+191 additions, -807 deletions)
View changed files
📝
tests/Jellyfin.Naming.Tests/TV/AbsoluteEpisodeNumberTests.cs(+10 -44)📝
tests/Jellyfin.Naming.Tests/TV/DailyEpisodeTests.cs(+9 -44)📝
tests/Jellyfin.Naming.Tests/TV/EpisodeNumberWithoutSeasonTests.cs(+18 -109)📝
tests/Jellyfin.Naming.Tests/TV/EpisodePathParserTest.cs(+2 -18)📝
tests/Jellyfin.Naming.Tests/TV/EpisodeWithoutSeasonTests.cs(+7 -36)📝
tests/Jellyfin.Naming.Tests/TV/MultiEpisodeTests.cs(+64 -89)📝
tests/Jellyfin.Naming.Tests/TV/SeasonFolderTests.cs(+18 -98)📝
tests/Jellyfin.Naming.Tests/TV/SeasonNumberTests.cs(+44 -294)📝
tests/Jellyfin.Naming.Tests/TV/SimpleEpisodeTests.cs(+19 -75)📄 Description
This moves all current tests in tests/Jellyfin.Naming.Tests/TV to the [Theory] and [InlineData] format.
This makes the files much shorter and clearer imho. I also added a couple more testcases from issues I saw around my files and github issues.
All testcases included are passing, tests that would not pass are commented out and with a // TODO:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.