public void AssertNotEqual(object oldValue, object newValue) { var old = JToken.FromObject(oldValue); var @new = JToken.FromObject(newValue); var diff = JsonDiff.GetDiffMessage(old, @new); Assert.True(false, $"Received value does not match stored snapshot.\n {diff}"); }
public void AssertNotEqual(object oldValue, object newValue) { var old = JToken.FromObject(oldValue); var @new = JToken.FromObject(newValue); throw new NUnitAsserterException( SnapResults.ValueNotEqualToSnapshot(JsonDiff.GetDiffMessage(old, @new))); }