aboutsummaryrefslogtreecommitdiffstats
path: root/QtVsTools.TestAdapter/QtTestGlobalSettingsProvider.cs
blob: 724b2a03554b9c4e9a12f5a04263ae2d8b0a01f9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (C) 2025 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0

using System.ComponentModel.Composition;
using System.Xml;
using Microsoft.VisualStudio.TestPlatform.ObjectModel;
using Microsoft.VisualStudio.TestPlatform.ObjectModel.Adapter;

namespace QtVsTools.TestAdapter
{
    [Export(typeof(ISettingsProvider))]
    [SettingsName(Resources.GlobalSettingsName)]
    internal class QtTestGlobalSettingsProvider : ISettingsProvider
    {
        internal QtTestSettings Settings { get; private set; }

        public void Load(XmlReader reader) =>
            Settings = QtTestSettings.Load(reader, Resources.GlobalSettingsName);
    }
}