public void IndexOfHetroAt4() { int[] cycle = new int[] { 3, 2, 1, 4, 5, 3 }; int[] contr = new int[] { 1, 1, 1, 1, 1, 1 }; contr[cycle[4]] = 2; Assert.AreEqual(4, MmffAromaticTypeMapping.IndexOfHetro(cycle, contr)); }
public void IndexOfNoHetroAtom() { int[] cycle = new int[] { 3, 2, 1, 4, 5, 3 }; int[] contr = new int[] { 1, 1, 1, 1, 1, 1 }; Assert.AreEqual(-1, MmffAromaticTypeMapping.IndexOfHetro(cycle, contr)); }