diff options
author | David Shulman <david.shulman@microsoft.com> | 2017-03-22 00:00:19 +0300 |
---|---|---|
committer | David Shulman <david.shulman@microsoft.com> | 2017-03-22 00:00:19 +0300 |
commit | f3ef848efda44caa99b2586591e6bd90856b5a57 (patch) | |
tree | 1a734ebc42047ebb53bb479c6675f2d7e1777e85 /src/System.Net.Mail | |
parent | 22f561cae2f25b14fc233fff4c694c77b2e92174 (diff) |
Skip more NetEventSource logging tests on .NET Framework
Similar to PR #17348.
The 'NetEventSource' logging only works on .NET Core libraries. So, we
need to skip these tests when running on full .NET Framework.
Diffstat (limited to 'src/System.Net.Mail')
-rw-r--r-- | src/System.Net.Mail/tests/Functional/LoggingTest.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/System.Net.Mail/tests/Functional/LoggingTest.cs b/src/System.Net.Mail/tests/Functional/LoggingTest.cs index 78206bc896..6010d74c24 100644 --- a/src/System.Net.Mail/tests/Functional/LoggingTest.cs +++ b/src/System.Net.Mail/tests/Functional/LoggingTest.cs @@ -12,6 +12,7 @@ namespace System.Net.Mail.Tests public class LoggingTest : RemoteExecutorTestBase { [Fact] + [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "NetEventSource is only part of .NET Core")] public void EventSource_ExistsWithCorrectId() { Type esType = typeof(SmtpClient).Assembly.GetType("System.Net.NetEventSource", throwOnError: true, ignoreCase: false); @@ -24,6 +25,7 @@ namespace System.Net.Mail.Tests } [Fact] + [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "NetEventSource is only part of .NET Core")] public void EventSource_EventsRaisedAsExpected() { RemoteInvoke(() => |