public void Ping_WithInvalidCredentials() { //Arrange Credentials c = new Credentials( appName: "wuffSonic", user: "******", password: "******", version: "1.11", uri: "http://music.haus.foxburu.mx" ); Ping p = new Ping() { Credentials = c }; //Act p.DoRequest<PingResponse>().GetAwaiter().GetResult(); }
public void Ping_WithValidCredentials() { //Arrange Ping p = new Ping() { Credentials = c }; string expectedStatus = "ok"; //Act var response = p.DoRequest<PingResponse>().Result; //Assert Assert.AreEqual<string>(expectedStatus, response.status); }
public void Ping_NoCredentials() { //Arrange Ping p = new Ping(); //Act p.DoRequest<PingResponse>().GetAwaiter().GetResult(); }