public void NormaliseHetroAt2() { int[] cycle = new int[] { 3, 2, 1, 4, 5, 3 }; int[] contr = new int[] { 1, 1, 1, 1, 1, 1 }; contr[cycle[2]] = 2; Assert.IsTrue(MmffAromaticTypeMapping.NormaliseCycle(cycle, contr)); Assert.IsTrue(Compares.AreDeepEqual(new int[] { 1, 4, 5, 3, 2, 1 }, cycle)); }
public void NormaliseNoHetro() { int[] cycle = new int[] { 3, 2, 1, 4, 5, 3 }; int[] contr = new int[] { 1, 1, 1, 1, 1, 1 }; Assert.IsFalse(MmffAromaticTypeMapping.NormaliseCycle(cycle, contr)); }