예제 #1
0
 public JsonComparer(
     IJsonObjectComparer jsonObjectComparer,
     IJsonArrayComparer jsonArrayComparer,
     IJsonValueComparer jsonValueComparer,
     IJsonSpecialHandler jsonSpecialHandler)
 {
     _jsonObjectComparer = jsonObjectComparer;
     _jsonArrayComparer  = jsonArrayComparer;
     _jsonValueComparer  = jsonValueComparer;
     _jsonSpecialHandler = jsonSpecialHandler;
 }
예제 #2
0
        public void SetUp()
        {
            _jsonObjectComparer = Substitute.For <IJsonObjectComparer>();
            _jsonArrayComparer  = Substitute.For <IJsonArrayComparer>();
            _jsonValueComparer  = Substitute.For <IJsonValueComparer>();
            _jsonSpecialHandler = Substitute.For <IJsonSpecialHandler>();
            _jsonComparer       = new JsonComparer(_jsonObjectComparer, _jsonArrayComparer, _jsonValueComparer, _jsonSpecialHandler);

            _jsonSpecialHandler.HandleSpecialObject(Arg.Any <JToken>(), Arg.Any <JToken>(), Arg.Any <string>())
            .Returns((false, null));
        }