private void ToString_Parameterized(long value, string expectedResult) { // Arrange var integerNode = new JsonIntegerNode(value); // Act string result = integerNode.ToString(); // Assert Assert.AreEqual(expectedResult, result); }
public void ToString_DecimalValue_DefaultCulture() { // Arrange var node = new JsonIntegerNode(1234567); // Act string json = node.ToString(); // Assert Assert.IsNotNull(node); Assert.AreEqual("1234567", json); }
public void ToString_DecimalValue_CultureWithDifferentDecimalSeparator() { CultureTestUtility.ExecuteInCulture("fr-FR", () => { // Arrange var node = new JsonIntegerNode(1234567); // Act string json = node.ToString(); // Assert Assert.IsNotNull(node); Assert.AreEqual("1234567", json); }); }