public void JSONPatternMatchAttribute3() { var src = @"{ code: 1121982, color: red, 'first_name': 'Alex', DOB: null}"; var lxr = new JL(new StringSource(src)); var match = JsonPatternMatchAttribute.Check(MethodBase.GetCurrentMethod(), lxr); Aver.IsTrue(match); }
public void JSONPatternMatchAttribute1() { var src = @"1,2,3,4,5,6,7,8,9 : 'Name': 'Znatoki' null 'ok'"; var lxr = new JL(new StringSource(src)); var match = JsonPatternMatchAttribute.Check(MethodBase.GetCurrentMethod(), lxr); Aver.IsFalse(match); }