예제 #1
0
        public void GetPhysicalState_SetAndGet()
        {
            var socket = new Socket(1, "Klaus-Dieter");

            var store = new StateStore();

            store.SetPhysicalState(socket, PowerStatus.On);
            var result = store.GetPhysicalStates();

            Assert.Single(result);
            Assert.True(result.ContainsKey(socket));
            Assert.Equal(PowerStatus.On, result[socket]);
        }