Ejemplo n.º 1
0
        public void OneDimeInserted_Display_ShowsCorrectAmount()
        {
            _coinIdentifier.IdentifyCoin(_weight, _size).Returns(CoinType.Dime);

            _testObject.InsertObject(_weight, _size);

            Assert.AreEqual("$0.10", _testObject.Display);
        }
Ejemplo n.º 2
0
        public CoinType InsertObject(int weight, int size)
        {
            var coinType = _coinIdentifier.IdentifyCoin(weight, size);

            if (coinType != CoinType.Unknown)
            {
                InsertCoin(coinType);
            }

            return(coinType);
        }