diff --git a/tests/Doc/Bf_tutorial.cs b/tests/Doc/Bf_tutorial.cs index e85fb0dc..efe29630 100644 --- a/tests/Doc/Bf_tutorial.cs +++ b/tests/Doc/Bf_tutorial.cs @@ -14,10 +14,22 @@ namespace Doc; // HIDE_START public class Bf_tutorial +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public Bf_tutorial(EndpointsFixture fixture) : base(fixture) { } + [SkippableFact] + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END var muxer = ConnectionMultiplexer.Connect("localhost:6379"); var db = muxer.GetDatabase(); //REMOVE_START diff --git a/tests/Doc/Bitmap_tutorial.cs b/tests/Doc/Bitmap_tutorial.cs index f4452068..be521a9f 100644 --- a/tests/Doc/Bitmap_tutorial.cs +++ b/tests/Doc/Bitmap_tutorial.cs @@ -13,10 +13,22 @@ namespace Doc; // HIDE_START public class Bitmap_tutorial +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public Bitmap_tutorial(EndpointsFixture fixture) : base(fixture) { } + [SkippableFact] + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END var muxer = ConnectionMultiplexer.Connect("localhost:6379"); var db = muxer.GetDatabase(); //REMOVE_START diff --git a/tests/Doc/CmdsGenericExample.cs b/tests/Doc/CmdsGenericExample.cs index 448c6efb..3080ff43 100644 --- a/tests/Doc/CmdsGenericExample.cs +++ b/tests/Doc/CmdsGenericExample.cs @@ -13,10 +13,23 @@ namespace Doc; // HIDE_START public class CmdsGenericExample +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public CmdsGenericExample(EndpointsFixture fixture) : base(fixture) { } + [SkipIfRedis(Comparison.LessThan, "7.0.0")] + [InlineData] // No parameters passed, but still uses Theory + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END var muxer = ConnectionMultiplexer.Connect("localhost:6379"); var db = muxer.GetDatabase(); //REMOVE_START diff --git a/tests/Doc/CmdsHashExample.cs b/tests/Doc/CmdsHashExample.cs index d2c4e33f..09eaf3ee 100644 --- a/tests/Doc/CmdsHashExample.cs +++ b/tests/Doc/CmdsHashExample.cs @@ -11,10 +11,22 @@ namespace Doc; // HIDE_START public class CmdsHashExample +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public CmdsHashExample(EndpointsFixture fixture) : base(fixture) { } + [SkippableFact] + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END var muxer = ConnectionMultiplexer.Connect("localhost:6379"); var db = muxer.GetDatabase(); //REMOVE_START diff --git a/tests/Doc/CmdsSortedSetExamples.cs b/tests/Doc/CmdsSortedSetExamples.cs index 99fa8b32..997f222c 100644 --- a/tests/Doc/CmdsSortedSetExamples.cs +++ b/tests/Doc/CmdsSortedSetExamples.cs @@ -13,10 +13,22 @@ namespace Doc; // HIDE_START public class CmdsSortedSet +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public CmdsSortedSet(EndpointsFixture fixture) : base(fixture) { } + [SkippableFact] + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END var muxer = ConnectionMultiplexer.Connect("localhost:6379"); var db = muxer.GetDatabase(); //REMOVE_START diff --git a/tests/Doc/CmdsStringExample.cs b/tests/Doc/CmdsStringExample.cs index dce5daf4..1d888f4d 100644 --- a/tests/Doc/CmdsStringExample.cs +++ b/tests/Doc/CmdsStringExample.cs @@ -13,10 +13,22 @@ namespace Doc; // HIDE_START public class CmdsStringExample +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public CmdsStringExample(EndpointsFixture fixture) : base(fixture) { } + [SkippableFact] + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END var muxer = ConnectionMultiplexer.Connect("localhost:6379"); var db = muxer.GetDatabase(); //REMOVE_START diff --git a/tests/Doc/Cms_tutorial.cs b/tests/Doc/Cms_tutorial.cs index e92aa4b4..4d194fcc 100644 --- a/tests/Doc/Cms_tutorial.cs +++ b/tests/Doc/Cms_tutorial.cs @@ -15,10 +15,22 @@ namespace Doc; // HIDE_START public class Cms_tutorial +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public Cms_tutorial(EndpointsFixture fixture) : base(fixture) { } + [SkippableFact] + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END var muxer = ConnectionMultiplexer.Connect("localhost:6379"); var db = muxer.GetDatabase(); //REMOVE_START diff --git a/tests/Doc/Cuckoo_tutorial.cs b/tests/Doc/Cuckoo_tutorial.cs index 826cb5cf..e6f6a67f 100644 --- a/tests/Doc/Cuckoo_tutorial.cs +++ b/tests/Doc/Cuckoo_tutorial.cs @@ -14,10 +14,22 @@ namespace Doc; // HIDE_START public class Cuckoo_tutorial +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public Cuckoo_tutorial(EndpointsFixture fixture) : base(fixture) { } + [SkippableFact] + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END var muxer = ConnectionMultiplexer.Connect("localhost:6379"); var db = muxer.GetDatabase(); //REMOVE_START diff --git a/tests/Doc/Geo_tutorial.cs b/tests/Doc/Geo_tutorial.cs index 576f533d..9f7ac6d5 100644 --- a/tests/Doc/Geo_tutorial.cs +++ b/tests/Doc/Geo_tutorial.cs @@ -13,10 +13,22 @@ namespace Doc; // HIDE_START public class Geo_tutorial +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public Geo_tutorial(EndpointsFixture fixture) : base(fixture) { } + [SkippableFact] + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END var muxer = ConnectionMultiplexer.Connect("localhost:6379"); var db = muxer.GetDatabase(); //REMOVE_START diff --git a/tests/Doc/HashExample.cs b/tests/Doc/HashExample.cs index 3f80b696..991fbbef 100644 --- a/tests/Doc/HashExample.cs +++ b/tests/Doc/HashExample.cs @@ -9,10 +9,22 @@ namespace Doc; [Collection("DocsTests")] //REMOVE_END public class HashExample +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public HashExample(EndpointsFixture fixture) : base(fixture) { } + [SkippableFact] + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END var muxer = ConnectionMultiplexer.Connect("localhost:6379"); var db = muxer.GetDatabase(); db.KeyDelete("bike:1"); diff --git a/tests/Doc/Hll_tutorial.cs b/tests/Doc/Hll_tutorial.cs index 97409432..27aa8bcd 100644 --- a/tests/Doc/Hll_tutorial.cs +++ b/tests/Doc/Hll_tutorial.cs @@ -13,10 +13,22 @@ namespace Doc; // HIDE_START public class Hll_tutorial +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public Hll_tutorial(EndpointsFixture fixture) : base(fixture) { } + [SkippableFact] + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END var muxer = ConnectionMultiplexer.Connect("localhost:6379"); var db = muxer.GetDatabase(); //REMOVE_START diff --git a/tests/Doc/HomeJsonExample.cs b/tests/Doc/HomeJsonExample.cs index 0132f75e..60d17c5e 100644 --- a/tests/Doc/HomeJsonExample.cs +++ b/tests/Doc/HomeJsonExample.cs @@ -17,10 +17,23 @@ namespace Doc; // HIDE_START public class HomeJsonExample +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public HomeJsonExample(EndpointsFixture fixture) : base(fixture) { } + [SkippableFact] + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END + // STEP_START connect var muxer = ConnectionMultiplexer.Connect("localhost:6379"); var db = muxer.GetDatabase(); diff --git a/tests/Doc/Json_tutorial.cs b/tests/Doc/Json_tutorial.cs index 59ebac6a..c9430e1a 100644 --- a/tests/Doc/Json_tutorial.cs +++ b/tests/Doc/Json_tutorial.cs @@ -15,10 +15,22 @@ namespace Doc; // HIDE_START public class Json_tutorial +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public Json_tutorial(EndpointsFixture fixture) : base(fixture) { } + [SkippableFact] + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END var muxer = ConnectionMultiplexer.Connect("localhost:6379"); var db = muxer.GetDatabase(); //REMOVE_START diff --git a/tests/Doc/ListTutorial.cs b/tests/Doc/ListTutorial.cs index 79ee0135..8bbb2bc9 100644 --- a/tests/Doc/ListTutorial.cs +++ b/tests/Doc/ListTutorial.cs @@ -12,9 +12,22 @@ namespace Doc; [Collection("DocsTests")] //REMOVE_END public class ListExample +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public ListExample(EndpointsFixture fixture) : base(fixture) { } + + [SkippableFact] + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END var muxer = ConnectionMultiplexer.Connect("localhost:6379"); var db = muxer.GetDatabase(); //HIDE_END diff --git a/tests/Doc/QueryAggExample.cs b/tests/Doc/QueryAggExample.cs index 2364fdfd..b86c4654 100644 --- a/tests/Doc/QueryAggExample.cs +++ b/tests/Doc/QueryAggExample.cs @@ -17,10 +17,22 @@ namespace Doc; // HIDE_START public class QueryAggExample +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public QueryAggExample(EndpointsFixture fixture) : base(fixture) { } + [SkippableFact] + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END var muxer = ConnectionMultiplexer.Connect("localhost:6379"); var db = muxer.GetDatabase(); //REMOVE_START diff --git a/tests/Doc/QueryEmExample.cs b/tests/Doc/QueryEmExample.cs index 3e1b7f33..608868e0 100644 --- a/tests/Doc/QueryEmExample.cs +++ b/tests/Doc/QueryEmExample.cs @@ -16,10 +16,22 @@ namespace Doc; // HIDE_START public class QueryEmExample +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public QueryEmExample(EndpointsFixture fixture) : base(fixture) { } + [SkippableFact] + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END var muxer = ConnectionMultiplexer.Connect("localhost:6379"); var db = muxer.GetDatabase(); //REMOVE_START diff --git a/tests/Doc/QueryFtExample.cs b/tests/Doc/QueryFtExample.cs index 350b4eaa..687f01be 100644 --- a/tests/Doc/QueryFtExample.cs +++ b/tests/Doc/QueryFtExample.cs @@ -16,10 +16,22 @@ namespace Doc; // HIDE_START public class QueryFtExample +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public QueryFtExample(EndpointsFixture fixture) : base(fixture) { } + [SkippableFact] + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END var muxer = ConnectionMultiplexer.Connect("localhost:6379"); var db = muxer.GetDatabase(); //REMOVE_START diff --git a/tests/Doc/QueryRangeExample.cs b/tests/Doc/QueryRangeExample.cs index cdc6d83f..30a758a9 100644 --- a/tests/Doc/QueryRangeExample.cs +++ b/tests/Doc/QueryRangeExample.cs @@ -16,10 +16,22 @@ namespace Doc; // HIDE_START public class QueryRangeExample +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public QueryRangeExample(EndpointsFixture fixture) : base(fixture) { } + [SkippableFact] + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END var muxer = ConnectionMultiplexer.Connect("localhost:6379"); var db = muxer.GetDatabase(); //REMOVE_START diff --git a/tests/Doc/SearchQuickstartExample.cs b/tests/Doc/SearchQuickstartExample.cs index a683b488..df9fa2e8 100644 --- a/tests/Doc/SearchQuickstartExample.cs +++ b/tests/Doc/SearchQuickstartExample.cs @@ -12,13 +12,25 @@ namespace Doc; [Collection("DocsTests")] // REMOVE_END public class SearchQuickstartExample +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public SearchQuickstartExample(EndpointsFixture fixture) : base(fixture) { } + [SkippableFact] + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END // STEP_START connect - var redis = ConnectionMultiplexer.Connect("localhost:6379"); - var db = redis.GetDatabase(); + var muxer = ConnectionMultiplexer.Connect("localhost:6379"); + var db = muxer.GetDatabase(); var ft = db.FT(); var json = db.JSON(); // STEP_END diff --git a/tests/Doc/SetGetExample.cs b/tests/Doc/SetGetExample.cs index 84f8406a..fc2dd70d 100644 --- a/tests/Doc/SetGetExample.cs +++ b/tests/Doc/SetGetExample.cs @@ -9,12 +9,24 @@ namespace Doc; [Collection("DocsTests")] //REMOVE_END public class SetGetExample +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public SetGetExample(EndpointsFixture fixture) : base(fixture) { } + [SkippableFact] + // REMOVE_END public void run() { - var redis = ConnectionMultiplexer.Connect("localhost:6379"); - var db = redis.GetDatabase(); + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END + var muxer = ConnectionMultiplexer.Connect("localhost:6379"); + var db = muxer.GetDatabase(); //HIDE_END bool status = db.StringSet("bike:1", "Process 134"); diff --git a/tests/Doc/SetsTutorial.cs b/tests/Doc/SetsTutorial.cs index 671c1a98..1d2be52d 100644 --- a/tests/Doc/SetsTutorial.cs +++ b/tests/Doc/SetsTutorial.cs @@ -14,10 +14,22 @@ namespace Doc; // HIDE_START public class SetsExample +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public SetsExample(EndpointsFixture fixture) : base(fixture) { } + [SkippableFact] + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END var muxer = ConnectionMultiplexer.Connect("localhost:6379"); var db = muxer.GetDatabase(); //REMOVE_START diff --git a/tests/Doc/SortedSetExample.cs b/tests/Doc/SortedSetExample.cs index 5dce4136..320de270 100644 --- a/tests/Doc/SortedSetExample.cs +++ b/tests/Doc/SortedSetExample.cs @@ -10,10 +10,22 @@ namespace Doc; [Collection("DocsTests")] //REMOVE_END public class SortedSetExample +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public SortedSetExample(EndpointsFixture fixture) : base(fixture) { } + [SkippableFact] + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END var muxer = ConnectionMultiplexer.Connect("localhost:6379"); var db = muxer.GetDatabase(); //REMOVE_START diff --git a/tests/Doc/StreamTutorial.cs b/tests/Doc/StreamTutorial.cs index 8619ead6..73703d15 100644 --- a/tests/Doc/StreamTutorial.cs +++ b/tests/Doc/StreamTutorial.cs @@ -14,10 +14,22 @@ namespace Doc; // HIDE_START public class StreamTutorial +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public StreamTutorial(EndpointsFixture fixture) : base(fixture) { } + [SkippableFact] + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END var muxer = ConnectionMultiplexer.Connect("localhost:6379"); var db = muxer.GetDatabase(); //REMOVE_START diff --git a/tests/Doc/StringSnippets.cs b/tests/Doc/StringSnippets.cs index d2f8ea24..be76d7f3 100644 --- a/tests/Doc/StringSnippets.cs +++ b/tests/Doc/StringSnippets.cs @@ -10,11 +10,24 @@ namespace Doc; [Collection("DocsTests")] //REMOVE_END public class StringSnippets +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public StringSnippets(EndpointsFixture fixture) : base(fixture) { } + + [SkippableFact] + // REMOVE_END public void run() { - var redis = ConnectionMultiplexer.Connect("localhost:6379"); - var db = redis.GetDatabase(); + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END + var muxer = ConnectionMultiplexer.Connect("localhost:6379"); + var db = muxer.GetDatabase(); //HIDE_END diff --git a/tests/Doc/Tdigest_tutorial.cs b/tests/Doc/Tdigest_tutorial.cs index 44ba47c5..216c82a0 100644 --- a/tests/Doc/Tdigest_tutorial.cs +++ b/tests/Doc/Tdigest_tutorial.cs @@ -14,10 +14,22 @@ namespace Doc; // HIDE_START public class Tdigest_tutorial +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public Tdigest_tutorial(EndpointsFixture fixture) : base(fixture) { } + [SkippableFact] + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END var muxer = ConnectionMultiplexer.Connect("localhost:6379"); var db = muxer.GetDatabase(); //REMOVE_START diff --git a/tests/Doc/Topk_tutorial.cs b/tests/Doc/Topk_tutorial.cs index b364d47e..8f7304f9 100644 --- a/tests/Doc/Topk_tutorial.cs +++ b/tests/Doc/Topk_tutorial.cs @@ -14,10 +14,22 @@ namespace Doc; // HIDE_START public class Topk_tutorial +// REMOVE_START +: AbstractNRedisStackTest, IDisposable +// REMOVE_END { + // REMOVE_START + public Topk_tutorial(EndpointsFixture fixture) : base(fixture) { } + [SkippableFact] + // REMOVE_END public void run() { + //REMOVE_START + // This is needed because we're constructing ConfigurationOptions in the test before calling GetConnection + SkipIfTargetConnectionDoesNotExist(EndpointsFixture.Env.Standalone); + var _ = GetCleanDatabase(EndpointsFixture.Env.Standalone); + //REMOVE_END var muxer = ConnectionMultiplexer.Connect("localhost:6379"); var db = muxer.GetDatabase(); //REMOVE_START