<commit_before>﻿// Licensed to the .NET Foundation under one or more agreements.
// See the LICENSE file in the project root for more information.

using System.Collections.Generic;
using System.Runtime.InteropServices;
using Xunit;

namespace System.Drawing.Tests
{
    public class SystemFontsTests
    {
        public static IEnumerable<object[]> SystemFonts_TestData()
        {
            yield return new object[] { (Func<Font>)(() => SystemFonts.CaptionFont) };
            yield return new object[] { (Func<Font>)(() => SystemFonts.IconTitleFont) };
            yield return new object[] { (Func<Font>)(() => SystemFonts.MenuFont) };
            yield return new object[] { (Func<Font>)(() => SystemFonts.MessageBoxFont) };
            yield return new object[] { (Func<Font>)(() => SystemFonts.SmallCaptionFont) };
            yield return new object[] { (Func<Font>)(() => SystemFonts.StatusFont) };
        }

        [ActiveIssue(23690, TestPlatforms.Linux)]
        [ConditionalTheory(Helpers.GdiplusIsAvailable)]
        [MemberData(nameof(SystemFonts_TestData))]
        public void SystemFont_Get_ReturnsExpected(Func<Font> getFont)
        {
            using (Font font = getFont())
            using (Font otherFont = getFont())<commit_msg>Re-enable SystemFonts test on Linux.<commit_after>﻿// Licensed to the .NET Foundation under one or more agreements.
// See the LICENSE file in the project root for more information.

using System.Collections.Generic;
using System.Runtime.InteropServices;
using Xunit;

namespace System.Drawing.Tests
{
    public class SystemFontsTests
    {
        public static IEnumerable<object[]> SystemFonts_TestData()
        {
            yield return new object[] { (Func<Font>)(() => SystemFonts.CaptionFont) };
            yield return new object[] { (Func<Font>)(() => SystemFonts.IconTitleFont) };
            yield return new object[] { (Func<Font>)(() => SystemFonts.MenuFont) };
            yield return new object[] { (Func<Font>)(() => SystemFonts.MessageBoxFont) };
            yield return new object[] { (Func<Font>)(() => SystemFonts.SmallCaptionFont) };
            yield return new object[] { (Func<Font>)(() => SystemFonts.StatusFont) };
        }

        [ConditionalTheory(Helpers.GdiplusIsAvailable)]
        [MemberData(nameof(SystemFonts_TestData))]
        public void SystemFont_Get_ReturnsExpected(Func<Font> getFont)
        {
            using (Font font = getFont())
            using (Font otherFont = getFont())
{'fraction_non_alphanumeric': 0.1250501002004008, 'fraction_numerical': 0.002004008016032064, 'mean_word_length': 3.1052631578947367, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 31, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4549831', 'n_tokens_mistral': 689, 'n_tokens_neox': 683, 'n_words': 179}