コード例 #1
0
 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));
 }
コード例 #2
0
 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));
 }