public void ShouldParseNegativeIntegerSucceed( string jsonFragment, int expectedValue ) { IJsonElement parser = new JsonNumber(); string jsonRemainder; Assert.IsTrue( parser.Parse( jsonFragment, out jsonRemainder ) ); Assert.AreEqual( expectedValue, parser.AsInteger() ); }