expand test coverage: microsoft.applicationinsights (#2377)
* expand test coverage microsoft.applicationinsights * test fix
This commit is contained in:
Родитель
c8ea53d86d
Коммит
56c4d1f484
|
@ -99,6 +99,7 @@
|
|||
}
|
||||
|
||||
[TestClass]
|
||||
[TestCategory("WindowsOnly")] // these tests are not reliable and block PRs
|
||||
public class SendAsync
|
||||
{
|
||||
private readonly Uri testUri = new Uri("https://127.0.0.1/");
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#if NET461 || NETCOREAPP
|
||||
#if !NET452 && !NET46
|
||||
namespace Microsoft.ApplicationInsights.TestFramework.Extensibility.Implementation.Authentication
|
||||
{
|
||||
using System;
|
||||
|
@ -7,7 +7,6 @@ namespace Microsoft.ApplicationInsights.TestFramework.Extensibility.Implementati
|
|||
|
||||
using Azure.Core;
|
||||
|
||||
|
||||
/// <remarks>
|
||||
/// Copied from (https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/core/Azure.Core.TestFramework/src/MockCredential.cs).
|
||||
/// </remarks>
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<Import Project="$(PropsRoot)\Test.props" />
|
||||
|
||||
|
||||
<PropertyGroup>
|
||||
<!-- TargetFrameworks are defined in Test.props, but can be overridden here if needed. -->
|
||||
<TargetFrameworks>net452;net46;net461;netcoreapp3.1;net5.0</TargetFrameworks>
|
||||
<TargetFrameworks Condition="$(OS) != 'Windows_NT'">netcoreapp3.1</TargetFrameworks>
|
||||
<TargetFrameworks Condition="$(OS) == 'Windows_NT'">net452;net46;net461;$(TargetFrameworks)</TargetFrameworks>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
</PropertyGroup>
|
||||
|
||||
|
@ -25,13 +24,13 @@
|
|||
<PackageReference Include="MSTest.TestFramework" Version="2.1.2" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net452' ">
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net452' Or '$(TargetFramework)' == 'net46' ">
|
||||
<PackageReference Include="System.Runtime.InteropServices.RuntimeInformation" Version="4.3.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net452' Or '$(TargetFramework)' == 'net46' Or '$(TargetFramework)' == 'net461' ">
|
||||
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent" Version="2.0.30" />
|
||||
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net452' Or '$(TargetFramework)' == 'net46' Or '$(TargetFramework)' == 'net461' Or '$(TargetFramework)' == 'net462' Or '$(TargetFramework)' == 'net472' Or '$(TargetFramework)' == 'net480' ">
|
||||
<PackageReference Include="Microsoft.Diagnostics.Tracing.TraceEvent" Version="2.0.71" />
|
||||
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Management" />
|
||||
|
@ -42,7 +41,7 @@
|
|||
<Reference Include="System.Xml.Linq" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net461' Or '$(TargetFramework)' == 'netcoreapp3.1' Or '$(TargetFramework)' == 'net5.0'">
|
||||
<ItemGroup Condition="'$(TargetFramework)' == 'net461' Or '$(TargetFramework)' == 'net462' Or '$(TargetFramework)' == 'net472' Or '$(TargetFramework)' == 'net480' Or '$(TargetFramework)' == 'netcoreapp3.1' Or '$(TargetFramework)' == 'net5.0'">
|
||||
<PackageReference Include="Azure.Identity" Version="1.3.0" /> <!-- Supports: netstandard2.0 -->
|
||||
<PackageReference Include="Azure.Core" Version="1.14.0" /> <!-- Supports: net461, netstandard2.0, and net5.0 -->
|
||||
</ItemGroup>
|
||||
|
|
Загрузка…
Ссылка в новой задаче