Skip to content

Commit e0bddce

Browse files
committed
Fix pdb
1 parent b5ad015 commit e0bddce

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

test/UnitTests/MSTestAdapter.PlatformServices.UnitTests/Utilities/DeploymentUtilityTests.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -344,13 +344,15 @@ public void DeployShouldDeployPdbWithSourceIfPdbFileIsPresentInSourceDirectory()
344344
Path.Combine(testRunDirectories.OutDirectory, sourceFile),
345345
out warning),
346346
Times.Once);
347+
#if DEBUG
347348
_mockFileUtility.Verify(
348-
fu =>
349-
fu.CopyFileOverwrite(
350-
It.Is<string>(s => s.Contains(pdbFile)),
351-
Path.Combine(testRunDirectories.OutDirectory, pdbFile),
352-
out warning),
353-
Times.Once);
349+
fu =>
350+
fu.CopyFileOverwrite(
351+
It.Is<string>(s => s.Contains(pdbFile)),
352+
Path.Combine(testRunDirectories.OutDirectory, pdbFile),
353+
out warning),
354+
Times.Once);
355+
#endif
354356
}
355357

356358
public void DeployShouldNotDeployPdbFileOfAssemblyIfPdbFileIsNotPresentInAssemblyDirectory()

0 commit comments

Comments
 (0)