public void OneDimeInserted_Display_ShowsCorrectAmount() { _coinIdentifier.IdentifyCoin(_weight, _size).Returns(CoinType.Dime); _testObject.InsertObject(_weight, _size); Assert.AreEqual("$0.10", _testObject.Display); }
public CoinType InsertObject(int weight, int size) { var coinType = _coinIdentifier.IdentifyCoin(weight, size); if (coinType != CoinType.Unknown) { InsertCoin(coinType); } return(coinType); }