Forge
csharp4405de34
1using IntercomService.Services;
2
3namespace IntercomService.Tests;
4
5public 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