Skip to content

Commit

Permalink
Adds code coverage to FormatStringEditorTests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ricardo Bossan (BEYONDSOFT CONSULTING INC) (from Dev Box) committed Sep 23, 2024
1 parent e3efbcc commit 8cec7e7
Showing 1 changed file with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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);
}
}

0 comments on commit 8cec7e7

Please sign in to comment.