示例#1
0
        public void TestCase1_5NotAvailableAmount()
        {
            var atm      = new ATM15();
            var exchange = atm.Exchange(9999.999);

            Assert.IsNull(exchange);
        }
示例#2
0
        public void TestCase1_5()
        {
            var atm            = new ATM15();
            var exchange       = atm.Exchange(831);
            var expectedAmount = new Dictionary <double, int> {
                { 500, 1 }, { 200, 1 }, { 100, 1 }, { 20, 1 }, { 10, 1 }, { 1, 1 }
            };

            CollectionAssert.AreEquivalent(exchange.ToList(), expectedAmount.ToList());
        }