public void ToStringWorksForMissingInformation() { var information = new GenerationInformation( GenerationInformationTest.Generation, GenerationInformationTest.TotalNumberOfEvaluations, this._strategy, this._incumbent); Assert.Equal( "12;3468;;;DifferentialEvolutionStrategy`2;[a: -23](Age: 2)[Engineered: yes]", information.ToString()); }
public void ToStringWorksForMissingInformation() { var information = new GenerationInformation( GenerationInformationTest.Generation, totalElapsedTime: TimeSpan.FromSeconds(30), GenerationInformationTest.TotalNumberOfEvaluations, this._strategy, this._incumbent, "id"); Assert.Equal( "12;0:00:00:30.0000000;3468;;;DifferentialEvolutionStrategy`2;[a: -23](Age: 2)[Engineered: yes];id", information.ToString()); }
public void ToStringContainsAllInformation() { var information = new GenerationInformation( GenerationInformationTest.Generation, GenerationInformationTest.TotalNumberOfEvaluations, this._strategy, this._incumbent); information.IncumbentTrainingScore = -3.4; information.IncumbentTestScore = 1234.8; Assert.Equal( "12;3468;-3.4;1234.8;DifferentialEvolutionStrategy`2;[a: -23](Age: 2)[Engineered: yes]", information.ToString()); }
public void ToStringContainsAllInformation() { var information = new GenerationInformation( GenerationInformationTest.Generation, totalElapsedTime: TimeSpan.FromSeconds(30), GenerationInformationTest.TotalNumberOfEvaluations, this._strategy, this._incumbent, "id"); information.IncumbentTrainingScore = -3.4; information.IncumbentTestScore = 1234.8; Assert.Equal( "12;0:00:00:30.0000000;3468;-3.4;1234.8;DifferentialEvolutionStrategy`2;[a: -23](Age: 2)[Engineered: yes];id", information.ToString()); }