예제 #1
0
        public void GetBaseClock_whenAllLettersMustBeOn_ReturnLettersWithPadding()
        {
            var    formatter = new ClockFormatter();
            string x         = formatter.GetBaseClock(2, 'a', 4);

            Assert.Equal(x, "aaOO");
        }
예제 #2
0
        public void GetBaseClock_IfTooManyLightsToSwitchOn_ThrowsException()
        {
            var formatter = new ClockFormatter();

            Assert.Throws <ArgumentException>(() => formatter.GetBaseClock(999, 'a', 10));
        }