Example #1
0
        public void TestMatchAgainstItself()
        {
            var    m_element1 = new Mock <IAtomType>(); IAtomType element1 = m_element1.Object;
            string result = AtomTypeDiff.Diff(element1, element1);

            AssertZeroLength(result);
        }
Example #2
0
        public void TestDiff()
        {
            var m_element1 = new Mock <IAtomType>(); IAtomType element1 = m_element1.Object;
            var m_element2 = new Mock <IAtomType>(); IAtomType element2 = m_element2.Object;

            m_element1.SetupGet(n => n.Hybridization).Returns(Hybridization.Planar3);
            m_element2.SetupGet(n => n.Hybridization).Returns(Hybridization.SP3);

            string result = AtomTypeDiff.Diff(element1, element2);

            Assert.IsNotNull(result);
            Assert.AreNotSame(0, result.Length);
            AssertContains(result, "AtomTypeDiff");
            AssertContains(result, "PLANAR3/SP3");
        }