public void HasAnnotationFalse_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.HasAnnotationFalse_SingleField(reader); }
public void HasAnnotationFalseTest() { //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.HasAnnotationFalse_SingleField(reader); }