public void Boolean_With_Valid_Input(bool expected, string json) { var result = JsonReader.Boolean().Read(JsonUtil.Strictify(json)); Assert.Equal(expected, result); }
public void Boolean_With_Invalid_Input(string json) { Assert.Throws <JsonException>(() => _ = JsonReader.Boolean().Read(JsonUtil.Strictify(json))); }
public void Boolean_Moves_Reader() { TestMovesReaderPastReadValue(JsonReader.Boolean(), "true"); }