Created
July 13, 2017 18:52
-
-
Save nkolev92/33ad78c4b231dc47da4c1c2b1feb1fd0 to your computer and use it in GitHub Desktop.
RebuildCleanTests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NetCoreProjectTest.ps1 | |
function Test-NetCoreConsoleAppRebuildDoesNotDeleteCacheFile { | |
# Arrange & Act | |
$project = New-NetCoreConsoleApp ConsoleApp | |
Build-Solution | |
Assert-ProjectCacheFileExists $project | |
#Act | |
Rebuild-Solution | |
#Assert | |
Assert-ProjectCacheFileNotExists $project | |
} | |
BuildIntegratedTest.ps1 | |
function Test-BuildIntegratedRebuildDoesNotDeleteCacheFile { | |
# Arrange | |
$project = New-BuildIntegratedProj UAPApp | |
Install-Package NuGet.Versioning -ProjectName $project.Name -version 1.0.7 | |
Build-Solution | |
Assert-ProjectCacheFileExists $project | |
#Act | |
Rebuild-Solution | |
#Assert | |
Assert-ProjectCacheFileExists $project | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment