示例#1
0
        public void Boolean_With_Valid_Input(bool expected, string json)
        {
            var result = JsonReader.Boolean().Read(JsonUtil.Strictify(json));

            Assert.Equal(expected, result);
        }
示例#2
0
 public void Boolean_With_Invalid_Input(string json)
 {
     Assert.Throws <JsonException>(() => _ = JsonReader.Boolean().Read(JsonUtil.Strictify(json)));
 }
示例#3
0
 public void Boolean_Moves_Reader()
 {
     TestMovesReaderPastReadValue(JsonReader.Boolean(), "true");
 }