public void TestMatchAgainstItself() { var m_atom1 = new Mock <IElectronContainer>(); IElectronContainer atom1 = m_atom1.Object; string result = ElectronContainerDiff.Diff(atom1, atom1); AssertZeroLength(result); }
public void TestDiff() { var m_ec1 = new Mock <IElectronContainer>(); IElectronContainer ec1 = m_ec1.Object; var m_ec2 = new Mock <IElectronContainer>(); IElectronContainer ec2 = m_ec2.Object; m_ec1.SetupGet(n => n.ElectronCount).Returns(2); m_ec2.SetupGet(n => n.ElectronCount).Returns(3); string result = ElectronContainerDiff.Diff(ec1, ec2); Assert.IsNotNull(result); Assert.AreNotSame(0, result.Length); AssertContains(result, "ElectronContainerDiff"); AssertContains(result, "eCount"); AssertContains(result, "2/3"); }