Removing assertion not true for all events (dotnet/corefx#34650)
authorMaryam Ariyan <maryam.ariyan@microsoft.com>
Thu, 17 Jan 2019 23:21:30 +0000 (15:21 -0800)
committerGitHub <noreply@github.com>
Thu, 17 Jan 2019 23:21:30 +0000 (15:21 -0800)
Commit migrated from https://github.com/dotnet/corefx/commit/caebf8a1173d4f09bcf3007aa8607f981e8ec9af

src/libraries/System.Diagnostics.EventLog/tests/System/Diagnostics/Reader/ProviderMetadataTests.cs

index 344b7d8899f7a09dd689a13e81e75f86d4612ed7..d99c383c0a0ade7132822e0ebb56f51d7c721667 100644 (file)
@@ -60,7 +60,10 @@ namespace System.Diagnostics.Tests
                                 }
                             }
                             Assert.Contains("EventLogMessages.dll", providerMetadata.MessageFilePath);
-                            Assert.Contains("EventLogMessages.dll", providerMetadata.HelpLink.ToString());
+                            if (providerMetadata.HelpLink != null)
+                            {
+                                Assert.Contains("EventLogMessages.dll", providerMetadata.HelpLink.ToString());
+                            }
                         }
                         else
                         {