From 8cec7e72ddabc2b368b94f11266cf61f5d0f3edb Mon Sep 17 00:00:00 2001 From: "Ricardo Bossan (BEYONDSOFT CONSULTING INC) (from Dev Box)" Date: Mon, 23 Sep 2024 17:36:51 -0300 Subject: [PATCH] Adds code coverage to FormatStringEditorTests --- .../Forms/Design/FormatStringEditorTests.cs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/System.Windows.Forms.Design/tests/UnitTests/System/Windows/Forms/Design/FormatStringEditorTests.cs diff --git a/src/System.Windows.Forms.Design/tests/UnitTests/System/Windows/Forms/Design/FormatStringEditorTests.cs b/src/System.Windows.Forms.Design/tests/UnitTests/System/Windows/Forms/Design/FormatStringEditorTests.cs new file mode 100644 index 00000000000..385efd96fce --- /dev/null +++ b/src/System.Windows.Forms.Design/tests/UnitTests/System/Windows/Forms/Design/FormatStringEditorTests.cs @@ -0,0 +1,19 @@ +// Licensed to the .NET Foundation under one or more agreements. +// The .NET Foundation licenses this file to you under the MIT license. + +#nullable enable + +using System.Windows.Forms.TestUtilities; + +namespace System.Windows.Forms.Design.Tests.System.Windows.Forms.Design; + +public class FormatStringEditorTests +{ + [Theory] + [CommonMemberData(typeof(CommonTestHelperEx), nameof(CommonTestHelperEx.GetEditValueInvalidProviderTestData))] + public void EditValue_InvalidProvider_ReturnsValue(IServiceProvider provider, object value) + { + FormatStringEditor editor = new (); + editor.EditValue(null, provider, value).Should().Be(value); + } +}