You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 26, 2022. It is now read-only.
VerifyCypher(cypher,results.FirstOrDefault(),"START movie=node(1) MATCH (movie)<-[:STARED_IN*1..5]-(actor) RETURN actor as actor, id(actor) as actor__Id, labels(actor) as actor__Labels, movie as movie, id(movie) as movie__Id, labels(movie) as movie__Labels");
34
+
VerifyCypher(cypher,results.FirstOrDefault(),
35
+
"START movie=node(1) MATCH (movie)<-[:STARED_IN*1..5]-(actor) RETURN actor as actor, id(actor) as actor__Id, labels(actor) as actor__Labels, movie as movie, id(movie) as movie__Id, labels(movie) as movie__Labels");
VerifyCypher(cypher,results.FirstOrDefault(),@"MATCH (movie:arthouse) SET movie.requiresSubtitles = ""yes"" RETURN actor as actor, id(actor) as actor__Id, labels(actor) as actor__Labels, movie as movie, id(movie) as movie__Id, labels(movie) as movie__Labels");
107
+
VerifyCypher(cypher,results.FirstOrDefault(),
108
+
@"MATCH (movie:arthouse) SET movie.requiresSubtitles = ""yes"" RETURN actor as actor, id(actor) as actor__Id, labels(actor) as actor__Labels, movie as movie, id(movie) as movie__Id, labels(movie) as movie__Labels");
53
109
}
54
110
55
111
[TestMethod]
@@ -63,10 +119,11 @@ public void BuildCypherQuery_CreateRelationship_ExecutesCorrectQuery()
VerifyCypher(cypher,results.FirstOrDefault(),"START actor=node(1), movie=node(2) CREATE (actor)-[actedIn:ACTED_IN]->(movie) RETURN actedIn as actedIn, id(actedIn) as actedIn__Id, type(actedIn) as actedIn__Type");
124
+
125
+
VerifyCypher(cypher,results.FirstOrDefault(),
126
+
"START actor=node(1), movie=node(2) CREATE (actor)-[actedIn:ACTED_IN]->(movie) RETURN actedIn as actedIn, id(actedIn) as actedIn__Id, type(actedIn) as actedIn__Type");
70
127
}
71
128
72
129
[TestMethod]
@@ -79,11 +136,12 @@ public void BuildCypherQuery_CreateRelationshipWithProperties_ExecutesCorrectQue
VerifyCypher(cypher,results.FirstOrDefault(),"START movie=node(*) MATCH (movie)<-[:STARED_IN]-(actor) WHERE ((actor.name = 'Bob Dinero') OR (actor.role = 'Keyser Söze')) RETURN actor as actor, id(actor) as actor__Id, labels(actor) as actor__Labels, movie as movie, id(movie) as movie__Id, labels(movie) as movie__Labels");
163
+
VerifyCypher(cypher,results.FirstOrDefault(),
164
+
"START movie=node(*) MATCH (movie)<-[:STARED_IN]-(actor) WHERE ((actor.name = 'Bob Dinero') OR (actor.role = 'Keyser Söze')) RETURN actor as actor, id(actor) as actor__Id, labels(actor) as actor__Labels, movie as movie, id(movie) as movie__Id, labels(movie) as movie__Labels");
106
165
}
107
166
108
167
[TestMethod]
@@ -114,11 +173,18 @@ public void BuildCypherQuery_MatchByLabel_ExecutesCorrectQuery()
VerifyCypher(cypher,results.FirstOrDefault(),"MATCH (actor:METHOD_ACTOR)-[:STARED_IN]->()-[directedBy:DIRECTED_BY]->(director) RETURN actor as actor, id(actor) as actor__Id, labels(actor) as actor__Labels, director as director, id(director) as director__Id, labels(director) as director__Labels");
186
+
VerifyCypher(cypher,results.FirstOrDefault(),
187
+
"MATCH (actor:METHOD_ACTOR)-[:STARED_IN]->()-[directedBy:DIRECTED_BY]->(director) RETURN actor as actor, id(actor) as actor__Id, labels(actor) as actor__Labels, director as director, id(director) as director__Id, labels(director) as director__Labels");
122
188
}
123
189
124
190
[TestMethod]
@@ -131,25 +197,33 @@ public void BuildCypherQuery_StartAtNodeN_ExecutesCorrectQuery()
.OrderBy(p =>p.actedIn.Get<int>("fgds"), p =>p.actedIn.Get<string>("name"))
136
202
.Skip(2)
137
203
.Limit(1)
138
204
.Fetch();
139
205
140
-
VerifyCypher(cypher,results.FirstOrDefault(),"START actor=node(1) RETURN actor as actor, id(actor) as actor__Id, labels(actor) as actor__Labels ORDER BY actedIn.fgds, actedIn.name SKIP 2 LIMIT 1");
206
+
VerifyCypher(cypher,results.FirstOrDefault(),
207
+
"START actor=node(1) RETURN actor as actor, id(actor) as actor__Id, labels(actor) as actor__Labels ORDER BY actedIn.fgds, actedIn.name SKIP 2 LIMIT 1");
0 commit comments