diff --git a/Test/Flurl.Test.Shared/Http/RealHttpTests.cs b/Test/Flurl.Test.Shared/Http/RealHttpTests.cs index cc7ad958..62bf4095 100644 --- a/Test/Flurl.Test.Shared/Http/RealHttpTests.cs +++ b/Test/Flurl.Test.Shared/Http/RealHttpTests.cs @@ -4,6 +4,7 @@ using System.Threading; using System.Threading.Tasks; using Flurl.Http; +using Flurl.Http.Testing; using NUnit.Framework; namespace Flurl.Test.Http @@ -208,5 +209,16 @@ public async Task can_handle_error() { FlurlHttp.Configure(c => c.ResetDefaults()); } } + + [Test] + public async Task can_comingle_real_and_fake_tests() { + // do a fake call while a real call is running + var realTask = "https://www.google.com/".GetStringAsync(); + using (new HttpTest()) { + var fake = await "https://www.google.com/".GetStringAsync(); + Assert.AreEqual("", fake); + } + Assert.AreNotEqual("", await realTask); + } } } \ No newline at end of file