Allow false positive rebuilds when timestamp collision occurs

Fixes #965
This commit is contained in:
Mihai Codoban 2016-01-26 14:53:56 -08:00
parent be4629a6a6
commit 6d1ff3af8c
6 changed files with 76 additions and 51 deletions

View file

@ -89,6 +89,20 @@ namespace Microsoft.DotNet.Tools.Test.Utilities
$"Exit Code: {_commandResult.ExitCode}{Environment.NewLine}" +
$"StdOut:{Environment.NewLine}{_commandResult.StdOut}{Environment.NewLine}" +
$"StdErr:{Environment.NewLine}{_commandResult.StdErr}{Environment.NewLine}"; ;
}
public AndConstraint<CommandResultAssertions> HaveSkippedProjectCompilation(string skippedProject)
{
_commandResult.StdOut.Should().Contain($"Project {skippedProject} (DNXCore,Version=v5.0) was previously compiled. Skipping compilation.");
return new AndConstraint<CommandResultAssertions>(this);
}
public AndConstraint<CommandResultAssertions> HaveCompiledProject(string compiledProject)
{
_commandResult.StdOut.Should().Contain($"Project {compiledProject} (DNXCore,Version=v5.0) will be compiled");
return new AndConstraint<CommandResultAssertions>(this);
}
}
}