Exemplo n.º 1
0
        public void Given_dolphin_Should_return_TheDolphin()
        {
            var bandNameGenerator = new BandNameGenerator();
            var actual            = bandNameGenerator.Generate("dolphin");

            Assert.AreEqual("The Dolphin", actual);
        }
Exemplo n.º 2
0
        public void BasicTests(string expected, string inputString)
        {
            var    kata   = new BandNameGenerator();
            string actual = kata.NameGenerator(inputString);

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 3
0
        public void Given_alaska_Should_return_Alaskalaska()
        {
            var bandNameGenerator = new BandNameGenerator();
            var actual            = bandNameGenerator.Generate("alaska");

            Assert.AreEqual("Alaskalaska", actual);
        }
Exemplo n.º 4
0
        public void Input_Empty_String_Should_Be_Empty(string inputString, string expected)
        {
            var target = new BandNameGenerator();

            var actual = target.GenerateBandName(inputString);

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 5
0
        public void Test_GenerateBandName_WHEN_StartEqualsEnd_THEN_ReturnCaptionDoubleStr()
        {
            //given
            string input = "bob";
            //when
            string actual = BandNameGenerator.GenerateBandName(input);

            //then
            Assert.AreEqual("Bobob", actual);
        }
Exemplo n.º 6
0
        public void Test_GenerateBandName_WHEN_StartNotEqualEnd_THEN_ReturnTheAddCaptionStr()
        {
            //given
            string input = "car";

            //when
            string actual = BandNameGenerator.GenerateBandName(input);

            //then
            Assert.AreEqual("The Car", actual);
        }
Exemplo n.º 7
0
        public void Test_GenerateBandName_WHEN_InputSingleChar_THEN_ReturnCaptionDoubleChars()
        {
            //given
            string input = "a";

            //when
            string actual = BandNameGenerator.GenerateBandName(input);

            //then
            Assert.AreEqual("A", actual);
        }
Exemplo n.º 8
0
        public void Test_GenerateBandName_WHEN_InputNullStr_THEN_ThrowException()
        {
            //given
            string input = null;

            //when
            string actual = BandNameGenerator.GenerateBandName(input);

            //then
            //ExpectedException by Attribute
        }
        public string SampleTests(string input)
        {
            var kata = new BandNameGenerator();

            return(kata.Generator(input));
        }
        private static void BandNameGeneratorTestCase(string input, string expect)
        {
            var actual = BandNameGenerator.getNewName(input);

            Assert.AreEqual(actual, expect);
        }