コード例 #1
0
        public void drinkinTest1()
        {
            ResponsibleDrinking drinkin = new ResponsibleDrinking();
            string expected             = "1 glass of water";
            string actual = drinkin.hydrate("1 beer");

            Assert.AreEqual(expected, actual);
        }
コード例 #2
0
        public void drinkinTest3()
        {
            ResponsibleDrinking drinkin = new ResponsibleDrinking();
            string expected             = "10 glasses of water";
            string actual = drinkin.hydrate("1 shot, 5 beers, 2 shots, 1 glass of wine, 1 beer");

            Assert.AreEqual(expected, actual);
        }