private void TestScaledValue(string name, string jsonName, ushort output, ushort outputScaled)
        {
            ushort        state     = 999;
            Func <ushort> propValue = () => api.GetPropertyValue <ushort>(name);

            api.SetPropertyValue <SetUshortOutputArrayDelegate>("Set" + name + "F", (index, value) => state = value);
            api.SetPropertyValue <ushort>(name, output);
            propValue().Should().Be(output, "because '{0}' was set to {1}", name, output);
            TestHttpClient.RequestContents.Should().Be(String.Format(@"{{""output"":3,""{0}"":{1}}}", jsonName, outputScaled));
        }