public void Should_not_replace_hintPath_for_libs() { string originalPath = _projectFile.SelectNodes("/msb:Project/msb:ItemGroup/msb:Reference/msb:HintPath", _namespaceManager)[0].InnerText; var outputProjectFile = new HintPathUpdater(MSBUILD_NAMESPACE, _hintPathLookup).Update(ProjectPath); string updatedPath = outputProjectFile.SelectNodes("/msb:Project/msb:ItemGroup/msb:Reference/msb:HintPath", _namespaceManager)[0].InnerText; Assert.That(updatedPath, Is.EqualTo(originalPath)); }
public void Should_update_replace_wonga_hint_path_with_service_directory() { const string expectedPath = @"..\..\..\build\common\Wonga.Common.Data.dll"; A.CallTo(() => _hintPathLookup.For(A<string>.Ignored, A<string>.Ignored)).Returns(expectedPath); var outputProjectFile = new HintPathUpdater(MSBUILD_NAMESPACE, _hintPathLookup).Update(ProjectPath); string updatedPath = outputProjectFile.SelectNodes("/msb:Project/msb:ItemGroup/msb:Reference/msb:HintPath", _namespaceManager)[1].InnerText; Assert.That(updatedPath, Is.EqualTo(expectedPath)); }