699 references to Equal
Contract.XmlSerializer.IntegrationTests (6)
XmlSerializerFormatTest.cs (6)
185Assert.Equal((new byte[] { byteParams.P1, byteParams.P2 }), serviceProxy1.CreateSet(byteParams)); 233Assert.Equal((new byte[] { byteParams.P1, byteParams.P2 }), serviceProxy1.CreateSet(byteParams)); 281Assert.Equal((new byte[] { byteParams.P1, byteParams.P2 }), serviceProxy1.CreateSet(byteParams)); 334Assert.Equal((new byte[] { byteParams.P1, byteParams.P2 }), serviceProxy1.CreateSet(byteParams)); 391Assert.Equal((new byte[] { byteParams.P1, byteParams.P2 }), serviceProxy1.CreateSet(byteParams)); 448Assert.Equal((new byte[] { byteParams.P1, byteParams.P2 }), serviceProxy1.CreateSet(byteParams));
dotnet-svcutil.xmlserializer.IntegrationTests (6)
src\System.Private.ServiceModel\tests\Scenarios\Contract\XmlSerializer\XmlSerializerFormatTest.cs (6)
185Assert.Equal((new byte[] { byteParams.P1, byteParams.P2 }), serviceProxy1.CreateSet(byteParams)); 233Assert.Equal((new byte[] { byteParams.P1, byteParams.P2 }), serviceProxy1.CreateSet(byteParams)); 281Assert.Equal((new byte[] { byteParams.P1, byteParams.P2 }), serviceProxy1.CreateSet(byteParams)); 334Assert.Equal((new byte[] { byteParams.P1, byteParams.P2 }), serviceProxy1.CreateSet(byteParams)); 391Assert.Equal((new byte[] { byteParams.P1, byteParams.P2 }), serviceProxy1.CreateSet(byteParams)); 448Assert.Equal((new byte[] { byteParams.P1, byteParams.P2 }), serviceProxy1.CreateSet(byteParams));
IIS.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (2)
133Assert.Equal( 151Assert.Equal(
IISExpress.FunctionalTests (2)
src\Servers\IIS\IIS\test\Common.FunctionalTests\RequestResponseTests.cs (2)
133Assert.Equal( 151Assert.Equal(
InMemory.FunctionalTests (4)
BadHttpRequestTests.cs (1)
270Assert.Equal(Http1Connection.Http2GoAwayHttp11RequiredBytes.ToArray(), data);
Http2\Http2ConnectionTests.cs (2)
5677Assert.Equal(streamPayload, streamResponse); 5848Assert.Equal(Http2Connection.InvalidHttp1xErrorResponseBytes, data);
Http3\WebTransport\WebTransportStreamTests.cs (1)
50Assert.Equal(input.ToArray(), memoryOut.ToArray());
Interop.FunctionalTests (2)
Http2\Http2RequestTests.cs (1)
283Assert.Equal(randomBytes, readData);
Http3\Http3RequestTests.cs (1)
2167Assert.Equal(TestData, data);
Microsoft.AspNetCore.Antiforgery.Test (1)
BinaryBlobTest.cs (1)
53Assert.Equal(expectedData, blob.GetData());
Microsoft.AspNetCore.Components.Server.Tests (3)
Circuits\RemoteJSDataStreamTest.cs (2)
65Assert.Equal(chunk, memoryStream.ToArray()); 93Assert.Equal(chunk, memoryStream.ToArray());
src\SignalR\common\SignalR.Common\test\Internal\Protocol\MessagePackHubProtocolTestBase.cs (1)
481Assert.Equal(expectedOutput, message.ToArray());
Microsoft.AspNetCore.Components.Tests (7)
Lifetime\ComponentApplicationStateTest.cs (5)
25Assert.Equal(new byte[] { 1, 2, 3, 4 }, existing); 59Assert.Equal(new byte[] { 1, 2, 3, 4 }, existing); 79Assert.Equal(myState, JsonSerializer.Deserialize<byte[]>(stored)); 115Assert.Equal(myState, JsonSerializer.Deserialize<byte[]>(stored)); 151Assert.Equal(myState, stored);
Lifetime\ComponentStatePersistenceManagerTest.cs (2)
36Assert.Equal(data, retrieved); 100Assert.Equal(data, JsonSerializer.Deserialize<byte[]>(persisted.ToArray()));
Microsoft.AspNetCore.Components.WebAssembly.Tests (2)
PullFromJSDataStreamTest.cs (2)
46Assert.Equal(expectedChunks[i], buffer); 60Assert.Equal(Data, mem.ToArray());
Microsoft.AspNetCore.DataProtection.Extensions.Tests (5)
DataProtectionAdvancedExtensionsTests.cs (1)
75Assert.Equal(new byte[] { 0x01, 0x02 }, protectedPayload);
TimeLimitedDataProtectorTests.cs (4)
38Assert.Equal(new byte[] { 0x10, 0x11 }, protectedPayload); 61Assert.Equal(new byte[] { 0x10, 0x11 }, protectedPayload); 85Assert.Equal(new byte[] { 0x01, 0x02, 0x03, 0x04, 0x05 }, retVal); 164Assert.Equal(
Microsoft.AspNetCore.DataProtection.Tests (22)
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptorDeserializerTests.cs (1)
41Assert.Equal(plaintext, roundTripPlaintext);
AuthenticatedEncryption\ConfigurationModel\AuthenticatedEncryptorDescriptorTests.cs (4)
49Assert.Equal(plaintext, roundTripPlaintext); 75Assert.Equal(plaintext, roundTripPlaintext); 101Assert.Equal(plaintext, roundTripPlaintext); 139Assert.Equal(plaintext, roundTripPlaintext);
AuthenticatedEncryption\ConfigurationModel\CngCbcAuthenticatedEncryptorDescriptorDeserializerTests.cs (1)
48Assert.Equal(plaintext, roundTripPlaintext);
AuthenticatedEncryption\ConfigurationModel\CngGcmAuthenticatedEncryptorDescriptorDeserializerTests.cs (1)
45Assert.Equal(plaintext, roundTripPlaintext);
AuthenticatedEncryption\ConfigurationModel\ManagedAuthenticatedEncryptorDescriptorDeserializerTests.cs (2)
49Assert.Equal(plaintext, roundTripPlaintext); 83Assert.Equal(plaintext, roundTripPlaintext);
EphemeralDataProtectionProviderTests.cs (1)
60Assert.Equal(bytes, unprotectedBytes);
KeyManagement\KeyRingBasedDataProtectorTests.cs (9)
69Assert.Equal(expectedProtectedData, retVal); 107Assert.Equal(expectedProtectedData, retVal); 453Assert.Equal(expectedPlaintext, retVal); 494Assert.Equal(expectedPlaintext, retVal); 501Assert.Equal(expectedPlaintext, retVal); 544Assert.Equal(expectedPlaintext, retVal); 551Assert.Equal(expectedPlaintext, retVal); 580Assert.Equal(plaintext, roundTrippedPlaintext); 618Assert.Equal(expectedProtectedData, retVal);
SecretTests.cs (3)
44Assert.Equal(new byte[] { 0x20, 0x30, 0x40 }, outputBuffer); 71Assert.Equal(new byte[] { 0x20, 0x30, 0x40 }, outputBuffer); 153Assert.Equal(new byte[] { 0x20, 0x30, 0x40 }, outputBuffer);
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (4)
JsonTranscodingServerCallContextTests.cs (1)
56Assert.Equal(new byte[] { 1, 2, 3 }, headers[1].ValueBytes);
UnaryServerCallHandlerTests.cs (3)
1202Assert.Equal(requestContent, requestData); 1560Assert.Equal(new byte[] { 1, 2, 3 }, request!.Data.SingleBytes.ToByteArray()); 1690Assert.Equal(new byte[] { 1, 2, 3 }, request!.Wrappers.BytesValue.ToByteArray());
Microsoft.AspNetCore.Http.Abstractions.Tests (2)
HttpResponseWritingExtensionsTests.cs (2)
47Assert.Equal(expected, actual); 68Assert.Equal(expected, actualShortened);
Microsoft.AspNetCore.Http.Connections.Tests (9)
HttpConnectionDispatcherTests.cs (9)
2407Assert.Equal(firstMsg, webSocketMessage.Buffer); 2437Assert.Equal(secondMsg, webSocketMessage.Buffer); 2481Assert.Equal(firstMsg, webSocketMessage.Buffer); 2512Assert.Equal(secondMsg, webSocketMessage.Buffer); 2983Assert.Equal(new byte[] { 1, 2, 3 }, memory.Slice(0, 3).ToArray()); 2995Assert.Equal(new byte[] { 1, 2, 3 }, memory.Slice(0, 3).ToArray()); 3040Assert.Equal(new byte[] { 2, 3, 4 }, memory.Slice(0, 3).ToArray()); 3050Assert.Equal(new byte[] { 2, 3, 4 }, memory.Slice(0, 3).ToArray()); 3172Assert.Equal(new byte[] { 1 }, memory.Slice(0, 1).ToArray());
Microsoft.AspNetCore.Http.Extensions.Tests (14)
RequestDelegateGenerator\RequestDelegateCreationTests.Arrays.cs (3)
774Assert.Equal(new[] { 1, 2, 3 }, (int[])httpContext.Items["query"]!); 775Assert.Equal(new[] { 4, 5, 6 }, (int[])httpContext.Items["headers"]!); 776Assert.Equal(new[] { 7, 8, 9 }, (int[])httpContext.Items["form"]!);
RequestDelegateGenerator\RequestDelegateCreationTests.cs (3)
598Assert.Equal(new[] { 1, 2, 3 }, (int[])httpContext.Items["query"]!); 599Assert.Equal(new[] { 4, 5, 6 }, (int[])httpContext.Items["headers"]!); 600Assert.Equal(new[] { 7, 8, 9 }, (int[])httpContext.Items["form"]!);
RequestDelegateGenerator\RequestDelegateCreationTests.JsonBody.cs (8)
246Assert.Equal(requestBodyBytes, data); 251Assert.Equal(requestBodyBytes, result.Buffer.ToArray()); 256Assert.Equal(requestBodyBytes, (byte[])rawRequestBody!); 287Assert.Equal(requestBodyBytes, data); 292Assert.Equal(requestBodyBytes, result.Buffer.ToArray()); 297Assert.Equal(requestBodyBytes, (byte[])rawRequestBody!); 338Assert.Equal(requestBodyBytes, (byte[])rawRequestBody!); 379Assert.Equal(requestBodyBytes, (byte[])rawRequestBody!);
Microsoft.AspNetCore.Http.Results.Tests (3)
ContentResultTests.cs (1)
122Assert.Equal(expectedContentData, memoryStream.ToArray());
src\Shared\ResultsTests\FileContentResultTestBase.cs (2)
41Assert.Equal(buffer, outStream.ToArray()); 349Assert.Equal(buffer, outStream.ToArray());
Microsoft.AspNetCore.Identity.Test (3)
Base32Test.cs (3)
14Assert.Equal<byte>(data, Base32.FromBase32(Base32.ToBase32(data))); 22Assert.Equal<byte>(data, Base32.FromBase32(Base32.ToBase32(data))); 26Assert.Equal<byte>(data, Base32.FromBase32(Base32.ToBase32(data)));
Microsoft.AspNetCore.Mvc.Core.Test (21)
ContentResultTest.cs (1)
139Assert.Equal(expectedContentData, memoryStream.ToArray());
Formatters\JsonInputFormatterTestBase.cs (1)
272Assert.Equal(new int[] { 0, 23, 300 }, integers);
Formatters\SystemTextJsonOutputFormatterTest.cs (1)
113Assert.Equal(expected.ToArray(), body.ToArray());
Infrastructure\JsonResultExecutorTestBase.cs (10)
38Assert.Equal(expected, written); 59Assert.Equal(expected, written); 83Assert.Equal(expected, written); 103Assert.Equal(expected, written); 127Assert.Equal(expected, written); 149Assert.Equal(expected, written); 174Assert.Equal(expected, written); 198Assert.Equal(expected, written); 324Assert.Equal(expected, written); 360Assert.Equal(expected, written);
ModelBinding\Binders\ArrayModelBinderTest.cs (1)
39Assert.Equal(new[] { 42, 84 }, array);
ModelBinding\Binders\ByteArrayModelBinderTests.cs (1)
54Assert.Equal(new byte[] { 23, 43, 53 }, bytes);
ModelBinding\Binders\CollectionModelBinderTest.cs (4)
87Assert.Equal(new[] { 42, 100, 200 }, list.ToArray()); 118Assert.Equal(new[] { 42, 100, 200 }, list.ToArray()); 144Assert.Equal(new[] { 42, 100, 200 }, list.ToArray()); 170Assert.Equal(new[] { 42, 100, 200 }, list.ToArray());
src\Shared\ResultsTests\FileContentResultTestBase.cs (2)
41Assert.Equal(buffer, outStream.ToArray()); 349Assert.Equal(buffer, outStream.ToArray());
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
XmlDataContractSerializerInputFormatterTest.cs (1)
557Assert.Equal(expectedBytes, Encoding.UTF8.GetBytes(model.SampleString));
XmlSerializerInputFormatterTest.cs (1)
577Assert.Equal(expectedBytes, Encoding.UTF8.GetBytes(model.SampleString));
Microsoft.AspNetCore.Mvc.IntegrationTests (17)
ArrayModelBinderIntegrationTest.cs (3)
38Assert.Equal(new int[] { 10, 11 }, model); 82Assert.Equal(new int[] { 10, 11 }, model); 122Assert.Equal(new int[] { 10, 11 }, model);
ByteArrayModelBinderIntegrationTest.cs (2)
56Assert.Equal(expectedValue, boundPerson.Token); 138Assert.Equal(expectedValue, model);
ComplexRecordIntegrationTest.cs (5)
371Assert.Equal(ByteArrayContent, model.Customer.Token); 423Assert.Equal(ByteArrayContent, model.Customer.Token); 795Assert.Equal(new int[] { 10, 11 }, model.ProductIds); 850Assert.Equal(new int[] { 10, 11 }, model.ProductIds); 2508Assert.Equal(new[] { 123 }, model.OrderIds.ToArray());
ComplexTypeIntegrationTestBase.cs (5)
364Assert.Equal(ByteArrayContent, model.Customer.Token); 416Assert.Equal(ByteArrayContent, model.Customer.Token); 803Assert.Equal(new int[] { 10, 11 }, model.ProductIds); 858Assert.Equal(new int[] { 10, 11 }, model.ProductIds); 2678Assert.Equal(new[] { 123 }, model.OrderIds.ToArray());
ValidationIntegrationTests.cs (1)
2000Assert.Equal(input.OrderFile, model.OrderFile);
ValidationWithRecordIntegrationTests.cs (1)
1795Assert.Equal(input.OrderFile, model.OrderFile);
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (14)
BsonTempDataSerializerTest.cs (1)
108Assert.Equal(value, roundTripValue);
JsonResultTest.cs (1)
35Assert.Equal(expected, written);
src\Mvc\Mvc.Core\test\Formatters\JsonInputFormatterTestBase.cs (1)
272Assert.Equal(new int[] { 0, 23, 300 }, integers);
src\Mvc\Mvc.Core\test\Infrastructure\JsonResultExecutorTestBase.cs (10)
38Assert.Equal(expected, written); 59Assert.Equal(expected, written); 83Assert.Equal(expected, written); 103Assert.Equal(expected, written); 127Assert.Equal(expected, written); 149Assert.Equal(expected, written); 174Assert.Equal(expected, written); 198Assert.Equal(expected, written); 324Assert.Equal(expected, written); 360Assert.Equal(expected, written);
src\Mvc\Mvc.ViewFeatures\test\Infrastructure\TempDataSerializerTestBase.cs (1)
258Assert.Equal(value, roundTripValue);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (15)
Buffers\PagedBufferedTextWriterTest.cs (7)
39Assert.Equal<char>(Content, inner.ToString().ToCharArray()); 96Assert.Equal<char>(Content, inner.ToString().ToCharArray()); 136Assert.Equal<char>(Content, inner.ToString().ToCharArray()); 182Assert.Equal<char>(Content, inner.ToString().ToCharArray()); 280Assert.Equal<char>(Content, inner.ToString().ToCharArray()); 300Assert.Equal<char>(Content, inner.ToString().ToCharArray()); 320Assert.Equal<char>(Content, inner.ToString().ToCharArray());
Buffers\PagedCharBufferTest.cs (2)
40page => Assert.Equal(stringToAppend.ToCharArray(), page), 103page => Assert.Equal(stringToAppend.ToCharArray(), page),
CookieTempDataProviderTest.cs (5)
110Assert.Equal(expectedDataToUnprotect, dataProtector.DataToUnprotect); 137Assert.Equal(expectedDataToProtect, dataProtector.PlainTextToProtect); 173Assert.Equal(expectedDataToProtect, dataProtector.PlainTextToProtect); 208Assert.Equal(expectedDataToProtect, dataProtector.PlainTextToProtect); 257Assert.Equal(expectedDataToProtect, dataProtector.PlainTextToProtect);
Infrastructure\TempDataSerializerTestBase.cs (1)
258Assert.Equal(value, roundTripValue);
Microsoft.AspNetCore.OutputCaching.Tests (1)
CachedResponseBodyTests.cs (1)
86Assert.Equal(new byte[] { 1, 2, 3 }, receivedSegments.SelectMany(x => x).ToArray());
Microsoft.AspNetCore.RequestDecompression.Tests (12)
RequestDecompressionMiddlewareTests.cs (12)
91Assert.Equal(uncompressedBytes, decompressedBytes); 107Assert.Equal(uncompressedBytes, decompressedBytes); 139Assert.Equal(uncompressedBytes, decompressedBytes); 154Assert.Equal(uncompressedBytes, outputBytes); 170Assert.Equal(compressedBytes, outputBytes); 187Assert.Equal(inputBytes, outputBytes); 253Assert.Equal(uncompressedBytes, decompressedBytes); 325Assert.Equal(uncompressedBytes, outputBytes); 332Assert.Equal(compressedBytes, outputBytes); 422Assert.Equal(uncompressedBytes, decompressedBytes); 508Assert.Equal(uncompressedBytes, decompressedBytes); 592Assert.Equal(uncompressedBytes, decompressedBytes);
Microsoft.AspNetCore.ResponseCaching.Tests (1)
CachedResponseBodyTests.cs (1)
92Assert.Equal(new byte[] { 1, 2, 3 }, receivedSegments.SelectMany(x => x).ToArray());
Microsoft.AspNetCore.ResponseCompression.Tests (4)
ResponseCompressionBodyTest.cs (4)
42Assert.Equal(buffer, memoryStream.ToArray()); 58Assert.Equal(buffer, memoryStream.ToArray()); 73Assert.Equal(File.ReadAllBytes(path), memoryStream.ToArray()); 90Assert.Equal(buffer, memoryStream.ToArray());
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (12)
Listener\ResponseBodyTests.cs (4)
48Assert.Equal(new byte[10], await response.Content.ReadAsByteArrayAsync()); 97Assert.Equal(new byte[0], await response.Content.ReadAsByteArrayAsync()); 118Assert.Equal(new byte[20], await response.Content.ReadAsByteArrayAsync()); 140Assert.Equal(new byte[20], await response.Content.ReadAsByteArrayAsync());
ResponseBodyTests.cs (7)
125Assert.Equal(new byte[20], await response.Content.ReadAsByteArrayAsync()); 182Assert.Equal(new byte[20], await response.Content.ReadAsByteArrayAsync()); 229Assert.Equal(new byte[30], await response.Content.ReadAsByteArrayAsync()); 309Assert.Equal(new byte[10], await response.Content.ReadAsByteArrayAsync()); 340Assert.Equal(new byte[10], await response.Content.ReadAsByteArrayAsync()); 368Assert.Equal(new byte[10], await response.Content.ReadAsByteArrayAsync()); 395Assert.Equal(new byte[10], await response.Content.ReadAsByteArrayAsync());
ResponseCachingTests.cs (1)
478Assert.Equal(new byte[10], await response.Content.ReadAsByteArrayAsync());
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (29)
BitShifterTests.cs (3)
21Assert.Equal(new byte[] { 0x80, 0x00, 0x00, 0x01 }, dirtySpan.ToArray()); 33Assert.Equal(new byte[] { 0x80, 0x00, 0x00, 0x01 }, dirtySpan.ToArray()); 45Assert.Equal(new byte[] { 0x00, 0x00, 0x00, 0x01 }, dirtySpan.ToArray());
BufferWriterTests.cs (10)
67Assert.Equal(array, Read()); 87Assert.Equal(array.Skip(offset).Take(length).ToArray(), Read()); 102Assert.Equal(array, Read()); 114Assert.Equal(new byte[] { 1, 2, 3 }, Read()); 128Assert.Equal(new byte[] { 1, 2, 3 }, Read()); 144Assert.Equal(expectedBytes, Read()); 154Assert.Equal(new byte[] { }, Read()); 163Assert.Equal(new byte[] { }, Read()); 179Assert.Equal(new byte[] { 1, 2, 3 }, Read()); 226Assert.Equal(data, Read());
ChunkWriterTests.cs (1)
44Assert.Equal(Encoding.ASCII.GetBytes(expected), span.Slice(0, count).ToArray());
Http2\Http2HPackEncoderTests.cs (5)
489Assert.Equal(expectedPayload, new ArraySegment<byte>(payload, 0, length).ToArray()); 544Assert.Equal(expectedStatusCodePayload, payload.Slice(0, length).ToArray()); 551Assert.Equal(expectedDateHeaderPayload, payload.Slice(offset, length).ToArray()); 558Assert.Equal(expectedContentTypeHeaderPayload, payload.Slice(offset, length).ToArray()); 565Assert.Equal(expectedServerHeaderPayload, payload.Slice(offset, length).ToArray());
Http3\Http3FrameWriterTests.cs (3)
49Assert.Equal(new byte[] { 0x04, 0x00 }, payload.ToArray()); 68Assert.Equal(new byte[] { 0x04, 0x05, 0x06, 0x80, 0x00 }, payload.ToArray()); 86Assert.Equal(new byte[] { 0x04, 0x08, 0x01, 0x44, 0xD2, 0x06, 0x80, 0x08, 0xAA, 0x52 }, payload.ToArray());
src\Shared\test\Shared.Tests\runtime\Http2\DynamicTableTest.cs (2)
247Assert.Equal(entries[i].Name, headerField.Name); 250Assert.Equal(entries[i].Value, headerField.Value);
src\Shared\test\Shared.Tests\runtime\Http2\HuffmanDecodingTests.cs (2)
251Assert.Equal(expected, dst); 347Assert.Equal(new byte[] { (byte)'B', (byte)'\n' }, decodedBytes);
src\Shared\test\Shared.Tests\runtime\Http3\VariableLengthIntegerHelperTests.cs (3)
289Assert.Equal(expected, span.ToArray()); 317Assert.Equal(expected, span.ToArray()); 345Assert.Equal(expected, span.ToArray());
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (6)
QuicConnectionContextTests.cs (2)
110Assert.Equal(TestData, read.Buffer.ToArray()); 224Assert.Equal(TestData, data);
QuicStreamContextTests.cs (4)
209Assert.Equal(testData, data); 419Assert.Equal(TestData, data); 460Assert.Equal(TestData, data); 518Assert.Equal(TestData, data);
Microsoft.AspNetCore.Shared.Tests (7)
runtime\Http2\DynamicTableTest.cs (2)
247Assert.Equal(entries[i].Name, headerField.Name); 250Assert.Equal(entries[i].Value, headerField.Value);
runtime\Http2\HuffmanDecodingTests.cs (2)
251Assert.Equal(expected, dst); 347Assert.Equal(new byte[] { (byte)'B', (byte)'\n' }, decodedBytes);
runtime\Http3\VariableLengthIntegerHelperTests.cs (3)
289Assert.Equal(expected, span.ToArray()); 317Assert.Equal(expected, span.ToArray()); 345Assert.Equal(expected, span.ToArray());
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
HubConnectionTests.cs (1)
772Assert.Equal(new[] { 0, 1, 2, 3, 4 }, results.ToArray());
Microsoft.AspNetCore.SignalR.Client.Tests (2)
HttpConnectionTests.Transport.cs (1)
248Assert.Equal(data, await sendTcs.Task.DefaultTimeout());
LongPollingTransportTests.cs (1)
511Assert.Equal(new[] { (byte)'H', (byte)'e', (byte)'l', (byte)'l', (byte)'o', (byte)'W', (byte)'o', (byte)'r', (byte)'l', (byte)'d'
Microsoft.AspNetCore.SignalR.Common.Tests (24)
Internal\Formatters\BinaryMessageFormatterTests.cs (1)
129Assert.Equal(payload, roundtripped.ToArray());
Internal\Formatters\BinaryMessageParserTests.cs (4)
25Assert.Equal(Encoding.UTF8.GetBytes(payload), message.ToArray()); 59Assert.Equal(payload, message.ToArray()); 108Assert.Equal(new byte[0], messages[0]); 109Assert.Equal(Encoding.UTF8.GetBytes("Hello,\r\nWorld!"), messages[1]);
Internal\Protocol\MemoryBufferWriterTests.cs (8)
191Assert.Equal(input, data); 224Assert.Equal(input, data); 242Assert.Equal(input, data); 261Assert.Equal(input, data); 302Assert.Equal(input, data); 307Assert.Equal(input, data); 349Assert.Equal(input, data); 354Assert.Equal(input, data);
Internal\Protocol\MessagePackHubProtocolTestBase.cs (1)
481Assert.Equal(expectedOutput, message.ToArray());
Internal\Protocol\Utf8BufferTextWriterTests.cs (10)
146Assert.Equal(expectedData, actualData); 175Assert.Equal(expectedData, actualData); 283seg => Assert.Equal(new byte[] { 0x61, 0xE3, 0x81, 0x84, 0x62 }, seg), // "aいb" 284seg => Assert.Equal(new byte[] { 0xE3, 0x82, 0x8D, 0x63, 0x64 }, seg), // "ろcd" 285seg => Assert.Equal(new byte[] { 0xE3, 0x81, 0xAF }, seg), // "は" 286seg => Assert.Equal(new byte[] { 0xE3, 0x81, 0xAB, 0x65 }, seg), // "にe" 287seg => Assert.Equal(new byte[] { 0xE3, 0x81, 0xBB, 0x66 }, seg), // "ほf" 288seg => Assert.Equal(new byte[] { 0xE3, 0x81, 0xB8 }, seg), // "へ" 289seg => Assert.Equal(new byte[] { 0xE3, 0x81, 0xA9, 0x67, 0x68 }, seg), // "どgh" 290seg => Assert.Equal(new byte[] { 0x69, 0xF0, 0x90, 0x80, 0x80 }, seg)); // "i\uD800\uDC00"
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (5)
RedisProtocolTests.cs (5)
54Assert.Equal(testData.Encoded, encoded); 90Assert.Equal(testData.Encoded, encoded); 184Assert.Equal(testData.Encoded, encoded); 200Assert.Equal(testData.Encoded, encoded); 274Assert.Equal(testData.Encoded, encoded);
Microsoft.AspNetCore.SignalR.Tests (7)
EndToEndTests.cs (3)
111Assert.Equal(bytes, buffer.Array.AsSpan(0, result.Count).ToArray()); 150Assert.Equal(bytes, buffer.Array.AsSpan(0, result.Count).ToArray()); 196Assert.Equal(message, receivedData);
HubConnectionHandlerTests.cs (1)
1431Assert.Equal(new[] { 1, 2, 3 }, values);
SerializedHubMessageTests.cs (3)
24Assert.Equal(DummyHubProtocol.DummySerialization, serialized.ToArray()); 42Assert.Equal(DummyHubProtocol.DummySerialization, serialized.ToArray()); 88Assert.Equal(DummyHubProtocol.DummySerialization, serializedMessage.Serialized.ToArray());
Microsoft.AspNetCore.TestHost.Tests (2)
ResponseBodyTests.cs (2)
81Assert.Equal(contentBytes, responseBytes); 120Assert.Equal(contentBytes, responseBytes);
Microsoft.AspNetCore.WebSockets.Tests (10)
SendReceiveTests.cs (2)
57Assert.Equal(sendBuffer, receiveBuffer.Take(result.Count).ToArray()); 72Assert.Equal(sendBuffer, receiveBuffer.Take(result.Count).ToArray());
WebSocketMiddlewareTests.cs (8)
100Assert.Equal(originalData, serverBuffer); 125Assert.Equal(originalData, serverBuffer); 151Assert.Equal(originalData, serverBuffer); 200Assert.Equal(originalData, serverBuffer); 237Assert.Equal(originalData, clientBuffer); 262Assert.Equal(originalData, clientBuffer); 295Assert.Equal(originalData, clientBuffer); 338Assert.Equal(originalData, clientBuffer);
Microsoft.AspNetCore.WebUtilities.Tests (49)
FileBufferingReadStreamTests.cs (14)
479Assert.Equal(data, withoutBufferMs.ToArray()); 481Assert.Equal(data, withBufferMs.ToArray()); 503Assert.Equal(data, withoutBufferMs.ToArray()); 505Assert.Equal(data, withBufferMs.ToArray()); 522Assert.Equal(data.AsMemory(0, 100).ToArray(), buffer); 523Assert.Equal(data.AsMemory(100).ToArray(), withoutBufferMs.ToArray()); 540Assert.Equal(data.AsMemory(0, read).ToArray(), buffer); 541Assert.Equal(data.AsMemory(read).ToArray(), withoutBufferMs.ToArray()); 559Assert.Equal(data.AsMemory(0, read).ToArray(), buffer); 560Assert.Equal(data.ToArray(), withoutBufferMs.ToArray()); 579Assert.Equal(data.AsMemory(0, read1).ToArray(), buffer); 580Assert.Equal(data.AsMemory(0, read2).ToArray(), buffer2.AsMemory(0, read2).ToArray()); 599Assert.Equal(data.AsMemory(0, read1).ToArray(), buffer); 600Assert.Equal(data.AsMemory(0, read2).ToArray(), buffer2.AsMemory(0, read2).ToArray());
FileBufferingWriteStreamTests.cs (14)
34Assert.Equal(input, ReadBufferedContent(pagedByteBuffer)); 61Assert.Equal(input, ReadBufferedContent(pageBuffer)); 82Assert.Equal(input, fileBytes); 105Assert.Equal(input, fileBytes); 129Assert.Equal(new byte[] { 1, 2, 3, 4, 5, }, fileBytes); 131Assert.Equal(new byte[] { 6, 7 }, ReadBufferedContent(pageBuffer)); 147Assert.Equal(input, ReadBufferedContent(pagedByteBuffer)); 172Assert.Equal(input, ReadBufferedContent(pageBuffer)); 193Assert.Equal(input, fileBytes); 216Assert.Equal(input, fileBytes); 243Assert.Equal(new byte[] { 1, 2, 3, 4, 5, }, fileBytes); 244Assert.Equal(new byte[] { 6, 7 }, ReadBufferedContent(pageBuffer)); 348Assert.Equal(input, memoryStream.ToArray()); 365Assert.Equal(input, memoryStream.ToArray());
FormPipeReaderTests.cs (5)
114Assert.Equal(Encoding.UTF8.GetBytes(content), readResult.Buffer.ToArray()); 129Assert.Equal(Encoding.UTF8.GetBytes(content), readResult.Buffer.ToArray()); 157Assert.Equal(Encoding.UTF8.GetBytes(content), readResult.Buffer.ToArray()); 185Assert.Equal(Encoding.UTF8.GetBytes(content), readResult.Buffer.ToArray()); 210Assert.Equal(Encoding.UTF8.GetBytes("baz=12345678901"), readResult.Buffer.ToArray());
HttpResponseStreamWriterTest.cs (4)
30Assert.Equal(expectedData, memoryStream.ToArray()); 640Assert.Equal(expectedBytes, stream.ToArray()); 675Assert.Equal(expectedBytes, stream.ToArray()); 703Assert.Equal(expectedBytes, stream.ToArray());
PagedByteBufferTest.cs (12)
25Assert.Equal(input, ReadBufferedContent(buffer)); 43Assert.Equal(Enumerable.Concat(input1, input2).ToArray(), ReadBufferedContent(buffer)); 59Assert.Equal(new byte[] { 2, 3, 4 }, ReadBufferedContent(buffer)); 77Assert.Equal(Enumerable.Concat(input1, input2).ToArray(), ReadBufferedContent(buffer)); 93Assert.Equal(input.ToArray(), ReadBufferedContent(buffer)); 109Assert.Equal(input, stream.ToArray()); 118Assert.Equal(newInput, stream.ToArray()); 134Assert.Equal(input, stream.ToArray()); 142Assert.Equal(newInput, stream.ToArray()); 158Assert.Equal(input, stream.ToArray()); 185Assert.Equal(input, memoryStream.ToArray()); 210Assert.Equal(input, memoryStream.ToArray());
Microsoft.Build.Engine.UnitTests (1)
BuildEventArgsSerialization_Tests.cs (1)
51Assert.Equal(bytes, binaryReader.ReadBytes(bytes.Length));
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
6062Assert.Equal(Array.Empty<byte>(), assemblyName.GetPublicKeyToken());
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Emit\DeterministicTests.cs (1)
505Assert.Equal(result, newResult);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (14)
Attributes\AttributeTests_Assembly.cs (14)
605Assert.Equal(new byte[] { 0x6C, 0x9C, 0x3E, 0xDA, 0x60, 0x0F, 0x81, 0x93, 0x4A, 0xC1, 0x0D, 0x41, 0xB3, 0xE9, 0xB2, 0xB7, 0x2D, 0xEE, 0x59, 0xA8 }, 609Assert.Equal(new byte[] { 0x7F, 0x28, 0xEA, 0xD1, 0xF4, 0xA1, 0x7C, 0xB8, 0x0C, 0x14, 0xC0, 0x2E, 0x8C, 0xFF, 0x10, 0xEC, 0xB3, 0xC2, 0xA5, 0x1D }, 636Assert.Equal(new byte[] { 0x6C, 0x9C, 0x3E, 0xDA, 0x60, 0x0F, 0x81, 0x93, 0x4A, 0xC1, 0x0D, 0x41, 0xB3, 0xE9, 0xB2, 0xB7, 0x2D, 0xEE, 0x59, 0xA8 }, 640Assert.Equal(new byte[] { 0x7F, 0x28, 0xEA, 0xD1, 0xF4, 0xA1, 0x7C, 0xB8, 0x0C, 0x14, 0xC0, 0x2E, 0x8C, 0xFF, 0x10, 0xEC, 0xB3, 0xC2, 0xA5, 0x1D }, 666Assert.Equal(new byte[] { 0x24, 0x22, 0x03, 0xC3, 0x94, 0xD5, 0xC2, 0xD9, 0x99, 0xB3, 0x6D, 0x59, 0xB2, 0xCA, 0x23, 0xBC }, 670Assert.Equal(new byte[] { 0x8D, 0xFE, 0xBF, 0x49, 0x8D, 0x62, 0x2A, 0x88, 0x89, 0xD1, 0x0E, 0x00, 0x9E, 0x29, 0x72, 0xF1 }, 696Assert.Equal(new byte[] { 0x6C, 0x9C, 0x3E, 0xDA, 0x60, 0x0F, 0x81, 0x93, 0x4A, 0xC1, 0x0D, 0x41, 0xB3, 0xE9, 0xB2, 0xB7, 0x2D, 0xEE, 0x59, 0xA8 }, 700Assert.Equal(new byte[] { 0x7F, 0x28, 0xEA, 0xD1, 0xF4, 0xA1, 0x7C, 0xB8, 0x0C, 0x14, 0xC0, 0x2E, 0x8C, 0xFF, 0x10, 0xEC, 0xB3, 0xC2, 0xA5, 0x1D }, 724Assert.Equal(new byte[] { 0xA2, 0x32, 0x3F, 0x0D, 0xF4, 0xB8, 0xED, 0x5A, 0x1B, 0x7B, 0xBE, 0x14, 0x4F, 0xEC, 0xBF, 0x88, 0x23, 0x61, 0xEB, 0x40, 0xF7, 0xF9, 0x46, 0xEF, 0x68, 0x3B, 0x70, 0x29, 0xCF, 0x12, 0x05, 0x35 }, 728Assert.Equal(new byte[] { 0xCC, 0xAE, 0xA0, 0xB4, 0x9E, 0xAE, 0x28, 0xE0, 0xA3, 0x46, 0xE9, 0xCF, 0xF3, 0xEF, 0xEA, 0xF7, 753Assert.Equal(new byte[] { 0xB6, 0x35, 0x9B, 0xBE, 0x82, 0x89, 0xFF, 0x01, 0x22, 0x8B, 0x56, 0x5E, 0x9B, 0x15, 0x5D, 0x10, 759Assert.Equal(new byte[] { 0x45, 0x05, 0x2E, 0x90, 0x9B, 0x61, 0xA3, 0xF8, 0x60, 0xD2, 0x86, 0xCB, 0x10, 0x33, 0xC9, 0x86, 786Assert.Equal(new byte[] { 0x5F, 0x4D, 0x7E, 0x63, 0xC9, 0x87, 0xD9, 0xEB, 0x4F, 0x5C, 0xFD, 0x96, 0x3F, 0x25, 0x58, 0x74, 793Assert.Equal(new byte[] { 0x79, 0xFE, 0x97, 0xAB, 0x08, 0x8E, 0xDF, 0x74, 0xC2, 0xEF, 0x84, 0xBB, 0xFC, 0x74, 0xAC, 0x60,
Microsoft.CodeAnalysis.Rebuild.UnitTests (2)
RoundTripUtil.cs (2)
59Assert.Equal(peStream.ToArray(), rebuildPeStream.ToArray()); 60Assert.Equal(pdbStream?.ToArray(), rebuildPdbStream?.ToArray());
Microsoft.CodeAnalysis.Test.Utilities (1)
EncodingTestHelpers.cs (1)
56Assert.Equal(expected.GetPreamble(), actual.GetPreamble());
Microsoft.CodeAnalysis.UnitTests (8)
Collections\ImmutableDictionaryBuilderTestBase.cs (1)
183Assert.Equal(new[] { 1 }, dictionary.Values.Cast<int>().ToArray());
Collections\ImmutableDictionaryTestBase.cs (1)
179Assert.Equal(new[] { 3 }, dictionary.Values.Cast<int>().ToArray());
Collections\ImmutableListTestBase.cs (1)
104Assert.Equal(new[] { 0, 0, 2 }, array);
Collections\ImmutableSegmentedListBuilderTest.cs (1)
323Assert.Equal(new[] { 9, 8 }, list.Cast<int>().ToArray());
InternalUtilities\StreamExtensionsTests.cs (2)
40Assert.Equal(sourceArray, destArray); 123Assert.Equal(expected, destArray);
MetadataReferences\FusionAssemblyIdentityTests.cs (2)
63Assert.Equal(name.GetPublicKeyToken(), rtName.GetPublicKeyToken()); 76Assert.Equal(name.GetPublicKeyToken(), rtName.GetPublicKeyToken());
Microsoft.DotNet.XUnitAssert.Tests (3)
CollectionAssertsTests.cs (2)
801 var ex = Record.Exception(() => Assert.Equal(expected, actual)); 869 var ex = Record.Exception(() => Assert.Equal(expected, actual));
EqualityAssertsTests.cs (1)
1018 assertFailure(() => Assert.Equal(expected, actual));
Microsoft.Extensions.Caching.SqlServer.Tests (6)
SqlServerCacheWithDatabaseTest.cs (6)
109Assert.Equal(expectedValue, cacheItem.Value); 149Assert.Equal(expectedValue, cacheItem.Value); 190Assert.Equal(expectedValue, cacheItem.Value); 589Assert.Equal(expectedValue, value); 664Assert.Equal(expectedValue, value); 719Assert.Equal(expectedValue, value);
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (19)
RedisCacheSetAndRemoveTests.cs (5)
39Assert.Equal(value, result); 53Assert.Equal(value, result); 68Assert.Equal(value1, result); 73Assert.Equal(value2, result); 85Assert.Equal(value, result);
TimeExpirationAsyncTests.cs (7)
65Assert.Equal(value, result); 131Assert.Equal(value, result); 193Assert.Equal(value, result); 224Assert.Equal(value, result); 231Assert.Equal(value, result); 252Assert.Equal(value, result); 260Assert.Equal(value, result);
TimeExpirationTests.cs (7)
48Assert.Equal(value, result); 115Assert.Equal(value, result); 178Assert.Equal(value, result); 209Assert.Equal(value, result); 216Assert.Equal(value, result); 237Assert.Equal(value, result); 245Assert.Equal(value, result);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
ResourceMonitoringServiceTests.cs (1)
586Assert.Equal(expectedCpuValues, cpuValuesWithNoHighSpikes);
Microsoft.Extensions.TimeProvider.Testing.Tests (2)
TimerTests.cs (2)
311Assert.Equal(new[] { timeProvider.Start }, value1); 312Assert.Equal(new[]
Microsoft.JSInterop.Tests (4)
Infrastructure\ByteArrayJsonConverterTest.cs (3)
79Assert.Equal(expected, deserialized); 108Assert.Equal(byteArray, deserialized); 191Assert.Equal(byteArray, deserialized);
Infrastructure\DotNetDispatcherTest.cs (1)
427Assert.Equal(new[] { 1, 2, 3 }, task.Result);
Microsoft.ML.Core.Tests (2)
UnitTests\TestVBuffer.cs (2)
291Assert.Equal(expectedIndices, a.GetIndices().ToArray()); 317Assert.Equal(values, a.GetValues().ToArray());
Microsoft.ML.OnnxTransformerTest (2)
OnnxTransformTests.cs (2)
946Assert.Equal(transformedDataPoints[i].argmax, expectedResults[i]); 1110Assert.Equal(transformedDataPoints[i].argmax, expectedResults[i]);
Microsoft.ML.TensorFlow.Tests (1)
TensorflowTests.cs (1)
1047Assert.Equal(buffer.DenseValues().ToArray(),
Microsoft.ML.Tests (20)
ImagesTests.cs (6)
1244Assert.Equal(image1.Pixels.ToArray(), image2.Pixels.ToArray()); 1258Assert.Equal(image1.Pixels.ToArray(), image3.Pixels.ToArray()); 1339Assert.Equal(image1.Pixels.ToArray(), image2.Pixels.ToArray()); 1346Assert.Equal(image1.Pixels.ToArray(), image2.Pixels.ToArray()); 1348Assert.Equal(image1.Pixels.ToArray(), image2.Pixels.ToArray()); 1373Assert.Equal(image1.Pixels.ToArray(), image2.Pixels.ToArray());
Scenarios\WordBagTest.cs (2)
41Assert.Equal(prediction.Text, new float[] { 47Assert.Equal(prediction.Text2, new float[] { 2, 2, 2, 2, 2, 2, 1, 1 });
TrainerEstimators\TreeEstimators.cs (4)
830Assert.Equal(row.CategoricalSplitFeatures, tree.GetCategoricalSplitFeaturesAt(nodeId).ToArray()); 834Assert.Equal(row.CategoricalCategoricalSplitFeatureRange, tree.GetCategoricalCategoricalSplitFeatureRangeAt(nodeId).ToArray()); 859Assert.Equal(row.LeafSamples, tree.GetLeafSamplesAt(nodeId).ToArray()); 863Assert.Equal(row.LeafSampleWeights, tree.GetLeafSampleWeightsAt(nodeId).ToArray());
Transformers\LineParserTests.cs (1)
39Assert.Equal(expectedValues, result.values);
Transformers\TextFeaturizerTests.cs (4)
129Assert.Equal(expected[0], transformed[0]); 130Assert.Equal(expected[1], transformed[1]); 171Assert.Equal(expected[0], transformed[0]); 172Assert.Equal(expected[1], transformed[1]);
Transformers\WordBagTransformerTests.cs (3)
48Assert.Equal(expected, ((VBuffer<float>)pred.ColumnView[4].Values[0]).DenseValues().ToArray()); 76Assert.Equal(expected, ((VBuffer<float>)pred.ColumnView[4].Values[0]).DenseValues().ToArray()); 116Assert.Equal(((VBuffer<float>)predDefault.ColumnView[4].Values[0]).DenseValues().ToArray(), ((VBuffer<float>)predNonDefault.ColumnView[4].Values[0]).DenseValues().ToArray());
Microsoft.ML.TimeSeries.Tests (4)
TimeSeriesDirectApi.cs (4)
467Assert.Equal(new float[] { -1.02245092f, 0.08333033f, 2.6073704f, 5.397318f, 7.5008316f, -5.1881413f, -4.82533741f, 485Assert.Equal(new float[] { 4.310586f, 6.397167f, 7.73934f, 8.029469f, 0.14489543f, 512Assert.Equal(new float[] { 6.006588f, 7.506871f, 7.964249f, 7.1751432f, 523Assert.Equal(result.Forecast, resultCopy.Forecast);
Microsoft.ML.Tokenizers.Tests (50)
BertTokenizerTests.cs (10)
387Assert.Equal(new int[] { bertTokenizer.ClassificationTokenId, bertTokenizer.ClassificationTokenId, 8, 6, 10, 11, 12, 7, bertTokenizer.SeparatorTokenId, bertTokenizer.SeparatorTokenId }, ids1Span.ToArray()); 402Assert.Equal( 425Assert.Equal( 442Assert.Equal( 487Assert.Equal(new int[] { 1, 0, 0, 0, 0, 0, 0, 1 }, ids1Span.ToArray()); 502Assert.Equal(new int[] { 1, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1 }, ids1Span.ToArray()); 522Assert.Equal(new int[] { 1, 0, 0, 0, 0, 0, 0, 1 }, ids1Span.ToArray()); 537Assert.Equal(new int[] { 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 }, ids1Span.ToArray()); 580Assert.Equal(new int[] { 0, 0, 0, 0, 0, 0, 0, 0 }, ids1Span.ToArray()); 595Assert.Equal(new int[] { 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1 }, ids1Span.ToArray());
BpeTests.cs (4)
433Assert.Equal(expectedOffsets, encoding.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 434Assert.Equal(expectedIds, encoding.Select(t => t.Id).ToArray()); 437Assert.Equal(expectedOffsets, encoding1.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 438Assert.Equal(expectedIds, encoding1.Select(t => t.Id).ToArray());
CodeGenTests.cs (16)
236Assert.Equal(expectedIdsWithSpace, encoding.Select(t => t.Id).ToArray()); 238Assert.Equal(expectedOffsetsWithSpace, encoding.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 242Assert.Equal(expectedIds, encoding.Select(t => t.Id).ToArray()); 244Assert.Equal(expectedOffsets, encoding.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 590Assert.Equal(expectedIds, encoding.Select(t => t.Id).ToArray()); 595Assert.Equal(expectedIds, encoding.Select(t => t.Id).ToArray()); 600Assert.Equal(expectedIdsWithSpace, encoding.Select(t => t.Id).ToArray()); 605Assert.Equal(expectedIdsWithSpace, encoding.Select(t => t.Id).ToArray()); 723Assert.Equal(expectedIds, encoding.Select(t => t.Id).ToArray()); 728Assert.Equal(expectedIds, encoding.Select(t => t.Id).ToArray()); 733Assert.Equal(expectedIdsWithSpace, encoding.Select(t => t.Id).ToArray()); 738Assert.Equal(expectedIdsWithSpace, encoding.Select(t => t.Id).ToArray()); 866Assert.Equal(expectedIds, encoding.Select(t => t.Id).ToArray()); 872Assert.Equal(expectedIds, encoding.Select(t => t.Id).ToArray()); 878Assert.Equal(expectedIdsWithSpace, encoding.Select(t => t.Id).ToArray()); 884Assert.Equal(expectedIdsWithSpace, encoding.Select(t => t.Id).ToArray());
EnglishRobertaTests.cs (4)
185Assert.Equal(expectedOffsets, encoding.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 186Assert.Equal(expectedIds, encoding.Select(t => t.Id).ToArray()); 189Assert.Equal(expectedOffsets, encoding1.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 190Assert.Equal(expectedIds, encoding1.Select(t => t.Id).ToArray());
LlamaTests.cs (9)
245Assert.Equal(ids, result.Select(t => t.Id).ToArray()); 247Assert.Equal(offsets, result.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 504Assert.Equal(expectedOffsets, encoding.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 505Assert.Equal(expectedIds, encoding.Select(t => t.Id).ToArray()); 508Assert.Equal(expectedOffsets, encoding1.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 509Assert.Equal(expectedIds, encoding1.Select(t => t.Id).ToArray()); 542Assert.Equal(expectedOffsets1, encoding.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 543Assert.Equal(expectedIds1, encoding.Select(t => t.Id).ToArray()); 666Assert.Equal(new[] { tokenizer.BeginningOfSentenceId, kvp.Value }, encodedTokens.Select(et => et.Id).ToArray());
PreTokenizerTests.cs (1)
61Assert.Equal(splits, splitParts);
TiktokenTests.cs (6)
572Assert.Equal(expectedOffsets, encoding.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 573Assert.Equal(expectedIds, encoding.Select(t => t.Id).ToArray()); 576Assert.Equal(expectedOffsets, encoding1.Select(t => (t.Offset.Start.Value, t.Offset.End.Value - t.Offset.Start.Value)).ToArray()); 577Assert.Equal(expectedIds, encoding1.Select(t => t.Id).ToArray()); 687Assert.Equal(expectedIds, ids); 688Assert.Equal(expectedOffsets, offsets);
Sockets.FunctionalTests (1)
src\Servers\Kestrel\test\FunctionalTests\UnixDomainSocketsTests.cs (1)
116Assert.Equal(data, buffer);
System.Drawing.Common.Tests (135)
DrawingTest.cs (1)
26Assert.Equal(expectedHash, hash);
mono\System.Drawing\BitmapTests.cs (24)
558Assert.Equal(s_defaultBitmapHash, HashPixels(bmp)); 564Assert.Equal(expected, actual); 565Assert.Equal(s_finalWholeBitmapHash, HashPixels(bmp)); 572Assert.Equal(s_defaultBitmapHash, HashPixels(bmp)); 577Assert.Equal(expected, actual); 578Assert.Equal(s_finalWholeBitmapHash, HashPixels(bmp)); 585Assert.Equal(s_defaultBitmapHash, HashPixels(bmp)); 590Assert.Equal(expected, actual); 591Assert.Equal(s_finalWholeBitmapHash, HashPixels(bmp)); 598Assert.Equal(s_defaultBitmapHash, HashPixels(bmp)); 603Assert.Equal(expected, actual); 604Assert.Equal(s_finalWholeBitmapHash, HashPixels(bmp)); 614Assert.Equal(s_defaultBitmapHash, HashPixels(bmp)); 619Assert.Equal(expected, actual); 620Assert.Equal(s_finalPartialBitmapHash, HashPixels(bmp)); 627Assert.Equal(s_defaultBitmapHash, HashPixels(bmp)); 632Assert.Equal(expected, actual); 633Assert.Equal(s_finalPartialBitmapHash, HashPixels(bmp)); 640Assert.Equal(s_defaultBitmapHash, HashPixels(bmp)); 645Assert.Equal(expected, actual); 646Assert.Equal(s_finalPartialBitmapHash, HashPixels(bmp)); 653Assert.Equal(s_defaultBitmapHash, HashPixels(bmp)); 658Assert.Equal(expected, actual); 659Assert.Equal(s_finalPartialBitmapHash, HashPixels(bmp));
System\Drawing\Drawing2D\BlendTests.cs (6)
12Assert.Equal(new float[1], blend.Factors); 13Assert.Equal(new float[1], blend.Positions); 22Assert.Equal(new float[count], blend.Factors); 23Assert.Equal(new float[count], blend.Positions); 45Assert.Equal(new float[10], blend.Factors); 55Assert.Equal(new float[10], blend.Positions);
System\Drawing\Drawing2D\ColorBlendTests.cs (3)
13Assert.Equal(new float[1], blend.Positions); 23Assert.Equal(new float[count], blend.Positions); 55Assert.Equal(new float[10], blend.Positions);
System\Drawing\Drawing2D\GraphicsPathIteratorTests.cs (2)
248Assert.Equal(gp.PathPoints, actualPoints); 249Assert.Equal(gp.PathTypes, actualTypes);
System\Drawing\Drawing2D\GraphicsPathTests.cs (29)
235Assert.Equal(new byte[] { 0, 1, 1 }, gpi.PathTypes); 239Assert.Equal(new byte[] { 0, 1, 1, 1 }, gpi.PathTypes); 244Assert.Equal(new byte[] { 0, 1, 1 }, gpf.PathTypes); 248Assert.Equal(new byte[] { 0, 1, 1, 1 }, gpf.PathTypes); 293Assert.Equal(new byte[] { 0, 1 }, gpi.PathTypes); 297Assert.Equal(new byte[] { 0, 1, 1 }, gpi.PathTypes); 301Assert.Equal(new byte[] { 0, 1, 1, 1 }, gpi.PathTypes); 305Assert.Equal(new byte[] { 0, 1, 1, 1 }, gpf.PathTypes); 309Assert.Equal(new byte[] { 0, 1, 1, 1, 1, 1, 1 }, gpf.PathTypes); 384Assert.Equal(new byte[] { 0, 3, 3, 3 }, gp.PathTypes); 388Assert.Equal(new byte[] { 0, 3, 3, 3, 3, 3, 3 }, gp.PathTypes); 392Assert.Equal(new byte[] { 0, 3, 3, 3 }, gpf.PathTypes); 396Assert.Equal(new byte[] { 0, 3, 3, 3, 3, 3, 3 }, gpf.PathTypes); 720Assert.Equal(new byte[] { 0, 1, 1, 129 }, gpi.PathTypes); 726Assert.Equal(new byte[] { 0, 1, 1, 129, 0, 1, 1, 129 }, gpi.PathTypes); 730Assert.Equal(new byte[] { 0, 1, 1, 129 }, gpf.PathTypes); 737Assert.Equal(new byte[] { 0, 1, 1, 129, 0, 1, 1, 129 }, gpf.PathTypes); 904Assert.Equal(new byte[] { 0, 1, 129 }, gpi.PathTypes); 908Assert.Equal(new byte[] { 0, 1, 129, 0, 1, 129 }, gpi.PathTypes); 912Assert.Equal(new byte[] { 0, 1, 129, 0, 1, 129, 0, 1, 129 }, gpi.PathTypes); 916Assert.Equal(new byte[] { 0, 1, 129, 0, 1, 129, 0, 1, 129, 0, 1, 129 }, gpi.PathTypes); 920Assert.Equal(new byte[] { 0, 1, 129 }, gpf.PathTypes); 924Assert.Equal(new byte[] { 0, 1, 129, 0, 1, 129 }, gpf.PathTypes); 928Assert.Equal(new byte[] { 0, 1, 129, 0, 1, 129, 0, 1, 129 }, gpf.PathTypes); 932Assert.Equal(new byte[] { 0, 1, 129, 0, 1, 129, 0, 1, 129, 0, 1, 129 }, gpf.PathTypes); 1095Assert.Equal(new byte[] { 0, 1, 1, 129 }, gp.PathTypes); 2059Assert.Equal(expectedTypes, actualTypes); 2227Assert.Equal(expectedTypes, path.PathTypes); 2342Assert.Equal(expectedTypes, gp.PathTypes);
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (8)
239Assert.Equal(brush.Blend.Factors, clone.Blend.Factors); 288Assert.Equal(blend.Factors, brush.Blend.Factors); 384Assert.Equal(blend.Positions, brush.InterpolationColors.Positions); 405Assert.Equal(blend.Positions, brush.InterpolationColors.Positions); 937Assert.Equal(expectedFactors, brush.Blend.Factors); 938Assert.Equal(expectedPositions, brush.Blend.Positions); 951Assert.Equal(expectedFactors, brush.Blend.Factors); 952Assert.Equal(expectedPositions, brush.Blend.Positions);
System\Drawing\Drawing2D\MatrixTests.cs (9)
108Assert.Equal(expectedElements, matrix.Elements); 120Assert.Equal(expectedElements, matrix.Elements); 245Assert.Equal(expectedElements, matrix.Elements); 329Assert.Equal(expected, matrix.Elements); 551Assert.Equal(expectedElements, matrix.Elements); 617Assert.Equal(expectedElements, matrix.Elements); 710Assert.Equal(expectedPoints, points); 765Assert.Equal(expectedPoints, points); 788Assert.Equal(expectedPoints, points);
System\Drawing\Drawing2D\PathGradientBrushTests.cs (6)
258Assert.Equal(factors, brush.Blend.Factors); 262Assert.Equal(factors, brush.Blend.Factors); 263Assert.Equal(positions, brush.Blend.Positions); 267Assert.Equal(factors, brush.Blend.Factors); 535Assert.Equal(expectedPositions, brush.InterpolationColors.Positions); 539Assert.Equal(expectedPositions, brush.InterpolationColors.Positions);
System\Drawing\GraphicsTests.cs (2)
1746Assert.Equal(expected, points); 1811Assert.Equal(expected, points);
System\Drawing\IconConverterTests.cs (4)
139Assert.Equal(_iconBytes, newIconBytes); 142Assert.Equal(_iconBytes, newIconBytes); 156Assert.Equal(_iconBytes, newIconBytes); 159Assert.Equal(_iconBytes, newIconBytes);
System\Drawing\IconTests.cs (2)
435Assert.Equal(File.ReadAllBytes(filePath), outputStream.ToArray()); 446Assert.Equal(File.ReadAllBytes(filePath), outputStream.ToArray());
System\Drawing\ImageConverterTests.cs (3)
176Assert.Equal(_imageBytes, newImageBytes); 179Assert.Equal(_imageBytes, newImageBytes); 182Assert.Equal(_imageBytes, newImageBytes);
System\Drawing\ImageTests.cs (8)
49Assert.Equal(new byte[] 63Assert.Equal(new byte[] 305Assert.Equal(new byte[] 319Assert.Equal(new byte[] 348Assert.Equal(new byte[] 362Assert.Equal(new byte[] 391Assert.Equal(new byte[] 405Assert.Equal(new byte[]
System\Drawing\Imaging\PropertyItemTests.cs (2)
82Assert.Equal(new byte[1] { 0 }, propItem.Value); 92Assert.Equal(value, propItem.Value);
System\Drawing\PenTests.cs (3)
313Assert.Equal(compoundArray, pen.CompoundArray); 537Assert.Equal(pattern, pen.DashPattern); 604Assert.Equal(expectedDashPattern, pen.DashPattern);
System\Drawing\RegionTests.cs (22)
96Assert.Equal(region.GetRegionScans(matrix), otherRegion.GetRegionScans(matrix)); 268Assert.Equal(region.GetRegionScans(matrix), clone.GetRegionScans(matrix)); 348Assert.Equal(expectedScans, region.GetRegionScans(matrix)); 434Assert.Equal(expectedScans, region.GetRegionScans(matrix)); 450Assert.Equal(expectedScans, region.GetRegionScans(matrix)); 468Assert.Equal(expectedScans, region.GetRegionScans(matrix)); 784Assert.Equal(expectedScans, region.GetRegionScans(matrix)); 841Assert.Equal(expectedScans, region.GetRegionScans(matrix)); 857Assert.Equal(expectedScans, region.GetRegionScans(matrix)); 875Assert.Equal(expectedScans, region.GetRegionScans(matrix)); 1127Assert.Equal(expectedScans, region.GetRegionScans(matrix)); 1174Assert.Equal(expectedScans, region.GetRegionScans(matrix)); 1202Assert.Equal(expectedScans, region.GetRegionScans(matrix)); 1232Assert.Equal(expectedScans, region.GetRegionScans(matrix)); 1689Assert.Equal(expectedScans, region.GetRegionScans(matrix)); 1737Assert.Equal(expectedScans, region.GetRegionScans(matrix)); 1753Assert.Equal(expectedScans, region.GetRegionScans(matrix)); 1771Assert.Equal(expectedScans, region.GetRegionScans(matrix)); 2041Assert.Equal(expectedScans, region.GetRegionScans(matrix)); 2095Assert.Equal(expectedScans, region.GetRegionScans(matrix)); 2111Assert.Equal(expectedScans, region.GetRegionScans(matrix)); 2129Assert.Equal(expectedScans, region.GetRegionScans(matrix));
System\Drawing\StringFormatTests.cs (1)
155Assert.Equal(tabStops, format.GetTabStops(out float actualFirstTabOffset));
System.Private.Windows.Core.Tests (2)
System\Value\StoringArrays.cs (2)
17Assert.Equal(b, (byte[])value.GetValue<object>()); 31Assert.Equal(b, (char[])value.GetValue<object>());
System.ServiceModel.Primitives.Tests (2)
IdentityModel\SymmetricSecurityKeyTest.cs (1)
19Assert.Equal(gsk, mgsakey.GetSymmetricKey());
Security\securityKeyTest.cs (1)
26Assert.Equal(keyData, msk.EncryptKey(algorithm, keyData));
System.Windows.Forms.Design.Tests (4)
System\ComponentModel\Design\ArrayEditorTests.cs (1)
185Assert.Equal(expected, result);
System\ComponentModel\Design\ByteViewerTests.cs (3)
599Assert.Equal(new byte[] { 1, 2, 3 }, File.ReadAllBytes(path)); 862Assert.Equal(new byte[] { 1, 2, 3 }, control.GetBytes()); 873Assert.Equal(new byte[] { 1, 2, 3 }, control.GetBytes());
System.Windows.Forms.Primitives.Tests (1)
Interop\ComCtl32\LVITEMWTests.cs (1)
88Assert.Equal(sText.ToArray(), new char[] { '0', '1', '2', '3', '4', '5', '\0' });
System.Windows.Forms.Primitives.TestUtilities (2)
Metafiles\Validators\ClippingValidator.cs (1)
14=> Assert.Equal(_clippingRectangles, state.ClipRegion);
Metafiles\Validators\Poly16Validator.cs (1)
37Assert.Equal(_points, poly->points.Transform<POINTS, Point>(p => p));
System.Windows.Forms.Tests (72)
System\Windows\Forms\AccessibleObjects\ListVIew.ListViewAccessibleObjectTests.cs (1)
62Assert.Equal(new int[] { (int)View.Details }, accessibleObject.GetMultiViewProviderSupportedViews());
System\Windows\Forms\AccessibleObjects\ListViewLabelEditAccessibleObjectTests.cs (1)
83Assert.Equal(new int[] { AccessibleObject.RuntimeIDFirstItem, PARAM.ToInt(labelEdit.Handle) }, accessibilityObject.RuntimeId);
System\Windows\Forms\AccessibleObjects\TreeViewLabelEditAccessibleObjectTests.cs (1)
82Assert.Equal(new int[] { AccessibleObject.RuntimeIDFirstItem, PARAM.ToInt(labelEdit.Handle) }, accessibilityObject.RuntimeId);
System\Windows\Forms\ColorDialogTests.cs (8)
19Assert.Equal(Enumerable.Repeat(0x00FFFFFF, 16).ToArray(), dialog.CustomColors); 43Assert.Equal(new int[16], dialog.CustomColors); 182Assert.Equal(value1, value2); 207Assert.Equal(expected, dialog.CustomColors); 213Assert.Equal(expected, dialog.CustomColors); 228Assert.Equal(expected, dialog.CustomColors); 234Assert.Equal(expected, dialog.CustomColors); 340Assert.Equal(Enumerable.Repeat(0x00FFFFFF, 16).ToArray(), dialog.CustomColors);
System\Windows\Forms\ColumnHeaderTests.cs (1)
222Assert.Equal(expectedDisplayIndices, result);
System\Windows\Forms\ListBoxTests.cs (7)
2660Assert.Equal(new int[] { 1, 0, 0, 0, 0 }, buffer.ToArray()); 2666Assert.Equal(new int[] { 0, 1, 0, 0, 0 }, buffer.ToArray()); 2672Assert.Equal(new int[] { 0, 1, 0, 0, 0 }, buffer.ToArray()); 3177Assert.Equal(new int[] { 1, 0, 0, 0, 0 }, buffer.ToArray()); 3184Assert.Equal(new int[] { 1, 0, 0, 0, 0 }, buffer.ToArray()); 3190Assert.Equal(new int[] { 0, 1, 0, 0, 0 }, buffer.ToArray()); 3196Assert.Equal(new int[] { 0, 1, 0, 0, 0 }, buffer.ToArray());
System\Windows\Forms\MonthCalendarTests.cs (24)
201Assert.Equal(expected, calendar.AnnuallyBoldedDates); 216Assert.Equal(expected, calendar.AnnuallyBoldedDates); 244Assert.Equal(expected, calendar.AnnuallyBoldedDates); 262Assert.Equal(expected, calendar.AnnuallyBoldedDates); 529Assert.Equal(expected, calendar.BoldedDates); 544Assert.Equal(expected, calendar.BoldedDates); 572Assert.Equal(expected, calendar.BoldedDates); 590Assert.Equal(expected, calendar.BoldedDates); 1555Assert.Equal(expected, calendar.MonthlyBoldedDates); 1570Assert.Equal(expected, calendar.MonthlyBoldedDates); 1598Assert.Equal(expected, calendar.MonthlyBoldedDates); 1616Assert.Equal(expected, calendar.MonthlyBoldedDates); 3014Assert.Equal(new DateTime[] { new(2019, 10, 3), new(2019, 10, 5), new(2019, 09, 5), new(2018, 09, 5), new(2018, 09, 5), DateTime.MinValue }, calendar.AnnuallyBoldedDates); 3019Assert.Equal(new DateTime[] { new(2019, 10, 3), new(2019, 10, 5), new(2019, 09, 5), new(2018, 09, 5), new(2018, 09, 5), DateTime.MinValue, DateTime.MaxValue }, calendar.AnnuallyBoldedDates); 3076Assert.Equal(new DateTime[] { new(2019, 10, 3), new(2019, 10, 5), new(2019, 09, 5), new(2018, 09, 5), new(2018, 09, 5), DateTime.MinValue }, calendar.AnnuallyBoldedDates); 3084Assert.Equal(new DateTime[] { new(2019, 10, 3), new(2019, 10, 5), new(2019, 09, 5), new(2018, 09, 5), new(2018, 09, 5), DateTime.MinValue, DateTime.MaxValue }, calendar.AnnuallyBoldedDates); 3121Assert.Equal(new DateTime[] { new(2019, 10, 3), new(2019, 10, 5), new(2019, 09, 5), new(2018, 09, 5), DateTime.MinValue }, calendar.BoldedDates); 3126Assert.Equal(new DateTime[] { new(2019, 10, 3), new(2019, 10, 5), new(2019, 09, 5), new(2018, 09, 5), DateTime.MinValue, DateTime.MaxValue }, calendar.BoldedDates); 3183Assert.Equal(new DateTime[] { new(2019, 10, 3), new(2019, 10, 5), new(2019, 09, 5), new(2018, 09, 5), DateTime.MinValue }, calendar.BoldedDates); 3191Assert.Equal(new DateTime[] { new(2019, 10, 3), new(2019, 10, 5), new(2019, 09, 5), new(2018, 09, 5), DateTime.MinValue, DateTime.MaxValue }, calendar.BoldedDates); 3228Assert.Equal(new DateTime[] { new(2019, 10, 3), new(2019, 10, 5), new(2019, 09, 5), new(2018, 09, 5), new(2018, 09, 5), DateTime.MinValue }, calendar.MonthlyBoldedDates); 3233Assert.Equal(new DateTime[] { new(2019, 10, 3), new(2019, 10, 5), new(2019, 09, 5), new(2018, 09, 5), new(2018, 09, 5), DateTime.MinValue, DateTime.MaxValue }, calendar.MonthlyBoldedDates); 3290Assert.Equal(new DateTime[] { new(2019, 10, 3), new(2019, 10, 5), new(2019, 09, 5), new(2018, 09, 5), new(2018, 09, 5), DateTime.MinValue }, calendar.MonthlyBoldedDates); 3298Assert.Equal(new DateTime[] { new(2019, 10, 3), new(2019, 10, 5), new(2019, 09, 5), new(2018, 09, 5), new(2018, 09, 5), DateTime.MinValue, DateTime.MaxValue }, calendar.MonthlyBoldedDates);
System\Windows\Forms\RichTextBoxTests.cs (7)
6240Assert.Equal(expected, control.SelectionTabs); 6278Assert.Equal(expected, control.SelectionTabs); 6284Assert.Equal(expected, control.SelectionTabs); 6303Assert.Equal(expected, control.SelectionTabs); 6312Assert.Equal(expected, control.SelectionTabs); 6348Assert.Equal(expected, control.SelectionTabs); 6357Assert.Equal(expected, control.SelectionTabs);
System\Windows\Forms\TableLayoutPanelTests.cs (22)
726Assert.Equal(new int[] { 0, 0, 200 }, panel.GetColumnWidths()); 963Assert.Equal(new int[] { 0, 100 }, control.GetRowHeights()); 980Assert.Equal(new int[] { 0, 80 }, control.GetRowHeights()); 983Assert.Equal(new int[] { 0, 80 }, control.GetRowHeights()); 986Assert.Equal(new int[] { 0, 80 }, control.GetRowHeights()); 1002Assert.Equal(new int[] { 10, 90 }, control.GetRowHeights()); 1005Assert.Equal(new int[] { 10, 90 }, control.GetRowHeights()); 1008Assert.Equal(new int[] { 10, 90 }, control.GetRowHeights()); 1025Assert.Equal(new int[] { 80, 0 }, control.GetRowHeights()); 1028Assert.Equal(new int[] { 32, 48 }, control.GetRowHeights()); 1031Assert.Equal(new int[] { 32, 48 }, control.GetRowHeights()); 1048Assert.Equal(new int[] { 80, 0 }, control.GetRowHeights()); 1051Assert.Equal(new int[] { -20, 100 }, control.GetRowHeights()); 1068Assert.Equal(new int[] { 80, 0 }, control.GetRowHeights()); 1071Assert.Equal(new int[] { 80, 0 }, control.GetRowHeights()); 1088Assert.Equal(new int[] { 50, 30 }, control.GetRowHeights()); 1091Assert.Equal(new int[] { 50, 30 }, control.GetRowHeights()); 1108Assert.Equal(new int[] { 100, 0 }, control.GetRowHeights()); 1111Assert.Equal(new int[] { 100, 100 }, control.GetRowHeights()); 1128Assert.Equal(new int[] { 0, 50 }, control.GetRowHeights()); 1131Assert.Equal(new int[] { 0, 50 }, control.GetRowHeights()); 1134Assert.Equal(new int[] { 0, 50 }, control.GetRowHeights());