public void TestMatchAgainstItself() { var m_atom1 = new Mock <IAtom>(); IAtom atom1 = m_atom1.Object; string result = AtomDiff.Diff(atom1, atom1); AssertZeroLength(result); }
public void TestDiff() { var m_atom1 = new Mock <IAtom>(); IAtom atom1 = m_atom1.Object; var m_atom2 = new Mock <IAtom>(); IAtom atom2 = m_atom2.Object; m_atom1.SetupGet(n => n.Symbol).Returns("H"); m_atom2.SetupGet(n => n.Symbol).Returns("C"); string result = AtomDiff.Diff(atom1, atom2); Assert.IsNotNull(result); Assert.AreNotSame(0, result.Length); AssertContains(result, "AtomDiff"); AssertContains(result, "H/C"); }