forked from microsoft/winget-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBaseCommand.cs
More file actions
49 lines (45 loc) · 1.56 KB
/
Copy pathBaseCommand.cs
File metadata and controls
49 lines (45 loc) · 1.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
// -----------------------------------------------------------------------------
// <copyright file="BaseCommand.cs" company="Microsoft Corporation">
// Copyright (c) Microsoft Corporation. Licensed under the MIT License.
// </copyright>
// -----------------------------------------------------------------------------
namespace AppInstallerCLIE2ETests
{
using System;
using System.IO;
using AppInstallerCLIE2ETests.Helpers;
using Newtonsoft.Json.Linq;
using NUnit.Framework;
/// <summary>
/// Base command.
/// </summary>
public class BaseCommand
{
/// <summary>
/// Set up.
/// </summary>
[OneTimeSetUp]
public void BaseSetup()
{
this.ResetTestSource();
}
/// <summary>
/// Tear down.
/// </summary>
[OneTimeTearDown]
public void BaseTeardown()
{
TestCommon.TearDownTestSource();
}
/// <summary>
/// Reset test source.
/// </summary>
/// <param name="useGroupPolicyForTestSource">Use group policy from test source.</param>
public void ResetTestSource(bool useGroupPolicyForTestSource = false)
{
// TODO: If/when cert pinning is implemented on the packaged index source, useGroupPolicyForTestSource should be set to default true
// to enable testing it by default. Until then, leaving this here...
TestCommon.SetupTestSource(useGroupPolicyForTestSource);
}
}
}