Skip to content

Commit 568fd9c

Browse files
committed
C#: Add some partial tests for Properties and Indexers.
1 parent 5836c8d commit 568fd9c

File tree

6 files changed

+33
-0
lines changed

6 files changed

+33
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
| Partial.cs:7:46:7:48 | get_PartialProperty1 | true |
2+
| Partial.cs:7:51:7:53 | set_PartialProperty1 | true |
3+
| Partial.cs:9:45:9:47 | get_Item | true |
4+
| Partial.cs:9:50:9:52 | set_Item | true |
5+
| Partial.cs:41:30:41:32 | get_Property | false |
6+
| Partial.cs:41:35:41:37 | set_Property | false |
7+
| Partial.cs:44:9:44:11 | get_Item | false |
8+
| Partial.cs:45:9:45:11 | set_Item | false |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import csharp
2+
3+
private boolean isPartial(Accessor a) { if a.isPartial() then result = true else result = false }
4+
5+
from Accessor a
6+
where a.fromSource()
7+
select a, isPartial(a)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
| Partial.cs:9:27:9:30 | Item | true |
2+
| Partial.cs:42:19:42:22 | Item | false |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import csharp
2+
3+
private boolean isPartial(Indexer i) { if i.isPartial() then result = true else result = false }
4+
5+
from Indexer i
6+
where i.fromSource()
7+
select i, isPartial(i)
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
| Partial.cs:7:27:7:42 | PartialProperty1 | true |
2+
| Partial.cs:41:19:41:26 | Property | false |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import csharp
2+
3+
private boolean isPartial(Property p) { if p.isPartial() then result = true else result = false }
4+
5+
from Property p
6+
where p.fromSource()
7+
select p, isPartial(p)

0 commit comments

Comments
 (0)