public async Task GetNewLightsTest() { IHueRequest request = new GetNewLightsRequest(); var response = await _client.GetResponseAsync(request); Assert.True(response is GetNewLightsResponse); Assert.Empty((GetNewLightsResponse)response); }
public async Task SearchNewLightsTest() { IHueRequest request = new SearchNewLightsRequest(); var response = await _client.GetResponseAsync(request); Assert.True(response is SuccessResponse); request = new GetNewLightsRequest(); response = await _client.GetResponseAsync(request); Assert.True(response is GetNewLightsResponse); Assert.True(((GetNewLightsResponse)response).LastScan == DateTime.MaxValue); }