Skip to content

Instantly share code, notes, and snippets.

@jcockhren
Last active November 23, 2015 18:53
Show Gist options
  • Save jcockhren/fef4320dd2b2d182bb5e to your computer and use it in GitHub Desktop.
Save jcockhren/fef4320dd2b2d182bb5e to your computer and use it in GitHub Desktop.
Calculator Assignment for those who finished their calculator.

Simple Calculator Advanced - Persisting Constants

Task

Write tests that ensure Constants are persisted across multiple runs of your calculator. You do not have to have persisting Constants working in your calculator project (yet). However you must have the passing tests to prove you could.

Keep in mind, our end goal is

First Run:

[0]> x = 3
saved 'x' as '3'
[1]> x
   = 3
[2]> quit
Bye!

Second Run:

[0]> x
   = 3
[1]> x + 3
   = 6
[2]>

Goals

  1. Practice creating and using Mocks during tests
  2. Practice using and leveraging MSDN documentation
  3. Get your tests green! 😄
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment