Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public void ShouldAddToCounter()
        {
            SetCounter counter = new SetCounter();

            counter.Add(10);
            Assert.That(counter.Peek(), Is.EqualTo(10));
        }