예제 #1
0
        public void BoolValueTest()
        {
            var value  = _ionValueFactory.NewBool(true);
            var reader = new UserTreeReader(value);

            ReaderTestCommon.SingleBool(reader, true);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public void SingleBool(byte[] data, bool value)
 {
     var reader = new UserBinaryReader(new MemoryStream(data));
     ReaderTestCommon.SingleBool(reader, value);
 }