Example #1
0
        public void TestMapAtomType_String()
        {
            string         mapping = "NCDK.Dict.Data.cdk-sybyl-mappings.owl";
            AtomTypeMapper mapper  = AtomTypeMapper.GetInstance(mapping);

            Assert.IsNotNull(mapper);
            Assert.AreEqual("C.3", mapper.MapAtomType("C.sp3"));
        }
Example #2
0
        public void TestGetInstance_String_InputStream()
        {
            AtomTypeMapper mapper = AtomTypeMapper.GetInstance(
                "NCDK.Dict.Data.cdk-sybyl-mappings.owl",
                ResourceLoader.GetAsStream("NCDK.Dict.Data.cdk-sybyl-mappings.owl"));

            Assert.IsNotNull(mapper);
        }
Example #3
0
        public void TestGetMapping()
        {
            string         mapping = "NCDK.Dict.Data.cdk-sybyl-mappings.owl";
            AtomTypeMapper mapper  = AtomTypeMapper.GetInstance(mapping);

            Assert.IsNotNull(mapper);
            Assert.AreEqual(mapping, mapper.Name);
        }
Example #4
0
        public void TestGetInstance_String()
        {
            AtomTypeMapper mapper = AtomTypeMapper.GetInstance("NCDK.Dict.Data.cdk-sybyl-mappings.owl");

            Assert.IsNotNull(mapper);
        }