System.Net.NetworkInformation.Tests.LoggingTest.EventSource_ExistsWithCorrectId C# (CSharp) Method

EventSource_ExistsWithCorrectId() private method

private EventSource_ExistsWithCorrectId ( ) : void
return void
        public void EventSource_ExistsWithCorrectId()
        {
            Type esType = typeof(Ping).Assembly.GetType("System.Net.NetEventSource", throwOnError: true, ignoreCase: false);
            Assert.NotNull(esType);

            Assert.Equal("Microsoft-System-Net-Ping", EventSource.GetName(esType));
            Assert.Equal(Guid.Parse("a771ec4a-7260-59ce-0475-db257437ed8c"), EventSource.GetGuid(esType));

            Assert.NotEmpty(EventSource.GenerateManifest(esType, esType.Assembly.Location));
        }
    }