public void TestConstructor_Bool() { var expected = true; var instance = new ChangeDetail(expected); Assert.AreEqual(expected, instance.HasChanges()); expected = false; instance = new ChangeDetail(expected); Assert.AreEqual(expected, instance.HasChanges()); }
public void TestConstructor_ComparisonResult_AreEqual() { using (ShimsContext.Create()) { var result = new KellermanSoftware.CompareNetObjects.Fakes.ShimComparisonResult { AreEqualGet = () => true }; var instance = new ChangeDetail(result); Assert.IsFalse(instance.HasChanges()); } }