593 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)
IISExpress.FunctionalTests (2)
InMemory.FunctionalTests (4)
Interop.FunctionalTests (2)
Microsoft.AspNetCore.Antiforgery.Test (1)
Microsoft.AspNetCore.Components.Server.Tests (3)
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);
Microsoft.AspNetCore.Components.WebAssembly.Tests (2)
Microsoft.AspNetCore.DataProtection.Tests (22)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (4)
Microsoft.AspNetCore.Http.Abstractions.Tests (2)
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)
Microsoft.AspNetCore.Http.Results.Tests (3)
Microsoft.AspNetCore.Identity.Test (3)
Microsoft.AspNetCore.Mvc.Core.Test (21)
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\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());
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
Microsoft.AspNetCore.Mvc.IntegrationTests (17)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (14)
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);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (15)
Microsoft.AspNetCore.OutputCaching.Tests (1)
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)
Microsoft.AspNetCore.ResponseCompression.Tests (4)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (12)
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());
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());
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (6)
Microsoft.AspNetCore.Shared.Tests (7)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (1)
Microsoft.AspNetCore.SignalR.Client.Tests (2)
Microsoft.AspNetCore.SignalR.Common.Tests (24)
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)
Microsoft.AspNetCore.SignalR.Tests (7)
Microsoft.AspNetCore.TestHost.Tests (2)
Microsoft.AspNetCore.WebSockets.Tests (10)
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());
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)
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.DotNet.XUnitAssert.Tests (3)
Microsoft.Extensions.AI.Abstractions.Tests (4)
Microsoft.Extensions.Caching.SqlServer.Tests (6)
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (19)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Microsoft.Extensions.TimeProvider.Testing.Tests (2)
Microsoft.JSInterop.Tests (4)
Sockets.FunctionalTests (1)
System.Drawing.Common.Tests (135)
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\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);
2222Assert.Equal(expectedTypes, path.PathTypes);
2337Assert.Equal(expectedTypes, gp.PathTypes);
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.Private.Windows.Core.Tests (2)
System.ServiceModel.Primitives.Tests (2)
System.Windows.Forms.Design.Tests (4)
System.Windows.Forms.Primitives.Tests (1)
System.Windows.Forms.Primitives.TestUtilities (2)
System.Windows.Forms.Tests (72)