Updating to VS 2026
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user