CodeProfilerTests StartingTwiceWithoutStoppingThrowsException 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 StartingTwiceWithoutStoppingThrowsException()
Examples

[Test]
public void StartingTwiceWithoutStoppingThrowsException()
{
    var profiler = new CodeProfiler();
    profiler.Start(ProfilingMode.Rendering, Section);
    Assert.Throws<CodeProfilerSection.AlreadyStarted>(
        () => profiler.Start(ProfilingMode.Rendering, Section));
}
See Also