public void ReadTypedNumber()
 {
     MockedJsonReader reader = new MockedJsonReader();
     reader.Begin().Array().
         Number(123).
         Number(456).
         Number(2.5).
         Number(4.2).
         Number(9.99m).
     EndArray().End();
    
     reader.ReadToken(JsonTokenClass.Array);
     Assert.AreEqual(123, reader.ReadInt32());
     Assert.AreEqual(456L, reader.ReadInt64());
     Assert.AreEqual(2.5f, reader.ReadSingle());
     Assert.AreEqual(4.2, reader.ReadDouble());
     Assert.AreEqual(9.99m, reader.ReadDecimal());
     Assert.AreEqual(JsonTokenClass.EndArray, reader.TokenClass);
     Assert.IsFalse(reader.Read());
 }