mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-22 19:10:41 -10:00
When I rewrote the MemoryMappedFiles tests, I cribbed from the System.IO.FileSystem test's base class and created a Common base class that could be used by test projects that had temporary files to be cleaned up. At the time, however, FileSystem's tests were undergoing heavy changes and so I didn't update FileSystem's tests to use the common base. Now that things have quieted down, I've made that change. In doing so, I made a few tweaks to the FileSystem tests, where tests were assuming that the test directory was always in the current directory, and the consolidated base class puts temporary files in the user's temporary directory instead. Commit migrated from https://github.com/dotnet/corefx/commit/d7a19e92824e8a038553de20abf2497db0424ddb
11 lines
374 B
C#
11 lines
374 B
C#
// Copyright (c) Microsoft. All rights reserved.
|
|
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
|
|
namespace System.IO.FileSystem.Tests
|
|
{
|
|
public abstract class FileSystemTest : FileCleanupTestBase
|
|
{
|
|
public static readonly byte[] TestBuffer = { 0xBA, 0x5E, 0xBA, 0x11, 0xF0, 0x07, 0xBA, 0x11 };
|
|
}
|
|
}
|