Skip to content

Commit

Permalink
MathInputButton_Command test: use the MathInputButton's Keyboard getter
Browse files Browse the repository at this point in the history
  • Loading branch information
SymboLinker committed Sep 19, 2020
1 parent 99417ce commit fe0f460
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CSharpMath.Forms.Tests/ButtonTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public void MathInputButton_Command(MathKeyboardInput mathKeyboardInput) {
var mathKeyboardClassThatProcessesKeyPresses = new MathKeyboard();
var mathInputButton = new MathInputButton { Input = mathKeyboardInput, Keyboard = mathKeyboardClassThatProcessesKeyPresses };
mathInputButton.Command.Execute(null); // Simulate a MathInputButton key press
Assert.Equal(expectedResult(), mathKeyboardClassThatProcessesKeyPresses.LaTeX);
Assert.Equal(expectedResult(), mathInputButton.Keyboard.LaTeX);
string expectedResult() {
var kb = new MathKeyboard();
kb.KeyPress(mathKeyboardInput);
Expand Down

0 comments on commit fe0f460

Please sign in to comment.