public void TestMethod4() { double x1 = 2.75; double x2 = -3.5; Chromosome chr = new Chromosome(null, x1, x2); Assert.AreEqual(x1, chr.X1); Assert.AreEqual(x2, chr.X2); Assert.AreEqual("00010111001110", chr.ToString()); }
public void TestMethod1() { double x1 = 0; double x2 = 0; Chromosome chr = new Chromosome(null, x1, x2); Assert.AreEqual(x1, chr.X1); Assert.AreEqual(x2, chr.X2); Assert.AreEqual("00000000000000", chr.ToString()); }