Пример #1
0
        public void TestCase()
        {
            StampDispenser stampDispenser = new StampDispenser(new int[] { 90, 30, 24, 10, 6, 2, 1 });

            Assert.AreEqual(stampDispenser.CalcMinNumStampsToFillRequest(18), 2);
            Assert.AreEqual(stampDispenser.CalcMinNumStampsToFillRequest(34), 3);
        }
        static void Main()
        {
            StampDispenser stampDispenser = new StampDispenser(new int[] { 90, 30, 24, 10, 6, 2, 1 });

            Debug.Assert(stampDispenser.CalcMinNumStampsToFillRequest(18) == 3);
        }
Пример #3
0
 /// <summary>
 /// Program entry point.
 /// </summary>
 static void Main()
 {
     //default
     StampDispenser stampDispenser = new StampDispenser(new int[] { 90, 30, 11, 24, 10, 6, 2, 1 });
 }