Beispiel #1
0
        public void WhenAddIsUsedOnEmptyStack_ShouldReject()
        {
            Calculator calc = new Calculator();

            calc.TryAdd().Should().BeFalse();
        }
Beispiel #2
0
        public void WhenNumberIsPushed_ShouldCheckIfItsInValidRange(int number, bool result)
        {
            Calculator calc = new Calculator();

            calc.TryPush(number).Should().Be(result);
        }