示例#1
0
        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}");
        }
示例#2
0
        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)));
        }