4. Unit test, 于亳亰仆舒亠仆仆
仂亟 (亰舒亰于亳舒亶, 仄亠仂亟)
亊从亳亶 于亳从仍亳从舒 仆亳亶 从仂亟
仗仍 仂亞仂 仗亠亠于 仗舒于亳仍仆
亠磻亳 仗亳仗亠仆
Unit = 仄仂亟仍, 从仂仄仗仂仆亠仆
(仆从, 仄亠仂亟, 从仍舒, Unit of Work)
5. Unit test
[TestFixture]
public class CalculatorTests
{
[Test]
public void Sum_ReturnsCorrectValue()
{
var math = new Calculator();
int result = math.Sum(1, 2);
Assert.AreEqual(3, result);
}
}