src/GenFx.Components.Tests/MetricLoggerTest.cs
/// <summary>
/// Tests that the <see cref="MetricLogger.OnAlgorithmCompleted"/> method works correctly.
/// </summary>
Tests that the  method works correctly.
Tests that the method works correctly .
[Fact]
        public void MetricLogger_AlgorithmCompleted()
        {
            MetricLogger logger = new MetricLogger
            {
                TraceCategory = "test"
            };
            Assert.Equal(String.Empty, this.traceListener.Output.ToString());
            PrivateObject accessor = new PrivateObject(logger);
            accessor.Invoke("OnAlgorithmCompleted");
            Assert.StartsWith(logger.TraceCategory, this.traceListener.Output.ToString());
            Assert.Contains(Resources.MetricLogger_AlgorithmCompleted, this.traceListener.Output.ToString());
        }
[ Fact ] public void MetricLogger_AlgorithmCompleted ( ) { MetricLogger logger = new MetricLogger { TraceCategory = " " } ; Assert . Equal ( String . Empty , this . traceListener . Output . ToString ( ) ) ; PrivateObject accessor = new PrivateObject ( logger ) ; accessor . Invoke ( " " ) ; Assert . StartsWith ( logger . TraceCategory , this . traceListener . Output . ToString ( ) ) ; Assert . Contains ( Resources . MetricLogger_AlgorithmCompleted , this . traceListener . Output . ToString ( ) ) ; }
Tests that the  method works correctly.
Tests that the method works correctly .