public void SetModeState() { var store = new StateStore(); store.SetModes(new List <ConditionMode>() { new ConditionMode("Video", false), new ConditionMode("Audio", true), new ConditionMode("Work", true) }); store.SetModeState(new ConditionMode("Audio", false)); var result = store.GetModes(); Assert.Equal(3, result.Count()); Assert.Contains(new ConditionMode("Video", false), result); Assert.Contains(new ConditionMode("Audio", false), result); Assert.Contains(new ConditionMode("Work", true), result); }