Skip to content

Bump NUnit from 4.5.1 to 4.6.1 - #452

Merged
Ben (benmwatson) merged 4 commits into
masterfrom
dependabot/nuget/UnitTests/NUnit-4.6.1
Sep 2, 2026
Merged

Bump NUnit from 4.5.1 to 4.6.1#452
Ben (benmwatson) merged 4 commits into
masterfrom
dependabot/nuget/UnitTests/NUnit-4.6.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Aug 20, 2026

Copy link
Copy Markdown
Contributor

Updated NUnit from 4.5.1 to 4.6.1.

Release notes

Sourced from NUnit's releases.

4.6.1

See release notes for details.

4.6.0

See release notes for details.

Commits viewable in compare view.

@dependabot dependabot Bot added .NET Pull requests that update .net code dependencies Pull requests that update a dependency file labels Aug 20, 2026
@dependabot
dependabot Bot force-pushed the dependabot/nuget/UnitTests/NUnit-4.6.1 branch from 90c386d to 6495ebc Compare August 20, 2026 18:03
@benmwatson

Copy link
Copy Markdown
Member

Dependabot (@dependabot) rebase

---
updated-dependencies:
- dependency-name: NUnit
  dependency-version: 4.6.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/nuget/UnitTests/NUnit-4.6.1 branch from 6495ebc to 9288400 Compare August 27, 2026 16:53
@benmwatson

Copy link
Copy Markdown
Member

Dependabot (@dependabot) rebase

---
updated-dependencies:
- dependency-name: NUnit
  dependency-version: 4.6.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot
dependabot Bot force-pushed the dependabot/nuget/UnitTests/NUnit-4.6.1 branch from 9288400 to c40cc05 Compare September 1, 2026 15:55
Comment thread UnitTests/Tests.cs
stream.Capacity64 = (long)Int32.MaxValue + 1;
Assert.That(stream.Capacity64, Is.EqualTo((long)Int32.MaxValue + 1));
Assert.Throws<InvalidOperationException>(() => { var cap = stream.Capacity; });
Assert.Throws<InvalidOperationException>((Action)(() => { var cap = stream.Capacity; }));
Comment thread UnitTests/Tests.cs

// Ensure default is false
Assert.DoesNotThrow(() => stream.ToArray());
Assert.DoesNotThrow((Action)(() => stream.ToArray()));
Comment thread UnitTests/Tests.cs

stream.MemoryManager.options.ThrowExceptionOnToArray = true;
Assert.Throws<NotSupportedException>(() => stream.ToArray());
Assert.Throws<NotSupportedException>((Action)(() => stream.ToArray()));
Comment thread UnitTests/Tests.cs

stream.MemoryManager.options.ThrowExceptionOnToArray = false;
Assert.DoesNotThrow(() => stream.ToArray());
Assert.DoesNotThrow((Action)(() => stream.ToArray()));
Comment thread UnitTests/Tests.cs
Assert.Throws<ObjectDisposedException>(() => { stream.Seek(0, SeekOrigin.Begin); });
Assert.Throws<ObjectDisposedException>(() => { var x = stream.ToArray(); });
Assert.Throws<ObjectDisposedException>(() => { var x = stream.GetBuffer(); });
Assert.Throws<ObjectDisposedException>((Action)(() => { var x = stream.Capacity; }));
Comment thread UnitTests/Tests.cs
Assert.Throws<ObjectDisposedException>((Action)(() => { var x = stream.Id; }));
Assert.Throws<ObjectDisposedException>((Action)(() => { var x = stream.Tag; }));
Assert.Throws<ObjectDisposedException>((Action)(() => { var x = stream.Position; }));
Assert.Throws<ObjectDisposedException>((Action)(() => { var x = stream.ReadByte(); }));
Comment thread UnitTests/Tests.cs
Assert.Throws<ObjectDisposedException>((Action)(() => { var x = stream.Tag; }));
Assert.Throws<ObjectDisposedException>((Action)(() => { var x = stream.Position; }));
Assert.Throws<ObjectDisposedException>((Action)(() => { var x = stream.ReadByte(); }));
Assert.Throws<ObjectDisposedException>((Action)(() => { var x = stream.Read(buffer, 0, buffer.Length); }));
Comment thread UnitTests/Tests.cs
Assert.Throws<ObjectDisposedException>((Action)(() => { stream.Write(buffer, 0, buffer.Length); }));
Assert.Throws<ObjectDisposedException>((Action)(() => { stream.SetLength(100); }));
Assert.Throws<ObjectDisposedException>((Action)(() => { stream.Seek(0, SeekOrigin.Begin); }));
Assert.Throws<ObjectDisposedException>((Action)(() => { var x = stream.ToArray(); }));
Comment thread UnitTests/Tests.cs
Assert.Throws<ObjectDisposedException>((Action)(() => { stream.Write(buffer, 0, buffer.Length); }));
Assert.Throws<ObjectDisposedException>((Action)(() => { stream.SetLength(100); }));
Assert.Throws<ObjectDisposedException>((Action)(() => { stream.Seek(0, SeekOrigin.Begin); }));
Assert.Throws<ObjectDisposedException>((Action)(() => { var x = stream.ToArray(); }));
Comment thread UnitTests/Tests.cs
Assert.Throws<ObjectDisposedException>((Action)(() => { stream.SetLength(100); }));
Assert.Throws<ObjectDisposedException>((Action)(() => { stream.Seek(0, SeekOrigin.Begin); }));
Assert.Throws<ObjectDisposedException>((Action)(() => { var x = stream.ToArray(); }));
Assert.Throws<ObjectDisposedException>((Action)(() => { var x = stream.GetBuffer(); }));

@yihpink yihpink left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@benmwatson
Ben (benmwatson) merged commit fad680d into master Sep 2, 2026
5 checks passed
@dependabot
dependabot Bot deleted the dependabot/nuget/UnitTests/NUnit-4.6.1 branch September 2, 2026 20:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file .NET Pull requests that update .net code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants