public void TrivialStruct() { //empty struct {} var trivial = DirStructure.OwnTestFileAsBytes("binary/trivial.bindat"); var reader = new UserBinaryReader(new MemoryStream(trivial)); ReaderTestCommon.TrivialStruct(reader); }
public void TrivialStruct() { //empty struct {} var trivial = DirStructure.OwnTestFileAsBytes("text/trivial.ion"); var text = Encoding.UTF8.GetString(trivial); var reader = new UserTextReader(text); ReaderTestCommon.TrivialStruct(reader); reader = new UserTextReader(new MemoryStream(trivial)); ReaderTestCommon.TrivialStruct(reader); }