示例#1
0
        public void Coins_InputAmountTwentyFiveGetQuarterBack_True()
        {
            Change testChange  = new Change(163);
            string resultCoins = testChange.ComputeChange();

            Console.WriteLine(resultCoins);
            Assert.Equal("Quarters: 2 Dimes:  Nickles:  Pennies:  .", resultCoins);
        }
示例#2
0
 public HomeModule()
 {
     Get["/"] = _ => {
         return(View["index.cshtml"]);
     };
     Get["/coin_count"] = _ => {
         Change newChange = new Change(Request.Query["changeAmount"]);
         string result    = newChange.ComputeChange();
         return(View["index.cshtml", result]);
     };
 }