You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2017/11/29 21:18:32 UTC

[5/5] tinkerpop git commit: TINKERPOP-1734 Fixed up c# formatting

TINKERPOP-1734 Fixed up c# formatting


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/f766cca8
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/f766cca8
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/f766cca8

Branch: refs/heads/TINKERPOP-1734
Commit: f766cca834099a2b6f99800393b39b12bf08c7e4
Parents: def2b66
Author: Stephen Mallette <sp...@genoprime.com>
Authored: Wed Nov 29 16:16:28 2017 -0500
Committer: Stephen Mallette <sp...@genoprime.com>
Committed: Wed Nov 29 16:16:28 2017 -0500

----------------------------------------------------------------------
 .../Process/Traversal/Dsl/DslTest.cs            | 42 +++++++++++++-------
 1 file changed, 28 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/f766cca8/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Process/Traversal/Dsl/DslTest.cs
----------------------------------------------------------------------
diff --git a/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Process/Traversal/Dsl/DslTest.cs b/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Process/Traversal/Dsl/DslTest.cs
index d92e680..8813aad 100644
--- a/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Process/Traversal/Dsl/DslTest.cs
+++ b/gremlin-dotnet/test/Gremlin.Net.IntegrationTest/Process/Traversal/Dsl/DslTest.cs
@@ -27,41 +27,53 @@ using Gremlin.Net.Structure;
 using Gremlin.Net.IntegrationTest.Process.Traversal.DriverRemoteConnection;
 using Xunit;
 
-namespace Gremlin.Net.IntegrationTest.Process.Traversal.Dsl {
+namespace Gremlin.Net.IntegrationTest.Process.Traversal.Dsl 
+{
 
-    public static class SocialTraversal {
-        public static GraphTraversal<Vertex,Vertex> Knows(this GraphTraversal<Vertex,Vertex> t, string personName) {
+    public static class SocialTraversal 
+    {
+        public static GraphTraversal<Vertex,Vertex> Knows(this GraphTraversal<Vertex,Vertex> t, string personName) 
+        {
             return t.Out("knows").HasLabel("person").Has("name", personName);
         }
 
-        public static GraphTraversal<Vertex, int> YoungestFriendsAge(this GraphTraversal<Vertex,Vertex> t) {
+        public static GraphTraversal<Vertex, int> YoungestFriendsAge(this GraphTraversal<Vertex,Vertex> t) 
+        {
             return t.Out("knows").HasLabel("person").Values<int>("age").Min<int>();
         }
 
-        public static GraphTraversal<Vertex,long> CreatedAtLeast(this GraphTraversal<Vertex,Vertex> t, long number) {
+        public static GraphTraversal<Vertex,long> CreatedAtLeast(this GraphTraversal<Vertex,Vertex> t, long number) 
+        {
             return t.OutE("created").Count().Is(P.Gte(number));
         }
     }
 
-    public static class __Social {
-        public static GraphTraversal<object,Vertex> Knows(string personName) {
+    public static class __Social 
+    {
+        public static GraphTraversal<object,Vertex> Knows(string personName)
+         {
             return __.Out("knows").HasLabel("person").Has("name", personName);
         }
 
-        public static GraphTraversal<object, int> YoungestFriendsAge() {
+        public static GraphTraversal<object, int> YoungestFriendsAge() 
+        {
             return __.Out("knows").HasLabel("person").Values<int>("age").Min<int>();
         }
 
-        public static GraphTraversal<object,long> CreatedAtLeast(long number) {
+        public static GraphTraversal<object,long> CreatedAtLeast(long number) 
+        {
             return __.OutE("created").Count().Is(P.Gte(number));
         }
     }
 
-    public static class SocialTraversalSource {
-        public static GraphTraversal<Vertex,Vertex> Persons(this GraphTraversalSource g, params string[] personNames) {
+    public static class SocialTraversalSource 
+    {
+        public static GraphTraversal<Vertex,Vertex> Persons(this GraphTraversalSource g, params string[] personNames) 
+        {
             GraphTraversal<Vertex,Vertex> t = g.V().HasLabel("person");
 
-            if (personNames.Length > 0) {    
+            if (personNames.Length > 0) 
+            {    
                 t = t.Has("name", P.Within(personNames));
             }
 
@@ -69,11 +81,13 @@ namespace Gremlin.Net.IntegrationTest.Process.Traversal.Dsl {
         }
     }
 
-    public class DslTest {
+    public class DslTest 
+    {
         private readonly RemoteConnectionFactory _connectionFactory = new RemoteConnectionFactory();
         
         [Fact]
-        public void ShouldUseDsl() {
+        public void ShouldUseDsl() 
+        {
             var graph = new Graph();
             var connection = _connectionFactory.CreateRemoteConnection();
             var social = graph.Traversal().WithRemote(connection);