public void ItReturnsThePromptNameWhenThePromptNameIsNotPrefixedWithUnderscoreA() { const string promptName = "PromptName_Alias"; var promptReportNameParser = new NativePromptReportNameParser(); var promptReportName = promptReportNameParser.Parse(promptName); Assert.AreEqual(promptName, promptReportName); }
public void ItReturnsThePromptNameWhenItDoesNotContainAnUnderscore() { const string promptName = "PromptName"; var promptReportNameParser = new NativePromptReportNameParser(); var promptReportName = promptReportNameParser.Parse(promptName); Assert.AreEqual(promptName, promptReportName); }
public void ItRemovesTheAUnderscorePrefixAndReturnsEverythingBeforeTheFinalUnderscoreWhenThereAreTwoUnderscores() { const string expectedPromptReportName = "Prompt_Name"; var promptName = string.Format("A_{0}_Alias", expectedPromptReportName); var promptReportNameParser = new NativePromptReportNameParser(); var promptReportName = promptReportNameParser.Parse(promptName); Assert.AreEqual(expectedPromptReportName, promptReportName); }
public void ItReturnsEverythingBeforeTheUnderscoreWhenThePromptNameContainsAnUnderscoreWhenThePromptNameStartsWithAUnderscore() { const string expectedPromptReportName = "PromptName"; var promptName = string.Format("A_{0}_Alias", expectedPromptReportName); var promptReportNameParser = new NativePromptReportNameParser(); var promptReportName = promptReportNameParser.Parse(promptName); Assert.AreEqual(expectedPromptReportName, promptReportName); }