/StackTDD

Stack class implementation using Test Driven Development

Primary LanguageC#

StackTDD

Stack class implementation using Test Driven Development

Requirements:

  1. Limit the size of the stack.
  2. Add element. (push)
  3. Remove element. (pop)
  4. Check what was the last element. (peek)
  5. Get the current size of the stack.
  6. Have a class that can accept any data type.
  7. When the customer exceeds the size of the Stack, we need to throw an appropriate exception.