ProfileResultsFormatterTests StartingAndStoppingTwice Method Delta Engine Documentation

Namespace: DeltaEngine.Profiling.Tests
Assembly: DeltaEngine.Profiling.Tests (in DeltaEngine.Profiling.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void StartingAndStoppingTwice()
Examples

[Test]
public void StartingAndStoppingTwice()
{
    var profiler = StartAndStopTwoSections();
    string summary = profiler.GetProfilingResultsSummary(ProfilingMode.Rendering);
    Assert.IsTrue(summary.StartsWith(TwoSections));
    Assert.IsTrue(summary.Contains(Section1));
    Assert.IsTrue(summary.Contains(Section2));
    Assert.IsTrue(summary.Contains(OneCall));
}
See Also