Ejemplo n.º 1
0
        static void Transform(string smi, string exp)
        {
            ImplicitToExplicit ite = new ImplicitToExplicit();
            ToTrigonalTopology ttt = new ToTrigonalTopology();
            ExplicitToImplicit eti = new ExplicitToImplicit();

            Assert.AreEqual(exp, Generator
                            .Generate(eti.Apply(ttt.Apply(ite.Apply(Parser.Parse(smi))))));
        }
Ejemplo n.º 2
0
        static void Transform(string smi, int[] p, string exp)
        {
            ImplicitToExplicit   ite = new ImplicitToExplicit();
            FromTrigonalTopology ftt = new FromTrigonalTopology();
            ExplicitToImplicit   eti = new ExplicitToImplicit();

            Assert.AreEqual(exp, Generator
                            .Generate(eti.Apply(ftt.Apply(ite.Apply(Parser.Parse(smi)
                                                                    .Permute(p))))));
        }
Ejemplo n.º 3
0
        private void Transform(string input, string expected)
        {
            Graph g = Parser.Parse(input);
            ImplicitToExplicit ite    = new ImplicitToExplicit();
            FromSubsetAtoms    fsa    = new FromSubsetAtoms();
            ExplicitToImplicit eti    = new ExplicitToImplicit();
            string             actual = Generator.Generate(eti.Apply(
                                                               fsa.Apply(
                                                                   ite.Apply(g))));

            Assert.AreEqual(expected, actual);
        }