static void runEncoderTest(EncoderTest test) { test.testEncode(); test.testEncodeChoice(); test.testEncodeInteger(); test.testEncodeString(); test.testEnum(); test.testITUEncode(); test.testNullEncode(); test.testRecursiveDefinition(); test.testSequenceOfString(); test.testSequenceWithEnum(); test.testSequenceWithNull(); test.testTaggedNullEncode(); test.testNegativeInteger(); test.testEncodeSet(); test.testEncodeBitString(); test.testEncodeBitStringSmall(); test.testEncodeUnicodeString(); test.testEncodeBitStringBnd(); test.testEncodeVersion1_2(); test.testEncodeChoiceInChoice(); test.testEncodeTaggedSeqInSeq(); test.testEncodeReals(); test.testEncodeTaggedSequence(); test.testEncodeLongTag(); test.testEncodeLongTag2(); test.testSequenceOfUTFString(); test.testEncodeOID(); test.testEncodeCSSpecific(); test.testEncodeTaggedSet(); test.testEncodeTaggedSetInSet(); }
public void EncoderNoNullValue() { IEncoder<EncoderTest> encoder; EncoderTest instance; ISchema schema; instance = new EncoderTest {attribute = null, elements = new string[] {"a", null, "b"}, pairs = new Dictionary<string, string> {{"x", "1"}, {"y", null}}}; schema = this.GetSchema (JSONSettings.NoNullValue); encoder = schema.GetEncoder<EncoderTest> (); encoder.Link (); EncoderValidator.Validate (encoder, instance, "{\"attribute\":null,\"elements\":[\"a\",\"b\"],\"pairs\":{\"x\":\"1\"}}"); }