public void Should_Detect_Slugs(float weight, float diameter) { // Arrange (see weight and diameter) // Act int actualCoin = CoinDetector.CoinValue(weight, diameter); // Assert Assert.Equal(0, actualCoin); }
public void Should_Detect_A_Nickel() { // Arrange float weight = 5.02f; float diameter = 21.1f; // Act int actualCoin = CoinDetector.CoinValue(weight, diameter); // Assert Assert.Equal(5, actualCoin); }
public void Should_Detect_A_Quarter() { // Arrange float weight = 5.67f; float diameter = 25.0f; // Act int actualCoin = CoinDetector.CoinValue(weight, diameter); // Assert Assert.Equal(25, actualCoin); }
public void Should_Detect_A_Dime() { // Arrange float weight = 2.25f; float diameter = 18.0f; // Act int actualCoin = CoinDetector.CoinValue(weight, diameter); // Assert Assert.Equal(10, actualCoin); }