Example #1
0
        public void Byte_With_Valid_Input(ulong expected, string json)
        {
            var result = JsonReader.Byte().Read(JsonUtil.Strictify(json));

            Assert.Equal(expected, result);
        }
Example #2
0
 public void Byte_With_Invalid_Input(string json)
 {
     Assert.Throws <JsonException>(() => _ = JsonReader.Byte().Read(JsonUtil.Strictify(json)));
 }
Example #3
0
 public void Byte_Moves_Reader()
 {
     TestMovesReaderPastReadValue(JsonReader.Byte(), "42");
 }