Created
November 17, 2013 21:24
-
-
Save JayBazuzi/7518446 to your computer and use it in GitHub Desktop.
Initial test for running MSBuild w/ custom task
This file contains 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
[TestMethod] | |
public void TestMethod1() | |
{ | |
var process = new Process | |
{ | |
StartInfo = | |
{ | |
FileName = @"C:\Program Files (x86)\MSBuild\12.0\bin\MSBuild.exe", | |
Arguments = @"..\..\my.proj /v:m /nologo", | |
UseShellExecute = false, | |
RedirectStandardOutput = true, | |
} | |
}; | |
process.Start(); | |
var result = process.StandardOutput.ReadToEnd(); | |
process.WaitForExit(); | |
const string expected = ""; | |
Assert.AreEqual(expected, result); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment