Created
February 19, 2010 19:13
-
-
Save chaliy/309058 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ``Calculator Div Operation Specification`` | |
open FsSpec | |
open Example.Sut | |
module ``Describe simple divide opertion`` = | |
let ``divide two integers`` = | |
let res = Calc.Div 2 2 | |
res.should_be_equal_to 1 | |
let ``divide by zero (Unexpected Failure)`` = | |
let res = Calc.Div 2 0 | |
res.should_be_equal_to 1 | |
let ``do extended divide with two integers (Unmet Exepectations)`` = | |
let res = Calc.DivEx 2 2 | |
res.should_be_equal_to 1 | |
//-------------------------------------- | |
//Calculator Div Operation Specification | |
//-------------------------------------- | |
// | |
// Describe simple divide opertion | |
// | |
// -Should divide two integers - OK | |
// -Should divide by zero (Unexpected Failure) - Attempted to divide by zero. | |
// -Should do extended divide with two integers (Unmet Exepectations) - Failed. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment