##// END OF EJS Templates
removed absolete Diagnostics classes
removed absolete Diagnostics classes

File last commit:

r252:6f4630d0bcd9 v3
r252:6f4630d0bcd9 v3
Show More
UnitTest1.cs
37 lines | 977 B | text/x-csharp | CSharpLexer
cin
Implab.Test moved to xunit...
r249 using System;
cin
Prerelease version of RunnableComponent...
r251 using System.Diagnostics;
cin
Implab.Test moved to xunit...
r249 using System.Threading;
cin
removed absolete Diagnostics classes
r252 using Implab.Diagnostics;
cin
Implab.Test moved to xunit...
r249 using Xunit;
namespace Implab.Test
{
cin
removed absolete Diagnostics classes
r252 using static Trace<UnitTest1>;
cin
Implab.Test moved to xunit...
r249 public class UnitTest1
{
[Fact]
public void Test1()
{
cin
Prerelease version of RunnableComponent...
r251 var listener = new TextWriterTraceListener(Console.Out);
cin
removed absolete Diagnostics classes
r252 var source = TraceSource;
source.Switch.Level = SourceLevels.All;
cin
Prerelease version of RunnableComponent...
r251
source.Listeners.Add(listener);
cin
removed absolete Diagnostics classes
r252 Trace.Listeners.Add(listener);
cin
Prerelease version of RunnableComponent...
r251
Trace.WriteLine("Hello!");
cin
removed absolete Diagnostics classes
r252 StartLogicalOperation();
cin
Prerelease version of RunnableComponent...
r251 Trace.WriteLine("Inner");
foreach(var x in Trace.CorrelationManager.LogicalOperationStack)
Trace.WriteLine($"-{x}");
cin
removed absolete Diagnostics classes
r252 Log("source event");
listener.IndentLevel = 1;
cin
Prerelease version of RunnableComponent...
r251 source.TraceData(TraceEventType.Start, 1, DateTime.Now);
cin
removed absolete Diagnostics classes
r252
StopLogicalOperation();
cin
Implab.Test moved to xunit...
r249 }
}
}