Esempio n. 1
0
    public async Task GetAccessoryInfo()
    {
        var info = await _sut.GetAccessoryInfoAsync(_ipAddress);

        Assert.NotNull(info);

        Assert.NotEmpty(info.productName);
        Assert.InRange(info.hardwareBoardType, 1, int.MaxValue);
        Assert.InRange(info.firmwareBuildNumber, 1, int.MaxValue);
        Assert.NotNull(info.firmwareVersion);
        Assert.NotEmpty(info.serialNumber);
        Assert.NotEmpty(info.displayName);
        Assert.NotEmpty(info.features);
        Assert.All(info.features, Assert.NotNull);
        Assert.All(info.features, Assert.NotEmpty);
    }
Esempio n. 2
0
 public Task <Models.AccessoryInfoObject> GetLightInfoAsync(IPAddress ip, CancellationToken?cancellationToken = default)
 {
     Guard.Argument(ip).NotNull();
     return(_client.GetAccessoryInfoAsync(ip, cancellationToken));
 }