public void GetSunriseString_WithValidResponse_ReturnsUTCString() { var expected = "2:56:10 PM"; var result = SunriseSunsetOrg.GetSunriseString(responseContent); Assert.AreEqual(expected, result); }
public void GetSunriseString_WithInvalidObject_ThrowsException() { var result = SunriseSunsetOrg.GetSunriseString("Hello"); }
public void GetSunriseString_WithErrorStatusResponse_ReturnsNull() { var result = SunriseSunsetOrg.GetSunriseString(errorResponseContent); Assert.IsNull(result); }
public void GetSunriseString_WithNullResponse_ReturnsNull() { var result = SunriseSunsetOrg.GetSunriseString(null); Assert.IsNull(result); }