diff --git a/VContainer/Assets/Tests/ContainerTest.cs b/VContainer/Assets/Tests/ContainerTest.cs index 421d6a0f..9ef82f78 100644 --- a/VContainer/Assets/Tests/ContainerTest.cs +++ b/VContainer/Assets/Tests/ContainerTest.cs @@ -429,6 +429,17 @@ public void RegisterWithParameter() var resolved = container.Resolve(); Assert.That(resolved.Service2, Is.EqualTo(paramValue)); } + + { + var builder = new ContainerBuilder(); + builder.Register(Lifetime.Scoped); + builder.Register(Lifetime.Scoped) + .WithParameter(resolver => resolver.Resolve()); + + var container = builder.Build(); + var resolved = container.Resolve(); + Assert.That(resolved.Service2, Is.Not.Null); + } } [Test]