| 1 | using IntercomService.Services; |
| 2 | |
| 3 | namespace IntercomService.Tests; |
| 4 | |
| 5 | public sealed class GitRepoUrlNormalizerTests |
| 6 | { |
| 7 | [Theory] |
| 8 | [InlineData("https://GitHub.com/Org/Repo.git", "github.com/org/repo")] |
| 9 | [InlineData("git@github.com:Org/Repo.git", "github.com/org/repo")] |
| 10 | [InlineData("https://gitlab.com/group/sub.git", "gitlab.com/group/sub")] |
| 11 | public void Normalize_maps_common_forms(string raw, string expected) |
| 12 | { |
| 13 | Assert.Equal(expected, GitRepoUrlNormalizer.TryNormalize(raw)); |
| 14 | } |
| 15 | } |
| 16 | |
View only · write via MCP/CIDE