stateChangeEventArgs.PreviousState = ControlStates.DisabledSelected;\r
Assert.AreEqual(ControlStates.DisabledSelected, stateChangeEventArgs.PreviousState, "Should be equal");\r
\r
- stateChangeEventArgs.PreviousState = ControlStates.Max;\r
- Assert.AreEqual(ControlStates.Max, stateChangeEventArgs.PreviousState, "Should be equal");\r
+ stateChangeEventArgs.PreviousState = ControlStates.PressedSelected;\r
+ Assert.AreEqual(ControlStates.PressedSelected, stateChangeEventArgs.PreviousState, "Should be equal");\r
\r
}\r
\r
stateChangeEventArgs.CurrentState = ControlStates.DisabledSelected;\r
Assert.AreEqual(ControlStates.DisabledSelected, stateChangeEventArgs.CurrentState, "Should be equal");\r
\r
- stateChangeEventArgs.CurrentState = ControlStates.Max;\r
- Assert.AreEqual(ControlStates.Max, stateChangeEventArgs.CurrentState, "Should be equal");\r
+ stateChangeEventArgs.CurrentState = ControlStates.PressedSelected;\r
+ Assert.AreEqual(ControlStates.PressedSelected, stateChangeEventArgs.CurrentState, "Should be equal");\r
}\r
}\r
}\r
Assert.AreEqual(ControlStates.SelectedFocused, eventArgs.CurrentState, "Retrieved CurrentState should be equal to set value.");
eventArgs.CurrentState = ControlStates.DisabledSelected;
Assert.AreEqual(ControlStates.DisabledSelected, eventArgs.CurrentState, "Retrieved CurrentState should be equal to set value.");
- eventArgs.CurrentState = ControlStates.Max;
- Assert.AreEqual(ControlStates.Max, eventArgs.CurrentState, "Retrieved CurrentState should be equal to set value.");
+ eventArgs.CurrentState = ControlStates.PressedSelected;
+ Assert.AreEqual(ControlStates.PressedSelected, eventArgs.CurrentState, "Retrieved CurrentState should be equal to set value.");
}
}
}