mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-23 03:39:35 -10:00
* Removing Global mutex bug ID. Tracking ETW UAP test failures against a single issue. * Disabling EKU tests for UAP. Commit migrated from https://github.com/dotnet/corefx/commit/12632fd50d02c1b1934cac13edc8225304ac91a5
28 lines
1.1 KiB
C#
28 lines
1.1 KiB
C#
// Licensed to the .NET Foundation under one or more agreements.
|
|
// The .NET Foundation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
using System.Diagnostics.Tracing;
|
|
using System.Reflection;
|
|
using Xunit;
|
|
|
|
namespace System.Net.NameResolution.Tests
|
|
{
|
|
public static class LoggingTest
|
|
{
|
|
[Fact]
|
|
[ActiveIssue(20470, TargetFrameworkMonikers.UapAot)]
|
|
[SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "NetEventSource is only part of .NET Core.")]
|
|
public static void EventSource_ExistsWithCorrectId()
|
|
{
|
|
Type esType = typeof(Dns).GetTypeInfo().Assembly.GetType("System.Net.NetEventSource", throwOnError: true, ignoreCase: false);
|
|
Assert.NotNull(esType);
|
|
|
|
Assert.Equal("Microsoft-System-Net-NameResolution", EventSource.GetName(esType));
|
|
Assert.Equal(Guid.Parse("5f302add-3825-520e-8fa0-627b206e2e7e"), EventSource.GetGuid(esType));
|
|
|
|
Assert.NotEmpty(EventSource.GenerateManifest(esType, "assemblyPathToIncludeInManifest"));
|
|
}
|
|
}
|
|
}
|