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

EventSource_ExistsWithCorrectId() private method

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

            Assert.Equal("Microsoft-System-Net-WebSockets-Client", EventSource.GetName(esType));
            Assert.Equal(Guid.Parse("71cddde3-cf58-52d5-094f-927828a09337"), EventSource.GetGuid(esType));

            Assert.NotEmpty(EventSource.GenerateManifest(esType, "assemblyPathToIncludeInManifest"));
        }
    }