-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathaccess.feature
More file actions
43 lines (43 loc) · 1.54 KB
/
access.feature
File metadata and controls
43 lines (43 loc) · 1.54 KB
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
34
35
36
37
38
39
40
41
42
43
Feature: Session access
Scenario: Check data does not exist
When data does not exist
Then property check returns false
And array access check returns false
Scenario: Check data exist
When data exists
Then property check returns true
And array access check returns true
Scenario: Read data that exists
When data exists
Then property read returns data
And array access read returns data
Scenario: Read data that does not exist
When data does not exist
Then property read triggers error
And property read returns null
And array access read triggers error
And array access read returns null
Scenario: Null coalesce when data does not exist
When data does not exist
Then property read with null coalesce returns null
And array access read with null coalesce returns null
Scenario: Write property data
When data does not exist
Then property write succeeds
Scenario: Write array access data
When data does not exist
Then array access write succeeds
Scenario: Iterate over populated session
When data exists
Then data is iterated
Scenario: Iterate over non-populated session
When data does not exist
Then data is not iterated
Scenario: Overload existing array
When empty array for overload exists
Then overloading using property access succeeds
And overloading using property access succeeds
Scenario: Overload non existing array
When data does not exist
Then overloading using array access fails
And overloading using property access fails