-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Expand file tree
/
Copy pathUnity.cs
More file actions
25 lines (20 loc) · 973 Bytes
/
Unity.cs
File metadata and controls
25 lines (20 loc) · 973 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System;
namespace Microsoft.Extensions.DependencyInjection.Specification
{
public class UnityDependencyInjectionSpecificationTests: SkippableDependencyInjectionSpecificationTests
{
public override bool SupportsIServiceProviderIsService => false;
// See https://github.com/unitycontainer/microsoft-dependency-injection/issues/87
public override bool ExpectStructWithPublicDefaultConstructorInvoked => true;
public override string[] SkippedTests => new[]
{
"SingletonServiceCanBeResolvedFromScope"
};
protected override IServiceProvider CreateServiceProviderImpl(IServiceCollection serviceCollection)
{
return Unity.Microsoft.DependencyInjection.ServiceProviderExtensions.BuildServiceProvider(serviceCollection);
}
}
}