1 2 3 4 5 6 7 8 9 10 11 12 13
using System; using ExampleLib; namespace ExampleLib.Tests { public class CalculatorTests { public void TestAdd() { var calc = new Calculator(); if (calc.Add(2, 3) != 5) { throw new Exception("Assertion Failed"); } } } }