コード例 #1
0
        public void ConvertionWithCodeGenOptionShouldReturnNormalizedAndWithTheRightAttribute()
        {
            var sut = new JsonConverterToExampleTable();
            var convertionResult = sut.Convert(PayloadLoader.GetPayloadAsString("SimplePayloadWithInsideObject"), true);

            AssertConvertionResult(convertionResult, JsonParserGeneralTest.SimplePayloadWithInsideObjectExpectedTable, ExpectedNormalizedwithAttribute);
        }
コード例 #2
0
        public void SimpleConvertionWithCodeGenOptionShouldCreateTableAndCodeOutput()
        {
            var sut = new JsonConverterToExampleTable();
            var convertionResult = sut.Convert(PayloadLoader.GetPayloadAsString("TwoItemsPayload"), true);

            AssertConvertionResult(convertionResult, JsonParserGeneralTest.ExpectedTableTwoItemsPayload, ExpectedSimpleCode);
        }