From 357dd93f08d46fd629835a945cc614a1802d1b18 Mon Sep 17 00:00:00 2001 From: Daniel Weber Date: Thu, 7 Nov 2024 12:30:23 +0100 Subject: [PATCH 1/2] Towards getting the file name of the test file and the snapshots. --- test/Providers.GremlinServer.Tests/IntegrationTests.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/Providers.GremlinServer.Tests/IntegrationTests.cs b/test/Providers.GremlinServer.Tests/IntegrationTests.cs index 17a115956..86d5c9e48 100644 --- a/test/Providers.GremlinServer.Tests/IntegrationTests.cs +++ b/test/Providers.GremlinServer.Tests/IntegrationTests.cs @@ -10,6 +10,7 @@ using ExRam.Gremlinq.Support.NewtonsoftJson; using static ExRam.Gremlinq.Core.Transformation.ConverterFactory; +using System.Runtime.CompilerServices; namespace ExRam.Gremlinq.Providers.GremlinServer.Tests { @@ -23,6 +24,10 @@ public IntegrationTests(GremlinServerContainerFixture fixture) : base( { } + public static string? ThisFilePath() => ThisFilePathImpl(); + + private static string? ThisFilePathImpl([CallerFilePath] string? callerFilePath = null) => callerFilePath; + [Fact] public async Task FirstAsync() => (await _g .Inject(42) From f41efab6f6b0d969a8cbb3b381643b3f49809dc5 Mon Sep 17 00:00:00 2001 From: Daniel Weber Date: Thu, 7 Nov 2024 15:57:40 +0100 Subject: [PATCH 2/2] Publicize IgnoreCosmosDbSpecificProperties. --- test/Tests.Fixtures/Extensions/GremlinqQuerySourceExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Tests.Fixtures/Extensions/GremlinqQuerySourceExtensions.cs b/test/Tests.Fixtures/Extensions/GremlinqQuerySourceExtensions.cs index e04503ab5..c5438ff09 100644 --- a/test/Tests.Fixtures/Extensions/GremlinqQuerySourceExtensions.cs +++ b/test/Tests.Fixtures/Extensions/GremlinqQuerySourceExtensions.cs @@ -4,7 +4,7 @@ namespace ExRam.Gremlinq.Tests.Fixtures { - internal static class GremlinqQuerySourceExtensions + public static class GremlinqQuerySourceExtensions { public static IGremlinQuerySource IgnoreCosmosDbSpecificProperties(this IGremlinQuerySource source) {