public void OneBoolInStruct() { //simple datagram: {yolo:true} var oneBool = DirStructure.OwnTestFileAsBytes("binary/onebool.bindat"); var reader = new UserBinaryReader(new MemoryStream(oneBool)); ReaderTestCommon.OneBoolInStruct(reader); }
public void SimpleDatagramTest() { //simple datagram: {yolo:true} var value = new IonStruct { { "yolo", _ionValueFactory.NewBool(true) } }; var reader = new UserTreeReader(value); ReaderTestCommon.OneBoolInStruct(reader); }
public void OneBoolInStruct() { //simple datagram: {yolo:true} var oneBool = DirStructure.OwnTestFileAsBytes("text/onebool.ion"); var reader = new UserTextReader(new MemoryStream(oneBool)); ReaderTestCommon.OneBoolInStruct(reader); reader = new UserTextReader(Encoding.UTF8.GetString(oneBool)); ReaderTestCommon.OneBoolInStruct(reader); }