Esempio n. 1
0
 static void Main(string[] args)
 {
     MathLibOps sq = new MathLibOps();
     //Console.WriteLine(sq.Square(8).ToString());
     // Console.WriteLine(sq.Add(8.3, 9.24).ToString());
     // Console.WriteLine(sq.Multiply(5, 8).ToString());
     // Console.WriteLine(sq.Subtract(22, 42).ToString());
 }
Esempio n. 2
0
        public void WhenTheTwoNumbersAreAdded()
        {
            var firstNumber  = (int)ScenarioContext.Current["FirstNumber"];
            var secondNumber = (int)ScenarioContext.Current["SecondNumber"];
            var mathLibOps   = new MathLibOps();
            var addResult    = mathLibOps.Add(firstNumber, secondNumber);

            ScenarioContext.Current.Add("AddResult", addResult);
        }