public void GetSensorStates_SetAndGet() { var socket = new Socket(1, "Klaus-Dieter"); var store = new StateStore(); store.SetSensorState(socket, "SoundDetector", PowerStatus.Off); var result = store.GetSensorStates(socket); Assert.Single(result); Assert.True(result.ContainsKey("SoundDetector")); Assert.Equal(PowerStatus.Off, result["SoundDetector"]); }