public void handleGETRequest_Favicon() { String http_url = "favicon.ico"; bool expected = false; Request newRequest = new Request(http_url); newRequest.handleGETRequest(); bool actual = newRequest.favicon; Assert.AreEqual(expected, actual, "Stimmt nicht"); }
public void handleGETRequest_Favicon() { String http_url = "GET /favicon.ico HTTP/1.1"; bool expected = true; Request newRequest = new Request(http_url); newRequest.handleGETRequest(); bool actual = newRequest.favicon; Assert.AreEqual(expected, actual, "Stimmt"); }
public void PluginName_true() { string http_url = "/StaticFile"; string expected = "StaticFile"; Request rq = new Request(http_url); rq.handleGETRequest(); string[] split = Regex.Split(http_url, "/"); string actual = split[1]; Assert.AreEqual(expected, actual, "Pluginname richtig"); }