public void BoolValueTest() { var value = _ionValueFactory.NewBool(true); var reader = new UserTreeReader(value); ReaderTestCommon.SingleBool(reader, true); }
public void SingleBool(string text, bool value) { var bin = Encoding.UTF8.GetBytes(text); var reader = new UserTextReader(new MemoryStream(bin)); ReaderTestCommon.SingleBool(reader, value); reader = new UserTextReader(text); ReaderTestCommon.SingleBool(reader, value); }
public void SingleBool(byte[] data, bool value) { var reader = new UserBinaryReader(new MemoryStream(data)); ReaderTestCommon.SingleBool(reader, value); }