public void FormatNumberWithVariableDecimalPlacesLessThan10()
 {
     Assert.That(NumberFormaters.FormatNumberWithVariableDecimalPlaces(3) == "3");
     Assert.That(NumberFormaters.FormatNumberWithVariableDecimalPlaces(3.1) == "3.1");
     Assert.That(NumberFormaters.FormatNumberWithVariableDecimalPlaces(3.12) == "3.12");
     Assert.That(NumberFormaters.FormatNumberWithVariableDecimalPlaces(3.126) == "3.13");
 }
 public void FormatNumberWithVariableDecimalPlacesLessThan100()
 {
     Assert.That(NumberFormaters.FormatNumberWithVariableDecimalPlaces(30) == "30");
     Assert.That(NumberFormaters.FormatNumberWithVariableDecimalPlaces(30.1) == "30.1");
     Assert.That(NumberFormaters.FormatNumberWithVariableDecimalPlaces(30.12) == "30.1");
     Assert.That(NumberFormaters.FormatNumberWithVariableDecimalPlaces(30.199) == "30.2");
 }
 public void FormatNumberWithVariableDecimalPlacesMoreThan1000()
 {
     Assert.That(NumberFormaters.FormatNumberWithVariableDecimalPlaces(3000) == "3,000");
     Assert.That(NumberFormaters.FormatNumberWithVariableDecimalPlaces(3000.1) == "3,000");
     Assert.That(NumberFormaters.FormatNumberWithVariableDecimalPlaces(3000.12) == "3,000");
     Assert.That(NumberFormaters.FormatNumberWithVariableDecimalPlaces(3000.999) == "3,001");
 }