public void shouldFailBecauseOfNullDevKey() { proxy = new TestLink(null, testlinkUrl); var tcidList = proxy.GetTestCaseIDByName("10 G shock"); Assert.Catch <XmlRpcServerException>(() => proxy.SayHello()); Assert.Fail("Did not cause an exception"); }
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"); }
public void SayHelloTest() { Assert.NotNull(testlink.SayHello()); Console.WriteLine(testlink.SayHello()); }
public void ShouldFailBecauseOfInvalidURL() { proxy = new TestLink(apiKey, "http://localhost/testlink/api/xmlrpc.php"); Assert.Catch <XmlRpcServerException>(() => proxy.SayHello()); Assert.Fail("Did not cause an exception"); }