Skip to content

Commit 6dd129e

Browse files
Epica3055KlausLoeffelmann
authored andcommitted
remove useless unit test
1 parent 1cb1ba7 commit 6dd129e

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

src/test/unit/System.Windows.Forms/System/Windows/Forms/LinkUtilitiesTests.cs

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Licensed to the .NET Foundation under one or more agreements.
1+
// Licensed to the .NET Foundation under one or more agreements.
22
// The .NET Foundation licenses this file to you under the MIT license.
33

44
using System.Drawing;
@@ -44,21 +44,4 @@ public void LinkUtilities_EnsureLinkFonts_CreatesExpectedFonts(LinkBehavior beha
4444
linkFont.Should().BeOfType<Font>();
4545
hoverLinkFont.Should().BeOfType<Font>();
4646
}
47-
48-
[WinFormsTheory]
49-
[InlineData(LinkBehavior.AlwaysUnderline)]
50-
[InlineData(LinkBehavior.HoverUnderline)]
51-
[InlineData(LinkBehavior.NeverUnderline)]
52-
public void LinkUtilities_EnsureLinkFonts_CreatesExpectedFonts_WithActive(LinkBehavior behavior)
53-
{
54-
using Font baseFont = new("Arial", 12);
55-
Font? linkFont = null;
56-
Font? hoverLinkFont = null;
57-
58-
Action act = () => LinkUtilities.EnsureLinkFonts(baseFont, behavior, ref linkFont, ref hoverLinkFont, isActive: true);
59-
60-
act.Should().NotThrow();
61-
linkFont.Should().BeOfType<Font>();
62-
hoverLinkFont.Should().BeOfType<Font>();
63-
}
6447
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy