public void ConstructStatusCheckTest() { WirelessCommand command = new WirelessCommand("hand.dev"); string expected = "http://hand.dev/"; string actual = command.StatusCheck(); Assert.Equal(expected, actual); }
public void ReceiveSuccessfulStatusCheck() { StartStatusMockServer(); WirelessCommand command = new WirelessCommand("localhost:" + mockServer.Ports[0]); Dictionary <string, string> actual = new Dictionary <string, string>(); string expected = "success"; actual = command.Request(command.StatusCheck()).GetAwaiter().GetResult(); Assert.Equal(expected, actual["status"]); StopMockServer(); }