public void Run_WillMakeWebRequest_Always() { var task = new Fake_DefaultStartupTask(); task.Run(); Assert.IsTrue(task.CalledDoWebRequest); }
public void Run_WillMakeCorrectConnectionString_Always() { var task = new Fake_DefaultStartupTask(); task.WebServiceUri = "http://testuri.com/dummyRequest.php"; task.MachineName = "dummyMachineName"; task.Version = "1.2.3.4"; task.Run(); Assert.AreEqual("http://testuri.com/dummyRequest.php?computer=dummyMachineName&version=1.2.3.4", task.CreatedConnectionString); }