Beispiel #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");
 }
Beispiel #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.");
 }
Beispiel #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");
 }