1
0

Updating to VS 2026

This commit is contained in:
2025-11-13 20:30:44 +01:00
parent 1096186c40
commit 1767b55c8a
29 changed files with 230 additions and 277 deletions

View File

@@ -16,16 +16,12 @@ namespace AMWD.Common.Tests.Cli
}
[TestMethod]
[ExpectedException(typeof(ArgumentNullException))]
public void ShouldThrowExceptionOnNullReference()
{
// arrange
// act
_ = new EnumerableWalker<object>(null);
// assert - ArgumentNullException
Assert.Fail();
// act & assert
Assert.ThrowsExactly<ArgumentNullException>(() => new EnumerableWalker<string>(null));
}
[TestMethod]
@@ -76,7 +72,7 @@ namespace AMWD.Common.Tests.Cli
public void ShouldReturnDefaultWhenNothingLeft()
{
// arrange
var walker = new EnumerableWalker<string>(Array.Empty<string>());
var walker = new EnumerableWalker<string>([]);
_ = walker.GetEnumerator();
// act