src/GenFx.Components.Tests/MetricLoggerTest.cs
/// <summary>
/// Tests that an exception is thrown when passing a null environment to <see cref="MetricLogger.OnFitnessEvaluated"/>.
/// </summary>
Tests that an exception is thrown when passing a null environment to .
Tests that an exception is thrown when passing a null environment to .
[Fact]
        public void MetricLogger_OnFitnessEvaluated_NullEnvironment()
        {
            MetricLogger logger = new MetricLogger();
            PrivateObject accessor = new PrivateObject(logger);
            Assert.Throws<ArgumentNullException>(() => accessor.Invoke("OnFitnessEvaluated", null, 0));
        }
[ Fact ] public void MetricLogger_OnFitnessEvaluated_NullEnvironment ( ) { MetricLogger logger = new MetricLogger ( ) ; PrivateObject accessor = new PrivateObject ( logger ) ; Assert . Throws < ArgumentNullException > ( ( ) => accessor . Invoke ( " " , null , 0 ) ) ; }
Tests that an exception is thrown when passing a null environment to .
Tests that an exception is thrown when passing a null environment to .