public IEnumerator BuildMultipleFlatDendrites() { Brain Brain = new DummyBrain(); DendriteGene Gene = MakeGene(2); var Dendrites = DendriteBuilder.BuildFromGene(Gene, 25, 3); Assert.AreEqual(2, Dendrites.Count); Assert.AreEqual(3, Dendrites[0].SourceNeuronIndex); yield return(null); }
public IEnumerator BuildLobe() { DummyBrain Brain = new DummyBrain(); var Location = new Vector2Int(1, 2); var Dimension = new Vector2Int(3, 4); LobeGene Gene = new LobeGene(BrainLobeID.Concept, Location, Dimension, null, null, null, 0, 0); var Lobe = LobeBuilder.BuildFromGene(Gene, 25, 25); Assert.AreEqual(BrainLobeID.Concept, Lobe.LobeID); Assert.AreEqual(Location, Lobe.Location); Assert.AreEqual(Dimension, Lobe.Dimension); Assert.AreEqual(Dimension.x * Dimension.y, Lobe.NumNeurons); yield return(null); }