public void shouldFailBecauseOfInvalidURL() { proxy = new TestLink(apiKey, "http://localhost/testlink/api/xmlrpc.php"); string result = proxy.SayHello(); Assert.AreNotEqual("Hello!", result, "Unexpected Server Response"); Assert.Fail("Did not cause an exception"); }
public void shouldFailBecauseOfNullDevKey() { proxy = new TestLink(null, targetDBUrl); List<TestCaseId> tcidList = proxy.GetTestCaseIDByName("10 G shock"); string result = proxy.SayHello(); Assert.AreNotEqual("Hello!", result, "Unexpected Server Response"); Assert.Fail("Did not cause an exception"); }