Ejemplo n.º 1
0
        public void TestReadAtomTypeMappings()
        {
            OWLAtomTypeMappingReader reader = new OWLAtomTypeMappingReader(new StringReader(OWL_CONTENT));

            Assert.IsNotNull(reader);
            var mappings = reader.ReadAtomTypeMappings();

            Assert.IsNotNull(mappings);
            Assert.AreEqual(2, mappings.Count);
        }
Ejemplo n.º 2
0
        public void TestReadAtomTypesCDK2Sybyl()
        {
            OWLAtomTypeMappingReader reader = new OWLAtomTypeMappingReader(new StringReader(OWL_CONTENT));

            Assert.IsNotNull(reader);
            var mappings = reader.ReadAtomTypeMappings();

            Assert.IsNotNull(mappings);
            Assert.AreEqual(2, mappings.Count);

            var cdkTypes = mappings.Keys;

            Assert.IsNotNull(cdkTypes);
            Assert.IsTrue(cdkTypes.Contains("C.sp3"));
            Assert.IsTrue(cdkTypes.Contains("X"));

            Assert.AreEqual("X", mappings["X"]);
            Assert.AreEqual("C.3", mappings["C.sp3"]);
        }
Ejemplo n.º 3
0
        public void TestOWLAtomTypeMappingReaderReader()
        {
            OWLAtomTypeMappingReader reader = new OWLAtomTypeMappingReader(new StringReader(""));

            Assert.IsNotNull(reader);
        }