Ejemplo 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");
 }
Ejemplo n.º 2
0
 public void ToCaratWeight_ShouldReturnTheRightFormatSmallerThanOne()
 {
     //Arrange
     var formatter = new JONFormatter();
     var weight = 0.3;
     //Act
     var result = formatter.ToCaratWeight(weight);
     //Assert
     result.Should().Be("0.30 Ct.");
 }
Ejemplo n.º 3
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");
 }