From 95fa05132413638523ca08fea318899e6ea16702 Mon Sep 17 00:00:00 2001 From: Marc Gravell Date: Tue, 27 Feb 2024 12:21:34 +0000 Subject: [PATCH] moar nits --- tests/StackExchange.Redis.Tests/ConfigTests.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/StackExchange.Redis.Tests/ConfigTests.cs b/tests/StackExchange.Redis.Tests/ConfigTests.cs index 89caa6b7f..97c48e356 100644 --- a/tests/StackExchange.Redis.Tests/ConfigTests.cs +++ b/tests/StackExchange.Redis.Tests/ConfigTests.cs @@ -6,7 +6,6 @@ using System.IO.Pipelines; using System.Linq; using System.Net; -using System.Net.Security; using System.Net.Sockets; using System.Reflection; using System.Security.Authentication; @@ -35,7 +34,7 @@ public void ExpectedFields() // this is a simple but pragmatic "have you considered?" check var fields = Array.ConvertAll(typeof(ConfigurationOptions).GetFields(BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance), - x => Regex.Replace(x.Name, """<(\w+)>k__BackingField""", "$1")); + x => Regex.Replace(x.Name, """^<(\w+)>k__BackingField$""", "$1")); Array.Sort(fields); Assert.Equal(new[] { "abortOnConnectFail", "allowAdmin", "asyncTimeout", "backlogPolicy", "BeforeSocketConnect",