style: format document

This commit is contained in:
Oliver Booth 2023-08-27 13:38:31 +01:00
parent 2fb91d5175
commit e115a8fa0e
Signed by: oliverbooth
GPG Key ID: B89D139977693FED
1 changed files with 4 additions and 4 deletions

View File

@ -437,7 +437,7 @@ internal class StringTests
[Test] [Test]
public void GetBytes_ShouldReturnUtf8Bytes_GivenHelloWorld() public void GetBytes_ShouldReturnUtf8Bytes_GivenHelloWorld()
{ {
var expected = new byte[] {0x48, 0x65, 0x6C, 0x6C, 0x6F, 0x20, 0x57, 0x6F, 0x72, 0x6C, 0x64}; var expected = new byte[] { 0x48, 0x65, 0x6C, 0x6C, 0x6F, 0x20, 0x57, 0x6F, 0x72, 0x6C, 0x64 };
byte[] actual = "Hello World".GetBytes(); byte[] actual = "Hello World".GetBytes();
CollectionAssert.AreEqual(expected, actual); CollectionAssert.AreEqual(expected, actual);
@ -446,7 +446,7 @@ internal class StringTests
[Test] [Test]
public void GetBytes_ShouldReturnAsciiBytes_GivenHelloWorld() public void GetBytes_ShouldReturnAsciiBytes_GivenHelloWorld()
{ {
var expected = new byte[] {0x48, 0x65, 0x6C, 0x6C, 0x6F, 0x20, 0x57, 0x6F, 0x72, 0x6C, 0x64}; var expected = new byte[] { 0x48, 0x65, 0x6C, 0x6C, 0x6F, 0x20, 0x57, 0x6F, 0x72, 0x6C, 0x64 };
byte[] actual = "Hello World".GetBytes(Encoding.ASCII); byte[] actual = "Hello World".GetBytes(Encoding.ASCII);
CollectionAssert.AreEqual(expected, actual); CollectionAssert.AreEqual(expected, actual);
@ -488,7 +488,7 @@ internal class StringTests
public void IsEmoji_ShouldReturnTrue_GivenMultiByteEmoji() public void IsEmoji_ShouldReturnTrue_GivenMultiByteEmoji()
{ {
string[] regionalIndicatorCodes = Enumerable.Range(0, 26) string[] regionalIndicatorCodes = Enumerable.Range(0, 26)
.Select(i => Encoding.Unicode.GetString(new byte[] {0x3C, 0xD8, (byte)(0xE6 + i), 0xDD})) .Select(i => Encoding.Unicode.GetString(new byte[] { 0x3C, 0xD8, (byte)(0xE6 + i), 0xDD }))
.ToArray(); .ToArray();
for (var i = 0; i < 26; i++) for (var i = 0; i < 26; i++)
@ -922,7 +922,7 @@ internal class StringTests
[Test] [Test]
public void StartsWithAny_ShouldThrowArgumentNullException_GivenANullValue() public void StartsWithAny_ShouldThrowArgumentNullException_GivenANullValue()
{ {
var values = new[] {"Hello", null!, "World"}; var values = new[] { "Hello", null!, "World" };
Assert.Throws<ArgumentNullException>(() => "Foobar".StartsWithAny(values)); Assert.Throws<ArgumentNullException>(() => "Foobar".StartsWithAny(values));
Assert.Throws<ArgumentNullException>(() => "Foobar".StartsWithAny(StringComparison.Ordinal, values)); Assert.Throws<ArgumentNullException>(() => "Foobar".StartsWithAny(StringComparison.Ordinal, values));
} }