diff --git a/src/Humanizer.Tests.Shared/Localisation/de/CollectionFormatterTests.cs b/src/Humanizer.Tests.Shared/Localisation/de/CollectionFormatterTests.cs index 67eec82c2..42faa8bc8 100644 --- a/src/Humanizer.Tests.Shared/Localisation/de/CollectionFormatterTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/de/CollectionFormatterTests.cs @@ -6,7 +6,7 @@ public class CollectionFormatterTests [Fact] public void OneItem() { - var collection = new List(new int[] { 1 }); + var collection = new List(new[] { 1 }); var humanized = "1"; Assert.Equal(humanized, collection.Humanize()); } @@ -14,7 +14,7 @@ public void OneItem() [Fact] public void TwoItems() { - var collection = new List(new int[] { 1, 2 }); + var collection = new List(new[] { 1, 2 }); var humanized = "1 und 2"; Assert.Equal(humanized, collection.Humanize()); } @@ -22,7 +22,7 @@ public void TwoItems() [Fact] public void MoreThanTwoItems() { - var collection = new List(new int[] { 1, 2, 3 }); + var collection = new List(new[] { 1, 2, 3 }); var humanized = "1, 2 und 3"; Assert.Equal(humanized, collection.Humanize()); } diff --git a/src/Humanizer.Tests.Shared/Localisation/it/CollectionFormatterTests.cs b/src/Humanizer.Tests.Shared/Localisation/it/CollectionFormatterTests.cs index a41613ae5..9a0b53082 100644 --- a/src/Humanizer.Tests.Shared/Localisation/it/CollectionFormatterTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/it/CollectionFormatterTests.cs @@ -6,7 +6,7 @@ public class CollectionFormatterTests [Fact] public void OneItem() { - var collection = new List(new int[] { 1 }); + var collection = new List(new[] { 1 }); var humanized = "1"; Assert.Equal(humanized, collection.Humanize()); } @@ -14,7 +14,7 @@ public void OneItem() [Fact] public void TwoItems() { - var collection = new List(new int[] { 1, 2 }); + var collection = new List(new[] { 1, 2 }); var humanized = "1 e 2"; Assert.Equal(humanized, collection.Humanize()); } @@ -22,7 +22,7 @@ public void TwoItems() [Fact] public void MoreThanTwoItems() { - var collection = new List(new int[] { 1, 2, 3 }); + var collection = new List(new[] { 1, 2, 3 }); var humanized = "1, 2 e 3"; Assert.Equal(humanized, collection.Humanize()); } diff --git a/src/Humanizer.Tests.Shared/Localisation/ro-Ro/CollectionFormatterTests.cs b/src/Humanizer.Tests.Shared/Localisation/ro-Ro/CollectionFormatterTests.cs index 42d3da18c..ba6e9c8a1 100644 --- a/src/Humanizer.Tests.Shared/Localisation/ro-Ro/CollectionFormatterTests.cs +++ b/src/Humanizer.Tests.Shared/Localisation/ro-Ro/CollectionFormatterTests.cs @@ -6,7 +6,7 @@ public class CollectionFormatterTests [Fact] public void OneItem() { - var collection = new List(new int[] { 1 }); + var collection = new List(new[] { 1 }); var humanized = "1"; Assert.Equal(humanized, collection.Humanize()); } @@ -14,7 +14,7 @@ public void OneItem() [Fact] public void TwoItems() { - var collection = new List(new int[] { 1, 2 }); + var collection = new List(new[] { 1, 2 }); var humanized = "1 și 2"; Assert.Equal(humanized, collection.Humanize()); } @@ -22,7 +22,7 @@ public void TwoItems() [Fact] public void MoreThanTwoItems() { - var collection = new List(new int[] { 1, 2, 3 }); + var collection = new List(new[] { 1, 2, 3 }); var humanized = "1, 2 și 3"; Assert.Equal(humanized, collection.Humanize()); } diff --git a/src/Humanizer.Tests.Shared/NumberToWordsTests.cs b/src/Humanizer.Tests.Shared/NumberToWordsTests.cs index 98e2f8d08..6317be5a4 100644 --- a/src/Humanizer.Tests.Shared/NumberToWordsTests.cs +++ b/src/Humanizer.Tests.Shared/NumberToWordsTests.cs @@ -69,7 +69,7 @@ public void ToOrdinalWords_WordFormIsIgnored(int number, string expected) var abbrForm2 = number.ToOrdinalWords(default, WordForm.Abbreviation); Assert.All( - new string[] { normalForm1, abbrForm1, normalForm2, abbrForm2 }, + new[] { normalForm1, abbrForm1, normalForm2, abbrForm2 }, item => Assert.Equal(expected, item)); } @@ -91,7 +91,7 @@ public void ToOrdinalWords_WordFormIsIgnoredWithSpecificCulture(int number, stri var abbrForm2 = number.ToOrdinalWords(default, WordForm.Abbreviation, cultureInfo); Assert.All( - new string[] { cultureSpecificNumber, normalForm1, abbrForm1, normalForm2, abbrForm2 }, + new[] { cultureSpecificNumber, normalForm1, abbrForm1, normalForm2, abbrForm2 }, item => Assert.Equal(expected, item)); } @@ -136,7 +136,7 @@ public void ToWords_WordFormIsIgnored(int number, string expected) var abbrFrom3 = ((long)number).ToWords(WordForm.Abbreviation, default(GrammaticalGender)); Assert.All( - new string[] { normalForm1, abbrForm1, normalForm2, abbrForm2, normalForm3, normalForm3 }, + new[] { normalForm1, abbrForm1, normalForm2, abbrForm2, normalForm3, normalForm3 }, item => Assert.Equal(expected, item)); } @@ -158,7 +158,7 @@ public void ToWords_WordFormIsIgnoredWithSpecificCulture(int number, string cult var abbrForm2 = ((long)number).ToWords(WordForm.Abbreviation, default(GrammaticalGender), cultureInfo); Assert.All( - new string[] { cultureSpecificNumber, normalForm1, abbrForm1, normalForm2, abbrForm2 }, + new[] { cultureSpecificNumber, normalForm1, abbrForm1, normalForm2, abbrForm2 }, item => Assert.Equal(expected, item)); }