public void TestSum() { var sut = new Summarizer(); int actualSum = sut.CalculateSum(12, 30); Assert.AreEqual(42, actualSum); actualSum = sut.CalculateSum(52, -10); Assert.AreEqual(42, actualSum); actualSum = sut.CalculateSum(42, 0); Assert.AreEqual(42, actualSum); }
public void TearDown() { sut = null; }
public void SetUp() { sut = new Summarizer(); }
public void PositiveZeroSummationSucceeds() { var sut = new Summarizer(); int actualSum = sut.CalculateSum(42, 0); Assert.AreEqual(42, actualSum); }