Beispiel #1
0
        public void When_Word_Is_dog_Eight_As_Can_Be_Added_To_It()
        {
            AAdder adder  = new AAdder();
            int    result = adder.AddAsTo("dog");

            Assert.That(result, Is.EqualTo(8));
        }
Beispiel #2
0
        public void When_Word_Is_aa_Return_Zero()
        {
            AAdder adder  = new AAdder();
            int    result = adder.AddAsTo("aa");

            Assert.That(result, Is.EqualTo(0));
        }
Beispiel #3
0
        public void When_Word_Is_One_Letter_as_Can_Be_Added_To_It(string word, int expected)
        {
            AAdder adder  = new AAdder();
            int    result = adder.AddAsTo(word);

            Assert.That(result, Is.EqualTo(expected));
        }
Beispiel #4
0
        public void When_Word_Contains_aaa_Return_Minus_One(string word)
        {
            AAdder adder  = new AAdder();
            int    result = adder.AddAsTo(word);

            Assert.That(result, Is.EqualTo(-1));
        }