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
| [<Scenario>] | |
| let When_calculating_fac_5_it_should_equal_120() = | |
| Given 5 | |
| |> When calculating factorial | |
| |> It should equal 120 | |
| |> Verify | |
| [<Scenario>] | |
| let When_calculating_fac_1_it_should_equal_1() = | |
| Given 1 |
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
| Scenario: When removing an 3 from a small list it should not contain 3 | |
| - Given [1; 2; 3; 4; 5] | |
| – When removing 3 | |
| => It should not contain 3 | |
| => It should contain 4 | |
| ==> OK |
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
| [<Scenario>] | |
| let When_removing_an_3_from_a_small_list_it_should_not_contain_3() = | |
| Given [1;2;3;4;5] // "Arrange" テストコンテキスト | |
| |> When removing 3 // "Act" | |
| |> It shouldn't contain 3 // "Assert" | |
| |> It should contain 4 // 別の表明 | |
| |> Verify // シナリオの検証 |
NewerOlder