public void HasAnnotationTrue_SingleField() { // a singlefield structure with annotations // {withannot:years::months::days::hours::minutes::seconds::18} byte[] data = DirStructure.OwnTestFileAsBytes("binary/annot_singlefield.bindat"); UserBinaryReader reader = new UserBinaryReader(new MemoryStream(data)); ReaderTestCommon.HasAnnotationTrue_SingleField(reader); }
public void HasAnnotationTrueTest() { //Must be: {withannot: years::months::days::hours::minutes::seconds::18} var intValue = _ionValueFactory.NewInt(18); intValue.AddTypeAnnotation("years"); intValue.AddTypeAnnotation("months"); intValue.AddTypeAnnotation("days"); intValue.AddTypeAnnotation("hours"); intValue.AddTypeAnnotation("minutes"); intValue.AddTypeAnnotation("seconds"); var value = new IonStruct { { "withannot", intValue } }; var reader = new UserTreeReader(value); ReaderTestCommon.HasAnnotationTrue_SingleField(reader); }