-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFixture.cs
More file actions
23 lines (19 loc) · 823 Bytes
/
Fixture.cs
File metadata and controls
23 lines (19 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Single instance for all tests in assembly
[assembly: AssemblyFixture(typeof(ptr727.LanguageTags.Tests.SingleInstanceFixture))]
namespace ptr727.LanguageTags.Tests;
// Sequential execution fixture
[CollectionDefinition("Sequential Test Collection", DisableParallelization = true)]
public class SequentialCollectionDefinition;
[System.Diagnostics.CodeAnalysis.SuppressMessage(
"Design",
"CA1063:Implement IDisposable Correctly",
Justification = "No unmanaged resources to dispose"
)]
public class SingleInstanceFixture : IDisposable
{
public void Dispose() => GC.SuppressFinalize(this);
protected static string GetDataFilePath(string fileName) =>
Path.GetFullPath(
Path.Combine(AppContext.BaseDirectory, "../../../../LanguageData", fileName)
);
}