public void AddNodesToChildGenomeTest() { Genome newGenome = new Genome(r); Assert.AreEqual(0, newGenome.Nodes.Count); newGenome.AddInputAndOutputNodesFromGenome(baseGenome: gen1); Assert.AreEqual(4, newGenome.Nodes.Count); Assert.AreEqual(0, newGenome.ConnectionGenes.Count); }
public void AddNodesToChildGenomeTest_NullBase_Expected_Exception() { Genome newGenome = new Genome(r); newGenome.AddInputAndOutputNodesFromGenome(baseGenome: null); }