public void AbsTest(decimal number) { MathMethods mathMethods = new MathMethods(); decimal result = mathMethods.Abs(number); decimal wantedResult = Math.Abs(number); Assert.That(result.Equals(wantedResult)); }
static void Main(string[] args) { // all features: FULXY-NADQW-ZAMPX-PQHUT // just abs method: KDDSE-QWAOT-LGFUL-JLZTM var math = new MathMethods("FULXY-NADQW-ZAMPX-PQHUT"); Console.WriteLine(math.Abs(5)); Console.WriteLine(math.Fibonacci(5)); Console.ReadLine(); return; }