Skip to content

Commit e11bf1f

Browse files
authored
chore: update API due to dependency update (#1242)
In #1240 and #1241 the PublicApiGenerator dependency was updated to v11.4.5, which introduced a change in the format (different order). This PR updates the expected API accordingly. The `Api Tests` check was changed to required, so that this will be caught in the CI-Build in future!
1 parent f7bc121 commit e11bf1f

8 files changed

+28
-28
lines changed

tests/TestableIO.System.IO.Abstractions.Api.Tests/Expected/TestableIO.System.IO.Abstractions.TestingHelpers_net472.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ namespace System.IO.Abstractions.TestingHelpers
228228
{
229229
public static readonly System.DateTimeOffset DefaultDateTimeOffset;
230230
public static readonly System.Text.Encoding DefaultEncoding;
231-
public MockFileData(byte[] contents) { }
232231
public MockFileData(System.IO.Abstractions.TestingHelpers.MockFileData template) { }
232+
public MockFileData(byte[] contents) { }
233233
public MockFileData(string textContents) { }
234234
public MockFileData(string textContents, System.Text.Encoding encoding) { }
235235
public System.Security.AccessControl.FileSecurity AccessControl { get; set; }
@@ -327,8 +327,8 @@ namespace System.IO.Abstractions.TestingHelpers
327327
public System.IO.Abstractions.FileSystemStream New(Microsoft.Win32.SafeHandles.SafeFileHandle handle, System.IO.FileAccess access, int bufferSize, bool isAsync) { }
328328
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) { }
329329
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize) { }
330-
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize, bool useAsync) { }
331330
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize, System.IO.FileOptions options) { }
331+
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize, bool useAsync) { }
332332
public System.IO.Abstractions.FileSystemStream Wrap(System.IO.FileStream fileStream) { }
333333
}
334334
[System.Serializable]

tests/TestableIO.System.IO.Abstractions.Api.Tests/Expected/TestableIO.System.IO.Abstractions.TestingHelpers_net6.0.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,8 +267,8 @@ namespace System.IO.Abstractions.TestingHelpers
267267
{
268268
public static readonly System.DateTimeOffset DefaultDateTimeOffset;
269269
public static readonly System.Text.Encoding DefaultEncoding;
270-
public MockFileData(byte[] contents) { }
271270
public MockFileData(System.IO.Abstractions.TestingHelpers.MockFileData template) { }
271+
public MockFileData(byte[] contents) { }
272272
public MockFileData(string textContents) { }
273273
public MockFileData(string textContents, System.Text.Encoding encoding) { }
274274
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
@@ -382,8 +382,8 @@ namespace System.IO.Abstractions.TestingHelpers
382382
public System.IO.Abstractions.FileSystemStream New(Microsoft.Win32.SafeHandles.SafeFileHandle handle, System.IO.FileAccess access, int bufferSize, bool isAsync) { }
383383
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) { }
384384
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize) { }
385-
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize, bool useAsync) { }
386385
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize, System.IO.FileOptions options) { }
386+
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize, bool useAsync) { }
387387
public System.IO.Abstractions.FileSystemStream Wrap(System.IO.FileStream fileStream) { }
388388
}
389389
[System.Serializable]

tests/TestableIO.System.IO.Abstractions.Api.Tests/Expected/TestableIO.System.IO.Abstractions.TestingHelpers_net8.0.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,8 @@ namespace System.IO.Abstractions.TestingHelpers
290290
{
291291
public static readonly System.DateTimeOffset DefaultDateTimeOffset;
292292
public static readonly System.Text.Encoding DefaultEncoding;
293-
public MockFileData(byte[] contents) { }
294293
public MockFileData(System.IO.Abstractions.TestingHelpers.MockFileData template) { }
294+
public MockFileData(byte[] contents) { }
295295
public MockFileData(string textContents) { }
296296
public MockFileData(string textContents, System.Text.Encoding encoding) { }
297297
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
@@ -406,8 +406,8 @@ namespace System.IO.Abstractions.TestingHelpers
406406
public System.IO.Abstractions.FileSystemStream New(Microsoft.Win32.SafeHandles.SafeFileHandle handle, System.IO.FileAccess access, int bufferSize, bool isAsync) { }
407407
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) { }
408408
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize) { }
409-
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize, bool useAsync) { }
410409
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize, System.IO.FileOptions options) { }
410+
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize, bool useAsync) { }
411411
public System.IO.Abstractions.FileSystemStream Wrap(System.IO.FileStream fileStream) { }
412412
}
413413
[System.Serializable]

tests/TestableIO.System.IO.Abstractions.Api.Tests/Expected/TestableIO.System.IO.Abstractions.TestingHelpers_net9.0.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,10 @@ namespace System.IO.Abstractions.TestingHelpers
193193
public class MockFile : System.IO.Abstractions.FileBase
194194
{
195195
public MockFile(System.IO.Abstractions.TestingHelpers.IMockFileDataAccessor mockFileDataAccessor) { }
196-
public override void AppendAllBytes(string path, byte[] bytes) { }
197196
public override void AppendAllBytes(string path, System.ReadOnlySpan<byte> bytes) { }
198-
public override System.Threading.Tasks.Task AppendAllBytesAsync(string path, byte[] bytes, System.Threading.CancellationToken cancellationToken = default) { }
197+
public override void AppendAllBytes(string path, byte[] bytes) { }
199198
public override System.Threading.Tasks.Task AppendAllBytesAsync(string path, System.ReadOnlyMemory<byte> bytes, System.Threading.CancellationToken cancellationToken = default) { }
199+
public override System.Threading.Tasks.Task AppendAllBytesAsync(string path, byte[] bytes, System.Threading.CancellationToken cancellationToken = default) { }
200200
public override void AppendAllLines(string path, System.Collections.Generic.IEnumerable<string> contents) { }
201201
public override void AppendAllLines(string path, System.Collections.Generic.IEnumerable<string> contents, System.Text.Encoding encoding) { }
202202
public override System.Threading.Tasks.Task AppendAllLinesAsync(string path, System.Collections.Generic.IEnumerable<string> contents, System.Threading.CancellationToken cancellationToken = default) { }
@@ -280,10 +280,10 @@ namespace System.IO.Abstractions.TestingHelpers
280280
public override void SetLastWriteTimeUtc(string path, System.DateTime lastWriteTimeUtc) { }
281281
public override void SetUnixFileMode(Microsoft.Win32.SafeHandles.SafeFileHandle fileHandle, System.IO.UnixFileMode mode) { }
282282
public override void SetUnixFileMode(string path, System.IO.UnixFileMode mode) { }
283-
public override void WriteAllBytes(string path, byte[] bytes) { }
284283
public override void WriteAllBytes(string path, System.ReadOnlySpan<byte> bytes) { }
285-
public override System.Threading.Tasks.Task WriteAllBytesAsync(string path, byte[] bytes, System.Threading.CancellationToken cancellationToken = default) { }
284+
public override void WriteAllBytes(string path, byte[] bytes) { }
286285
public override System.Threading.Tasks.Task WriteAllBytesAsync(string path, System.ReadOnlyMemory<byte> bytes, System.Threading.CancellationToken cancellationToken = default) { }
286+
public override System.Threading.Tasks.Task WriteAllBytesAsync(string path, byte[] bytes, System.Threading.CancellationToken cancellationToken = default) { }
287287
public override void WriteAllLines(string path, System.Collections.Generic.IEnumerable<string> contents) { }
288288
public override void WriteAllLines(string path, string[] contents) { }
289289
public override void WriteAllLines(string path, System.Collections.Generic.IEnumerable<string> contents, System.Text.Encoding encoding) { }
@@ -304,8 +304,8 @@ namespace System.IO.Abstractions.TestingHelpers
304304
{
305305
public static readonly System.DateTimeOffset DefaultDateTimeOffset;
306306
public static readonly System.Text.Encoding DefaultEncoding;
307-
public MockFileData(byte[] contents) { }
308307
public MockFileData(System.IO.Abstractions.TestingHelpers.MockFileData template) { }
308+
public MockFileData(byte[] contents) { }
309309
public MockFileData(string textContents) { }
310310
public MockFileData(string textContents, System.Text.Encoding encoding) { }
311311
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
@@ -420,8 +420,8 @@ namespace System.IO.Abstractions.TestingHelpers
420420
public System.IO.Abstractions.FileSystemStream New(Microsoft.Win32.SafeHandles.SafeFileHandle handle, System.IO.FileAccess access, int bufferSize, bool isAsync) { }
421421
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) { }
422422
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize) { }
423-
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize, bool useAsync) { }
424423
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize, System.IO.FileOptions options) { }
424+
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize, bool useAsync) { }
425425
public System.IO.Abstractions.FileSystemStream Wrap(System.IO.FileStream fileStream) { }
426426
}
427427
[System.Serializable]

tests/TestableIO.System.IO.Abstractions.Api.Tests/Expected/TestableIO.System.IO.Abstractions.TestingHelpers_netstandard2.0.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ namespace System.IO.Abstractions.TestingHelpers
228228
{
229229
public static readonly System.DateTimeOffset DefaultDateTimeOffset;
230230
public static readonly System.Text.Encoding DefaultEncoding;
231-
public MockFileData(byte[] contents) { }
232231
public MockFileData(System.IO.Abstractions.TestingHelpers.MockFileData template) { }
232+
public MockFileData(byte[] contents) { }
233233
public MockFileData(string textContents) { }
234234
public MockFileData(string textContents, System.Text.Encoding encoding) { }
235235
public System.Security.AccessControl.FileSecurity AccessControl { get; set; }
@@ -327,8 +327,8 @@ namespace System.IO.Abstractions.TestingHelpers
327327
public System.IO.Abstractions.FileSystemStream New(Microsoft.Win32.SafeHandles.SafeFileHandle handle, System.IO.FileAccess access, int bufferSize, bool isAsync) { }
328328
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) { }
329329
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize) { }
330-
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize, bool useAsync) { }
331330
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize, System.IO.FileOptions options) { }
331+
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize, bool useAsync) { }
332332
public System.IO.Abstractions.FileSystemStream Wrap(System.IO.FileStream fileStream) { }
333333
}
334334
[System.Serializable]

tests/TestableIO.System.IO.Abstractions.Api.Tests/Expected/TestableIO.System.IO.Abstractions.TestingHelpers_netstandard2.1.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,8 @@ namespace System.IO.Abstractions.TestingHelpers
254254
{
255255
public static readonly System.DateTimeOffset DefaultDateTimeOffset;
256256
public static readonly System.Text.Encoding DefaultEncoding;
257-
public MockFileData(byte[] contents) { }
258257
public MockFileData(System.IO.Abstractions.TestingHelpers.MockFileData template) { }
258+
public MockFileData(byte[] contents) { }
259259
public MockFileData(string textContents) { }
260260
public MockFileData(string textContents, System.Text.Encoding encoding) { }
261261
public System.Security.AccessControl.FileSecurity AccessControl { get; set; }
@@ -355,8 +355,8 @@ namespace System.IO.Abstractions.TestingHelpers
355355
public System.IO.Abstractions.FileSystemStream New(Microsoft.Win32.SafeHandles.SafeFileHandle handle, System.IO.FileAccess access, int bufferSize, bool isAsync) { }
356356
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share) { }
357357
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize) { }
358-
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize, bool useAsync) { }
359358
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize, System.IO.FileOptions options) { }
359+
public System.IO.Abstractions.FileSystemStream New(string path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, int bufferSize, bool useAsync) { }
360360
public System.IO.Abstractions.FileSystemStream Wrap(System.IO.FileStream fileStream) { }
361361
}
362362
[System.Serializable]

tests/TestableIO.System.IO.Abstractions.Api.Tests/Expected/TestableIO.System.IO.Abstractions.Wrappers_net8.0.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,8 @@ namespace System.IO.Abstractions
547547
protected void OnError(object sender, System.IO.ErrorEventArgs args) { }
548548
protected void OnRenamed(object sender, System.IO.RenamedEventArgs args) { }
549549
public abstract System.IO.Abstractions.IWaitForChangedResult WaitForChanged(System.IO.WatcherChangeTypes changeType);
550-
public abstract System.IO.Abstractions.IWaitForChangedResult WaitForChanged(System.IO.WatcherChangeTypes changeType, int timeout);
551550
public abstract System.IO.Abstractions.IWaitForChangedResult WaitForChanged(System.IO.WatcherChangeTypes changeType, System.TimeSpan timeout);
551+
public abstract System.IO.Abstractions.IWaitForChangedResult WaitForChanged(System.IO.WatcherChangeTypes changeType, int timeout);
552552
public static System.IO.Abstractions.FileSystemWatcherBase op_Implicit(System.IO.FileSystemWatcher watcher) { }
553553
}
554554
[System.Serializable]
@@ -583,8 +583,8 @@ namespace System.IO.Abstractions
583583
public override void Dispose(bool disposing) { }
584584
public override void EndInit() { }
585585
public override System.IO.Abstractions.IWaitForChangedResult WaitForChanged(System.IO.WatcherChangeTypes changeType) { }
586-
public override System.IO.Abstractions.IWaitForChangedResult WaitForChanged(System.IO.WatcherChangeTypes changeType, int timeout) { }
587586
public override System.IO.Abstractions.IWaitForChangedResult WaitForChanged(System.IO.WatcherChangeTypes changeType, System.TimeSpan timeout) { }
587+
public override System.IO.Abstractions.IWaitForChangedResult WaitForChanged(System.IO.WatcherChangeTypes changeType, int timeout) { }
588588
}
589589
[System.Serializable]
590590
public abstract class FileVersionInfoBase : System.IO.Abstractions.IFileVersionInfo

0 commit comments

Comments
 (0)