예제 #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");
 }