Beispiel #1
0
        public void GenerationTest()
        {
            ServiceTestData svd = ServiceTestData.getInstance();
            Population p = new Population();
            p.SetGenom(svd.getMockInitialPopulation());

            p.NextGeneration();

            p.ConcatenateTwoExistingPopulations();
            Assert.AreEqual(2 * svd.GetPopulationCount(), p.getPopulationCount());

            ServiceOutput so = ServiceOutput.GetInstance();
            so.SetOutput(new OutputStd());
            //
            //so.SetOutput(new OutputFile())
            so.Write(p.ToReadableFormat());
            Console.WriteLine("asdf");
        }
Beispiel #2
0
 internal void Write(Population population)
 {
     Write(population.ToReadableFormat());
 }