31 references to _mockEngine
Microsoft.Build.Tasks.UnitTests (31)
DownloadFile_Tests.cs (31)
36BuildEngine = _mockEngine,
65BuildEngine = _mockEngine,
113BuildEngine = _mockEngine,
143BuildEngine = _mockEngine,
171BuildEngine = _mockEngine,
175downloadFile.Execute().ShouldBeFalse(_mockEngine.Log);
177_mockEngine.Log.ShouldContain("MSB3921");
185BuildEngine = _mockEngine,
190downloadFile.Execute().ShouldBeFalse(_mockEngine.Log);
192_mockEngine.Log.ShouldContain("Response status code does not indicate success: 404 (Not Found).");
208BuildEngine = _mockEngine,
229downloadFile.Execute().ShouldBeTrue(_mockEngine.Log);
231_mockEngine.Log.ShouldContain("MSB3924", customMessage: _mockEngine.Log);
240BuildEngine = _mockEngine,
247downloadFile.Execute().ShouldBeFalse(_mockEngine.Log);
249_mockEngine.Log.ShouldContain("MSB3924", customMessage: _mockEngine.Log);
259BuildEngine = _mockEngine,
270downloadFile.Execute().ShouldBeFalse(_mockEngine.Log);
272_mockEngine.Log.ShouldContain("MSB3923", customMessage: _mockEngine.Log);
282BuildEngine = _mockEngine,
309result.ShouldBeFalse(_mockEngine.Log);
321BuildEngine = _mockEngine,
342_mockEngine.Log.ShouldContain("Did not download file from \"http://success/foo.txt\"", customMessage: _mockEngine.Log);
351BuildEngine = _mockEngine,
360downloadFile.Execute().ShouldBeFalse(_mockEngine.Log);
362_mockEngine.Log.ShouldContain("MSB3922", customMessage: _mockEngine.Log);