chr
2026-04-08 53e656200368a983e563550e2cc1acbc6d86b729
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
namespace OpenTap.Engine.UnitTests.TestTestSteps
{
    [Display("Compare Int", "Compares two integer values and fails if they are different.", "Tests")]
    public class CompareIntStep : TestStep
    {
        public int InputValue { get; set; }
        
        public int ExpectedValue { get; set; }
 
        public override void Run()
        {
            if (InputValue != ExpectedValue)
            {
                Log.Info($"Compare int: {InputValue} != {ExpectedValue}");
                UpgradeVerdict(Verdict.Fail);
            }
            else
            {
                Log.Info($"Compare int: {InputValue} == {ExpectedValue}");
                UpgradeVerdict(Verdict.Pass);
            }
        }
    }
}