mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-14 02:26:50 -07:00
Hello GitHub
This commit is contained in:
parent
456fe5e355
commit
c13b8a099e
822 changed files with 276650 additions and 75 deletions
|
@ -0,0 +1,31 @@
|
|||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
// Licensed under the MIT License.
|
||||
|
||||
using Etw.Managed;
|
||||
using Calculator.UIAutomationLibrary.Components;
|
||||
using WEX.TestExecution;
|
||||
|
||||
namespace Calculator.UIAutomationLibrary.Tests
|
||||
{
|
||||
public static class BasicCalculationTest
|
||||
{
|
||||
/// <summary>
|
||||
/// This test uses LFMs to add and then delete an alarm.
|
||||
/// </summary>
|
||||
/// <param name="calculatorAppLfm">The LFM for the alarms app window.</param>
|
||||
public static void CalculateOnePlusTwo(this CalculatorAppLfm calculatorAppLfm)
|
||||
{
|
||||
var mainPage = calculatorAppLfm.MainPageLfm;
|
||||
|
||||
var standardCalculator = mainPage.NavigateToStandardCalculator();
|
||||
|
||||
standardCalculator.OnePlusTwoEnter();
|
||||
|
||||
Verify.AreEqual("\u202D3\u202C", standardCalculator.ObjectModel.Display.Name, "Ensure display value is 3");
|
||||
|
||||
standardCalculator.Clear();
|
||||
|
||||
Verify.AreEqual("\u202D0\u202C", standardCalculator.ObjectModel.Display.Name, "Ensure display value is 0");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue