public void ShouldCompareTwoNumbers() { SetCounter a = new SetCounter(); SetCounter b = new SetCounter(); a.Add(10); b.Add(5); b.Add(5); Assert.That(a.Peek(), Is.EqualTo(b.Peek())); Assert.That(a.IsEqual(b.Peek()), Is.True); }
public void ShouldAddToCounter() { SetCounter counter = new SetCounter(); counter.Add(10); Assert.That(counter.Peek(), Is.EqualTo(10)); }