1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
6 using System.Diagnostics.Tracing;
8 using System.Reflection;
9 using System.Threading;
10 using System.Threading.Tasks;
11 using Tracing.Tests.Common;
13 using Microsoft.Diagnostics.Tracing;
14 using Microsoft.Diagnostics.Tracing.Parsers.Clr;
16 namespace Tracing.Tests
18 public static class TwoKeywordsTest
20 public static int Main(string[] args)
22 return new TwoKeywordsTraceTest().Execute();
26 public class TwoKeywordsTraceTest : AbstractTraceTest
30 protected override string GetConfigFileContents()
35 Providers=My-Simple-Event-Source:0xFFFFFFFFFFFFFFFF:5:Key1=Value1;Key2=Value2
39 public override void OnEventCommand(object sender, EventCommandEventArgs command)
41 if (command.Command == EventCommand.Enable)
43 this.pass = (command.Arguments.Count == 2);
47 protected override bool Pass()