public void TestFrancMultiplication() { Franc five = new Franc(5); Assert.Equal(new Franc(10), five.Times(2)); Assert.Equal(new Franc(15), five.Times(3)); }
public void TestFrancMultiplication() { Franc five = Money.franc(5); Assert.AreEqual(Money.franc(10), five.Times(2)); Assert.AreEqual(Money.franc(15), five.Times(3)); }
public void TestFrancMultiplication() { // ARRANGE Franc five = new Franc(5); // ACT & ASSERT five.Times(2).Should().Be(new Franc(10)); five.Times(3).Should().Be(new Franc(15)); }
public void TestFrancs() { // test is not clean ! Franc five = Money.Franc(5); Assert.Equal(Money.Franc(10), five.Times(2)); Assert.Equal(Money.Franc(15), five.Times(3)); //triagulation: test falsehood Assert.NotEqual(Money.Franc(9), five.Times(2)); }
public void TestFrancMultiplication() { var franc = new Franc(5); var product = franc.Times(2); product.Amount.Should().Be(10); }
public void Times_Money() { //Arrange var multiplier = 2; //Act var actual = _target.Times(multiplier); //Assert Assert.Equal(20, actual.Amount); Assert.Equal("CHF", actual.Currency); }