calculator/src/CalculatorUnitTests
Daniel-Parker 2cafb0dc88
Scientific and Programmer tests (#779)
* Maximize window during setup, and added divide by zero error test

* Added Error_CubedNegativeNumber test and AOT buttons

* Made Added AoT Tests and test are faster

* Hotkey and Mouse Input BVT Test added, Memory Test started

* Started Aligning BVTs with manual tests.  Added TC23466694, TC17416429, and TC17416884, and a test to switching mode test

* Basic Scientific Mode Functional Test Tests

* Added history panel test, and history flyout test for Standard calculator, and added the supporting framework

* Added some functional tests for Scientific mode.

* Basic Scientific Mode functional tests, added solution to set Angle Operator button correctly.

* Created functions to resize the app to display history panel, to display history button, display memory panel, and memory button.  Then I applied them to reduce areas with rewritten code, and to help with over all test stability and speed.

* I added the trigonometry functional tests

* Pull from latetest master, and retargeted solution

* Added a GetCalculatorWindowPostion function, when resizing window to show history/memory label, set window position to (0,0), and the same when resizing KOT calculator.  This will make tests more stable by keeping calculator on screen. It will also help with any testing that may require tracking the apps postion. To fix a test failure, changed function from ResizeToDiplayHistoryButton to ResizeToNotDisplayHistoryLabel.

* Sorted Using Statements, modified .gitignore to ignore **src/out, etc...

* Merged CalcMemoryFlyout into MemoryPanel, and deleted CalcMemoryFlyout. Merged CalcHistoryFlyout in HistoryPanel, and deleted CalcMemory.  Created GlobalCalculatorUI.cs.  Updated tests to work with these changes.

* hold on to changes

* Changed all KOT to Aot,
Removed equal button click in Test Cleanup/History method uses page source,
Removed extra line in Calculator.vcxproj.filters, Removed Try/Catch in the ClearHistory method

* Removed unused elses
Added CalculatorResults class
Added StandardAoTCalculatorPage
Removed manual test case info in the comments

* - In test framework, where it worked,
made some elements private
- Created EnsureCalculatorHasFocus() in GlobalCalculatorUI.cs
- Due to new classes, moved some methods to more correct classes
- Moved "page.MemoryPanel.ResizeWindowToDiplayMemoryLabel();" from
SetupCalculatorSession() to ClassInitialize()

* Sorted Using

* Updating fork from latest master

* Don't stand so

* Minor edits, fixing things from PR comments

* Merging scientific and standard mode tests, minor merge conflict fixes

* Method work
- Created ResizeAoTWindowToDiplayInvertButton()
    - Applied to test method AoT_ErrorMessage()
- Added page.ScientificOperators.ResetFEButton(fEButtonState.Normal);
to TestIniT in ScientificModeFunctionalTests
- Fixed if statement in public void ResetFEButton(fEButtonState value)

* Added StandardOperatorsPanel and removed duplicated code

* Created tests for Programmer mode, fixed a typo that appeared in multiple locations

* Fixed clear entry not working in Scientific test

* This time I really fixed the problem with clear memory not being found every time

* Revert shared changes

* Rebased onto master and resolved conflicts

* Fixed the 15 second delay on every scientific mode test

* Greatly shortened bitflipkeypad test

Co-authored-by: Crystal Edwards (Insight Global Inc) <v-credwa@microsoft.com>
Co-authored-by: Crystal Edwards <45952655+v-credwa@users.noreply.github.com>
2020-04-28 10:54:55 -07:00
..
Assets Optimised images losslessly. (#229) 2019-03-13 16:37:50 -07:00
Mocks Merge master into feature/GraphingCalculator branch (#585) 2019-07-15 11:17:21 -07:00
AsyncHelper.cpp Remove AsyncHelper, Resource and Module.cpp from CalculatorUnitTests project. (#746) 2019-11-01 14:08:26 -07:00
AsyncHelper.h Remove AsyncHelper, Resource and Module.cpp from CalculatorUnitTests project. (#746) 2019-11-01 14:08:26 -07:00
CalcEngineTests.cpp Wstring view overrun (#884) 2020-01-06 13:44:40 -08:00
CalcInputTest.cpp Fix prefix 0s after deleting decimal point (#825) 2020-01-03 02:21:12 -08:00
CalculatorManagerTest.cpp Fix the operand order of logbasex for consistency (#1115) 2020-04-03 10:34:59 -07:00
CalculatorUnitTests_TemporaryKey.pfx Updated unit tests certificate (#971) 2020-01-27 11:25:33 -08:00
CalculatorUnitTests.rc Remove AsyncHelper, Resource and Module.cpp from CalculatorUnitTests project. (#746) 2019-11-01 14:08:26 -07:00
CalculatorUnitTests.vcxproj Scientific and Programmer tests (#779) 2020-04-28 10:54:55 -07:00
CalculatorUnitTests.vcxproj.filters refactor HistoryTest.cpp to test the history using HistoryViewModel (#784) 2020-04-07 17:08:02 -07:00
CopyPasteManagerTest.cpp merge with master 2019-12-02 19:36:54 -08:00
CurrencyConverterUnitTests.cpp Hide or Disable graphing calculator menu item when necessary (#848) 2019-12-06 15:03:07 -08:00
DateCalculatorUnitTests.cpp merge with master 2019-12-02 19:36:54 -08:00
DateUtils.h Merge master into feature/GraphingCalculator branch (#585) 2019-07-15 11:17:21 -07:00
Helper.cpp refactor HistoryTest.cpp to test the history using HistoryViewModel (#784) 2020-04-07 17:08:02 -07:00
Helpers.h refactor HistoryTest.cpp to test the history using HistoryViewModel (#784) 2020-04-07 17:08:02 -07:00
HistoryTests.cpp refactor HistoryTest.cpp to test the history using HistoryViewModel (#784) 2020-04-07 17:08:02 -07:00
LocalizationServiceUnitTests.cpp Merge master into feature/GraphingCalculator branch (#660) 2019-09-05 15:01:12 -07:00
LocalizationSettingsUnitTests.cpp Refactoring LocalizationSettings (#850) 2019-12-09 19:28:43 -08:00
Module.cpp Remove AsyncHelper, Resource and Module.cpp from CalculatorUnitTests project. (#746) 2019-11-01 14:08:26 -07:00
MultiWindowUnitTests.cpp refactor HistoryTest.cpp to test the history using HistoryViewModel (#784) 2020-04-07 17:08:02 -07:00
NavCategoryUnitTests.cpp One more unit test fix 2020-01-07 11:46:52 -08:00
Package.appxmanifest Clean up unit test projects (#4) 2019-01-29 19:37:37 -08:00
pch.cpp Clean up unit test projects (#4) 2019-01-29 19:37:37 -08:00
pch.h Replace old C headers with the C++ ones (#1099) 2020-03-23 08:44:06 -07:00
RationalTest.cpp Fix some code analysis warnings in CalcManager (#1074) 2020-03-30 15:23:22 -07:00
resource.h Remove AsyncHelper, Resource and Module.cpp from CalculatorUnitTests project. (#746) 2019-11-01 14:08:26 -07:00
StandardViewModelUnitTests.cpp refactor HistoryTest.cpp to test the history using HistoryViewModel (#784) 2020-04-07 17:08:02 -07:00
Test.resw Clean up unit test projects (#4) 2019-01-29 19:37:37 -08:00
UnitConverterTest.cpp Cleaning up some UnitConverter code and making some of it more efficient. (#875) 2019-12-18 01:19:28 -08:00
UnitConverterViewModelUnitTests.cpp Cleaning up some UnitConverter code and making some of it more efficient. (#875) 2019-12-18 01:19:28 -08:00
UnitConverterViewModelUnitTests.h Cleaning up some UnitConverter code and making some of it more efficient. (#875) 2019-12-18 01:19:28 -08:00
UnitTestApp.rd.xml Spelling (#135) 2019-03-07 10:27:13 -08:00
UnitTestApp.xaml Clean up unit test projects (#4) 2019-01-29 19:37:37 -08:00
UnitTestApp.xaml.cpp Merge master into feature/GraphingCalculator branch (#585) 2019-07-15 11:17:21 -07:00
UnitTestApp.xaml.h Merge master into feature/GraphingCalculator branch (#585) 2019-07-15 11:17:21 -07:00
UtilsTests.cpp Merge master into feature/GraphingCalculator branch (#585) 2019-07-15 11:17:21 -07:00