Skip to content

Commit

Permalink
Review.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcweber committed Oct 29, 2019
1 parent de53f6d commit b2df9ac
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
1 change: 1 addition & 0 deletions Directory.build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<PublicRelease>true</PublicRelease>
<LangVersion>7.2</LangVersion>
<NoWarn>$(NoWarn);IDE1006</NoWarn>
</PropertyGroup>

<PropertyGroup Condition="!$(MSBuildProjectName.EndsWith('Tests')) AND !$(MSBuildProjectName.EndsWith('Tests.Entities')) AND !$(MSBuildProjectName.EndsWith('Samples'))" >
Expand Down
6 changes: 6 additions & 0 deletions ExRam.Gremlinq.Core.Tests/GroovySerializationTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1685,7 +1685,9 @@ public void Properties_Where_Dictionary_key1()
_g
.V<Person>()
.Properties()
#pragma warning disable 252,253
.Where(x => x.Properties["MetaKey"] == "MetaValue")
#pragma warning restore 252,253
.Should()
.SerializeToGroovy("g.V().hasLabel(_a).properties().has(_b, _c)")
.WithParameters("Person", "MetaKey", "MetaValue");
Expand All @@ -1709,7 +1711,9 @@ public void Properties_Where_Id()
_g
.V<Country>()
.Properties(x => x.Languages)
#pragma warning disable 252,253
.Where(x => x.Id == "id")
#pragma warning restore 252,253
.Should()
.SerializeToGroovy("g.V().hasLabel(_a).properties(_b).has(id, _c)")
.WithParameters("Country", "Languages", "id");
Expand Down Expand Up @@ -3449,7 +3453,9 @@ public void Where_outside_model()
_g
.UseModel(GraphModel.FromBaseTypes<VertexWithStringId, EdgeWithStringId>())
.V()
#pragma warning disable 252,253
.Where(x => x.Id == "hallo")
#pragma warning restore 252,253
.Should()
.SerializeToGroovy("g.V().has(id, _a)");
}
Expand Down
1 change: 0 additions & 1 deletion ExRam.Gremlinq.Core/Elements/VertexProperty.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using LanguageExt;
using NullGuard;

namespace ExRam.Gremlinq.Core.GraphElements
Expand Down
5 changes: 2 additions & 3 deletions ExRam.Gremlinq.Core/Extensions/ObjectExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
using System;
using System.Collections.Concurrent;
using System.Collections.Concurrent;
using System.Collections.Generic;
using System.Collections.Immutable;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using ExRam.Gremlinq.Core;

namespace LanguageExt
namespace System
{
internal static class ObjectExtensions
{
Expand Down
7 changes: 3 additions & 4 deletions ExRam.Gremlinq.Core/Extensions/TypeExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System;
using System.Collections.Generic;
using System.Collections.Generic;

namespace LanguageExt
namespace System
{
internal static class TypeExtensions
{
Expand All @@ -14,4 +13,4 @@ public static IEnumerable<Type> GetTypeHierarchy(this Type type)
}
}
}
}
}

0 comments on commit b2df9ac

Please sign in to comment.