public void Given_dolphin_Should_return_TheDolphin() { var bandNameGenerator = new BandNameGenerator(); var actual = bandNameGenerator.Generate("dolphin"); Assert.AreEqual("The Dolphin", actual); }
public void BasicTests(string expected, string inputString) { var kata = new BandNameGenerator(); string actual = kata.NameGenerator(inputString); Assert.AreEqual(expected, actual); }
public void Given_alaska_Should_return_Alaskalaska() { var bandNameGenerator = new BandNameGenerator(); var actual = bandNameGenerator.Generate("alaska"); Assert.AreEqual("Alaskalaska", actual); }
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); }
public void Test_GenerateBandName_WHEN_StartEqualsEnd_THEN_ReturnCaptionDoubleStr() { //given string input = "bob"; //when string actual = BandNameGenerator.GenerateBandName(input); //then Assert.AreEqual("Bobob", actual); }
public void Test_GenerateBandName_WHEN_StartNotEqualEnd_THEN_ReturnTheAddCaptionStr() { //given string input = "car"; //when string actual = BandNameGenerator.GenerateBandName(input); //then Assert.AreEqual("The Car", actual); }
public void Test_GenerateBandName_WHEN_InputSingleChar_THEN_ReturnCaptionDoubleChars() { //given string input = "a"; //when string actual = BandNameGenerator.GenerateBandName(input); //then Assert.AreEqual("A", actual); }
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); }