Exemplo n.º 1
0
        public void ShouldReturn1For1()
        {
            string input = "1";

            var target = new Day1a();
            var result = target.DigitCount(input);

            Assert.AreEqual(1, result, "Test input should result in 1.");
        }
Exemplo n.º 2
0
        public void ShouldReturn0For1234()
        {
            string input = "1234";

            var target = new Day1a();
            var result = target.DigitCount(input);

            Assert.AreEqual(0, result, "Third example input should result in 0.");
        }
Exemplo n.º 3
0
        public void ShouldReturn4For1111()
        {
            string input = "1111";

            var target = new Day1a();
            var result = target.DigitCount(input);

            Assert.AreEqual(4, result, "Second example input should result in 4.");
        }