public void ConvertFrom_ShouldConvertMoneyFormatToDecimalWhenInputIsEmptyAndReturn0() { //Arrange var convertor = new FromCurrecntyFormatToDecimalConverter(); var length = ""; //Act var price = (decimal)convertor.ConvertFrom(null, new CultureInfo(1), length); //Assert price.Should().Be(0); }
public void ConvertFrom_ShouldConvertMoneyFormatToDecimal() { //Arrange var convertor = new FromCurrecntyFormatToDecimalConverter(); var length = "1,545"; //Act var price = (decimal)convertor.ConvertFrom(null, new CultureInfo(1), length); //Assert price.Should().Be(1545); }
public void ConvertFrom_ShouldCreateAUniqueDiamondIdBasedOnSupplierAndInventoryID() { //Arrange var convertor = new FromCurrecntyFormatToDecimalConverter(); var length = ""; //Act var price = (decimal)convertor.ConvertFrom(null, new CultureInfo(1), length); //Assert price.Should().Be(0); }