diff --git a/tests/OrasProject.Oras.Tests/RemoteTest/RegistryTest.cs b/tests/OrasProject.Oras.Tests/RemoteTest/RegistryTest.cs index 1bc4f0d..b51586c 100644 --- a/tests/OrasProject.Oras.Tests/RemoteTest/RegistryTest.cs +++ b/tests/OrasProject.Oras.Tests/RemoteTest/RegistryTest.cs @@ -24,7 +24,6 @@ namespace OrasProject.Oras.Tests.RemoteTest { public class RegistryTest { - public static HttpClient CustomClient(Func func) { var moqHandler = new Mock(); @@ -36,6 +35,18 @@ public static HttpClient CustomClient(Func + /// Test registry constructor + /// + [Fact] + public void Registry() + { + var registryName = "foobar"; + var registry = new Remote.Registry(registryName); + var options = registry.RepositoryOptions; + Assert.Equal(registryName, options.Reference.Registry); + } + /// /// PingAsync tests the PingAsync method of the Registry class. ///