-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Expand file tree
/
Copy pathCefSharpXunitTestFramework.cs
More file actions
26 lines (23 loc) · 930 Bytes
/
CefSharpXunitTestFramework.cs
File metadata and controls
26 lines (23 loc) · 930 Bytes
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
// Copyright © 2020 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using Xunit.Abstractions;
using Xunit.Sdk;
[assembly: Xunit.TestFramework("CefSharp.Test.CefSharpXunitTestFramework", "CefSharp.Test")]
namespace CefSharp.Test
{
/// <summary>
/// Custom <see cref="XunitTestFramework"/> that allows for code to run begin/end of
/// each test run. Classes should implement <see cref="IDisposable"/>
/// </summary>
public class CefSharpXunitTestFramework : XunitTestFramework
{
public CefSharpXunitTestFramework(IMessageSink messageSink)
: base(messageSink)
{
//Create a new BindingRedirectAssemblyResolver to resolve the assemblies
//that xUnit is unable to Load
DisposalTracker.Add(new BindingRedirectAssemblyResolver());
}
}
}