7 references to IsInteger
Microsoft.Analyzers.Local (1)
ApiLifecycle\Json\JsonValue.cs (1)
422return jsonValue.IsInteger ? jsonValue.AsInteger : 0;
Microsoft.Analyzers.Local.Tests (6)
Json\JsonValueTest.cs (6)
62Assert.False(new JsonValue(false).IsInteger); 63Assert.True(new JsonValue(1.0).IsInteger); 64Assert.False(new JsonValue(1.1).IsInteger); 65Assert.False(new JsonValue(double.PositiveInfinity).IsInteger); 341Assert.True(JsonValue.Parse("1").IsInteger); 342Assert.True(JsonValue.Parse("1.0").IsInteger);