-
Notifications
You must be signed in to change notification settings - Fork 4
/
GrapherTests.fs
33 lines (26 loc) · 898 Bytes
/
GrapherTests.fs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/// <summary>
/// Tests for the frontend graph modeller.
/// </summary>
module Starling.Tests.Lang.Grapher
open Chessie.ErrorHandling
open NUnit.Framework
open Starling.Utils
open Starling.Core.Graph
open Starling.Tests.Graph.Tests.Studies
open Starling.Lang.Grapher
open Starling.Tests.Studies
/// <summary>
/// Test class for the frontend graph modeller.
/// </summary>
module Tests =
open Starling.Utils.Testing
[<Test>]
let ``Convert the ticket lock 'lock' method to a subgraph`` () =
assertEqual
(Some ticketLockLockSubgraph)
(okOption (lift toSubgraph (graphMethod "lock" ticketLockGuardedLock)))
[<Test>]
let ``Convert the ticket lock 'unlock' method to a subgraph`` () =
assertEqual
(Some ticketLockUnlockSubgraph)
(okOption (lift toSubgraph (graphMethod "unlock" ticketLockGuardedUnlock)))