public void FindAbsolute1(int value)
        {
            int expected = value;

            int result = absoluteNumberCalculator.FindAbsolute(value);

            Assert.AreEqual(expected, result);
        }
        public void TestFindAbsolute0()
        {
            int number = 0;
            int expect = 0;
            int result = _absoluteNumberCalculator.FindAbsolute(number);

            Assert.AreEqual(expect, result);
        }
Exemple #3
0
 public void TestAbsolute()
 {
     Assert.AreEqual(4, number.FindAbsolute(-4));
 }