public void ConvertionWithCodeGenOptionShouldReturnNormalizedAndWithTheRightAttribute() { var sut = new JsonConverterToExampleTable(); var convertionResult = sut.Convert(PayloadLoader.GetPayloadAsString("SimplePayloadWithInsideObject"), true); AssertConvertionResult(convertionResult, JsonParserGeneralTest.SimplePayloadWithInsideObjectExpectedTable, ExpectedNormalizedwithAttribute); }
public void SimpleConvertionWithCodeGenOptionShouldCreateTableAndCodeOutput() { var sut = new JsonConverterToExampleTable(); var convertionResult = sut.Convert(PayloadLoader.GetPayloadAsString("TwoItemsPayload"), true); AssertConvertionResult(convertionResult, JsonParserGeneralTest.ExpectedTableTwoItemsPayload, ExpectedSimpleCode); }