Exemplo n.º 1
0
        public void GetOrCreateInstanceThrowsArgumentNullExceptionWhenResolveRequestIsNull()
        {
            var lifetimeScope    = Mock.Of <ISharingLifetimeScope>();
            var resolveOperation = new ResolveOperation(lifetimeScope, new DiagnosticListener("SomeName"));

            Assert.Throws <ArgumentNullException>(() => resolveOperation.GetOrCreateInstance(lifetimeScope, null !));
        }