public void ShouldGenerateImagePathCorrectlyEvenWithTrailingBackslashes() { var result = _imageHelper.GenerateImagePath(1, @"foo\", _rootPath + @"\"); Assert.AreEqual(_rootPath + @"\" + 1 + @"\foo\", result); }