mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-22 22:15:17 -04:00
Fixed: Avoid zero-length array memory allocations
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
using System;
|
||||
using FluentAssertions;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Common.EnvironmentInfo;
|
||||
@@ -11,7 +12,7 @@ namespace NzbDrone.Common.Test.EnvironmentTests
|
||||
[Test]
|
||||
public void empty_array_should_return_empty_flags()
|
||||
{
|
||||
var args = new StartupContext(new string[0]);
|
||||
var args = new StartupContext(Array.Empty<string>());
|
||||
args.Flags.Should().BeEmpty();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user