diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 76a981626804..1ea2f5ad42e8 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -83,7 +83,7 @@ - + diff --git a/sdk/core/Azure.Core/tests/ArrayBackedPropertyBagTests.cs b/sdk/core/Azure.Core/tests/ArrayBackedPropertyBagTests.cs index 4d04b99e0b9c..3f825994be5e 100644 --- a/sdk/core/Azure.Core/tests/ArrayBackedPropertyBagTests.cs +++ b/sdk/core/Azure.Core/tests/ArrayBackedPropertyBagTests.cs @@ -167,14 +167,8 @@ public void Dispose(int count) } target.Dispose(); -#if DEBUG - Assert.Throws(() => { _ = target.Count; }); - Assert.Throws(() => { _ = target.IsEmpty; }); - for (var key = 0; key < count; key++) - { - Assert.Throws(() => { _ = target.TryGetValue(key, out _); }); - } -#else + +#if !DEBUG Assert.IsTrue(target.IsEmpty); Assert.AreEqual(0, target.Count); for (var key = 0; key < count; key++)