public static void SerializeChoice_WithinChoice6() { var hybrid = new FlexibleStringStructHybrid { Ascii = "IA5", }; AsnWriter writer = AsnSerializer.Serialize(hybrid, AsnEncodingRules.DER); Assert.Equal("1603494135", writer.Encode().ByteArrayToHex()); }
public static void SerializeChoice_WithinChoice5() { var hybrid = new FlexibleStringStructHybrid { DirectoryString = new DirectoryStringClass { Utf8String = "Marco", }, }; AsnWriter writer = AsnSerializer.Serialize(hybrid, AsnEncodingRules.DER); Assert.Equal("0C054D6172636F", writer.Encode().ByteArrayToHex()); }
public static void SerializeChoice_WithinChoice4() { var hybrid = new FlexibleStringStructHybrid { DirectoryString = new DirectoryStringClass { BmpString = "Polo", }, }; AsnWriter writer = AsnSerializer.Serialize(hybrid, AsnEncodingRules.DER); Assert.Equal("1E080050006F006C006F", writer.Encode().ByteArrayToHex()); }