예제 #1
0
 [Fact] public void BadSByte() => Assert.Throws <JsonException>(() => ParsedReading.ReadByte(new JsonReader("156783")));
예제 #2
0
 public void Ints(string input, int expected) => ParsedReading.ReadInt(new JsonReader(input)).ShouldBeEquivalentTo(expected);
예제 #3
0
 public void Decimals(string input, decimal expected) => ParsedReading.ReadDecimal(new JsonReader(input)).ShouldBeEquivalentTo(expected);
예제 #4
0
 public void BadInts(string input) => Assert.Throws <JsonException>(() => ParsedReading.ReadInt(new JsonReader(input)));
예제 #5
0
 public void Doubles(string input, double expected) => ParsedReading.ReadDouble(new JsonReader(input)).ShouldBeEquivalentTo(expected);
예제 #6
0
 public void Floats(string input, float expected) => ParsedReading.ReadFloat(new JsonReader(input)).ShouldBeEquivalentTo(expected);
예제 #7
0
 public void ULongs(string input, ulong expected) => ParsedReading.ReadULong(new JsonReader(input)).ShouldBeEquivalentTo(expected);
예제 #8
0
 public void UShorts(string input, ushort expected) => ParsedReading.ReadUShort(new JsonReader(input)).ShouldBeEquivalentTo(expected);
예제 #9
0
 public void SBytes(string input, sbyte expected) => ParsedReading.ReadSByte(new JsonReader(input)).ShouldBeEquivalentTo(expected);