Exemplo n.º 1
0
 public void FormatTwoDecimalPoints_ShouldReturnTheRightFormatTenthPart()
 {
     //Arrange
     var formatter = new JONFormatter();
     var weight = 5.9;
     //Act
     var result = formatter.FormatTwoDecimalPoints(weight,"");
     //Assert
     result.Should().Be("5.90");
 }
Exemplo n.º 2
0
 public void FormatTwoDecimalPoints_ShouldReturnTheRightFormatSmallerThanOne()
 {
     //Arrange
     var formatter = new JONFormatter();
     var weight = 0.3;
     //Act
     var result = formatter.FormatTwoDecimalPoints(weight,"");
     //Assert
     result.Should().Be("0.30");
 }