src/GenFx.Tests/GeneticEntityCollectionExtensionsTest.cs
/// <summary>
/// Tests that an exception is thrown when passing an invalid fitness type to <see cref="GeneticEntityCollectionExtensions.GetEntitiesSortedByFitness"/>.
/// </summary>
Tests that an exception is thrown when passing an invalid fitness type to .
Tests that an exception is thrown when passing an invalid fitness type to .
[Fact]
        public void GeneticEntityCollectionExtensions_GetEntitiesSortedByFitness_InvalidFitnessType()
        {
            Assert.Throws<ArgumentException>(() => GeneticEntityCollectionExtensions.GetEntitiesSortedByFitness(new GeneticEntity[0], (FitnessType)5, FitnessEvaluationMode.Maximize));
        }
[ Fact ] public void GeneticEntityCollectionExtensions_GetEntitiesSortedByFitness_InvalidFitnessType ( ) { Assert . Throws < ArgumentException > ( ( ) => GeneticEntityCollectionExtensions . GetEntitiesSortedByFitness ( new GeneticEntity [ 0 ] , ( FitnessType ) 5 , FitnessEvaluationMode . Maximize ) ) ; }
Tests that an exception is thrown when passing an invalid fitness type to .
Tests that an exception is thrown when passing an invalid fitness type to .