예제 #1
0
        public void Wort_mit_mehreren_verschiedenen_Buchstaben()
        {
            var sut = new Galgenmännchen("abc");

            var result = sut.RateBuchstabe('A');

            Assert.AreEqual("a--", result);
            result = sut.RateBuchstabe('c');
            Assert.AreEqual("a-c", result);
            result = sut.RateBuchstabe('b');
            Assert.AreEqual("abc", result);
        }
예제 #2
0
        public void Nicht_existierender_Buchstabe()
        {
            var sut = new Galgenmännchen("abcba");

            var result = sut.RateBuchstabe('x');

            Assert.AreEqual("-----", result);
        }