public void ShouldExtractAssemblyFileNameFromPath(string name, string expectedSuiteName) { // Given var suiteNameReplacer = new SuiteNameReplacer(new MyTeamCityInfo()); // When var actualSuiteName = suiteNameReplacer.Replace(name); // Then Assert.AreEqual(expectedSuiteName, actualSuiteName); }
public void ShouldReplaceAssemblyName(string name, string suitePattern, string expectedSuiteName) { // Given var suiteNameReplacer = new SuiteNameReplacer(new MyTeamCityInfo { SuitePattern = suitePattern }); // When var actualSuiteName = suiteNameReplacer.Replace(name); // Then Assert.AreEqual(expectedSuiteName, actualSuiteName); }