public void ForceBuildCorrectlyHandlesRelativePath() { var webClient = mocks.Create <WebClient>(MockBehavior.Strict).Object; SetupWebClient(webClient, "http://relative/ViewFarmReport.aspx"); var client = new CruiseServerHttpClient("http://relative", webClient); client.ForceBuild("Project1"); mocks.VerifyAll(); }
public void ForceBuildCorrectlyHandlesRelativePath() { var webClient = mocks.StrictMock <WebClient>(); Expect.Call(webClient.UploadValues("http://relative/ViewFarmReport.aspx", null)) .IgnoreArguments() .Return(new byte[0]); var client = new CruiseServerHttpClient("http://relative", webClient); mocks.ReplayAll(); client.ForceBuild("Project1"); mocks.VerifyAll(); }
public void ForceBuildCorrectlyHandlesRelativePath() { var webClient = mocks.StrictMock<WebClient>(); Expect.Call(webClient.UploadValues("http://relative/ViewFarmReport.aspx", null)) .IgnoreArguments() .Return(new byte[0]); var client = new CruiseServerHttpClient("http://relative", webClient); mocks.ReplayAll(); client.ForceBuild("Project1"); mocks.VerifyAll(); }