84 references to Equal
Microsoft.AspNetCore.Authentication.Test (4)
JwtBearerTests.cs (2)
957Assert.Equal(token.ValidTo, dom.RootElement.GetProperty("expires").GetDateTimeOffset()); 958Assert.Equal(token.ValidFrom, dom.RootElement.GetProperty("issued").GetDateTimeOffset());
JwtBearerTests_Handler.cs (2)
901Assert.Equal(token.ValidTo, dom.RootElement.GetProperty("expires").GetDateTimeOffset()); 902Assert.Equal(token.ValidFrom, dom.RootElement.GetProperty("issued").GetDateTimeOffset());
Microsoft.AspNetCore.Components.Tests (2)
EventCallbackFactoryBinderExtensionsTest.cs (2)
476Assert.Equal(expectedValue, value); 515Assert.Equal(expectedValue, value);
Microsoft.AspNetCore.DataProtection.Extensions.Tests (3)
DataProtectionAdvancedExtensionsTests.cs (1)
93Assert.Equal(futureDate, testExpiration);
TimeLimitedDataProtectorTests.cs (2)
84Assert.Equal(expectedExpiration, actualExpiration); 167Assert.Equal(expectedExpiration, actualExpiration);
Microsoft.AspNetCore.DataProtection.Tests (21)
KeyManagement\DeferredKeyTests.cs (3)
38Assert.Equal(creationDate, key.CreationDate); 39Assert.Equal(activationDate, key.ActivationDate); 40Assert.Equal(expirationDate, key.ExpirationDate);
KeyManagement\KeyRingProviderTests.cs (3)
787Assert.Equal(createNewKeyCallbacksEnumerator.Current.Item1, activationDate); 788Assert.Equal(createNewKeyCallbacksEnumerator.Current.Item2, expirationDate); 801Assert.Equal(current.Item1, now);
KeyManagement\KeyTests.cs (3)
28Assert.Equal(creationDate, key.CreationDate); 29Assert.Equal(activationDate, key.ActivationDate); 30Assert.Equal(expirationDate, key.ExpirationDate);
KeyManagement\XmlKeyManagerTests.cs (12)
130Assert.Equal(creationDate, newKey.CreationDate); 131Assert.Equal(activationDate, newKey.ActivationDate); 132Assert.Equal(expirationDate, newKey.ExpirationDate); 228Assert.Equal(creationDate, newKey.CreationDate); 229Assert.Equal(activationDate, newKey.ActivationDate); 230Assert.Equal(expirationDate, newKey.ExpirationDate); 373Assert.Equal(XmlConvert.ToDateTimeOffset("2015-01-01T00:00:00Z"), keys[0].CreationDate); 374Assert.Equal(XmlConvert.ToDateTimeOffset("2015-02-01T00:00:00Z"), keys[0].ActivationDate); 375Assert.Equal(XmlConvert.ToDateTimeOffset("2015-03-01T00:00:00Z"), keys[0].ExpirationDate); 379Assert.Equal(XmlConvert.ToDateTimeOffset("2015-04-01T00:00:00Z"), keys[1].CreationDate); 380Assert.Equal(XmlConvert.ToDateTimeOffset("2015-05-01T00:00:00Z"), keys[1].ActivationDate); 381Assert.Equal(XmlConvert.ToDateTimeOffset("2015-06-01T00:00:00Z"), keys[1].ExpirationDate);
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (1)
ConverterTests\JsonConverterReadTests.cs (1)
408Assert.Equal(DateTimeOffset.UnixEpoch, timestamp.ToDateTimeOffset());
Microsoft.AspNetCore.HeaderParsing.Tests (3)
HeaderKeyTests.cs (2)
45Assert.Equal(default, valueTypeDefault.DefaultValue); 54Assert.Equal(_testHeaderDefaultValue, sut.DefaultValue);
HeaderParsingFeatureTests.cs (1)
145Assert.Equal(default, value);
Microsoft.AspNetCore.Http.Connections.Tests (1)
HttpConnectionDispatcherTests.cs (1)
3483Assert.Equal(DateTimeOffset.MaxValue, context.AuthenticationExpiration);
Microsoft.AspNetCore.OutputCaching.Tests (1)
OutputCacheEntryFormatterTests.cs (1)
167Assert.Equal(expected.Created, actual.Created);
Microsoft.AspNetCore.SignalR.Common.Tests (1)
Internal\Protocol\MessagePackHubProtocolTests.cs (1)
72Assert.Equal(dateTimeOffset, resultDateTimeOffset);
Microsoft.AspNetCore.StaticFiles.FunctionalTests (1)
StaticFileMiddlewareTests.cs (1)
113Assert.Equal(response.Content.Headers.LastModified.Value, trimmed);
Microsoft.AspNetCore.StaticFiles.Tests (1)
StaticFileMiddlewareTests.cs (1)
134Assert.Equal(response.Content.Headers.LastModified.Value, trimmed);
Microsoft.DotNet.XUnitAssert.Tests (5)
EqualityAssertsTests.cs (5)
1815 Assert.Equal(expected, actual); 1816 Assert.Equal(expected, actual); 1829 var ex = Record.Exception(() => Assert.Equal(expected, actual)); 1849 Assert.Equal(expected, actual); 1862 var ex = Record.Exception(() => Assert.Equal(expected, actual));
Microsoft.Extensions.Caching.SqlServer.Tests (5)
SqlServerCacheWithDatabaseTest.cs (5)
507Assert.Equal(expectedExpiresAtTime, cacheItemInfo.ExpiresAtTime); 533Assert.Equal(utcNow.AddSeconds(5), cacheItemInfo.ExpiresAtTime); 594Assert.Equal(expectedExpiresAtTime, cacheItemInfo.ExpiresAtTime); 624Assert.Equal(expectedExpiresAtTime, cacheItemInfo.ExpiresAtTime); 724Assert.Equal(expectedExpirationTime, cacheItemInfo.ExpiresAtTime);
Microsoft.Extensions.Diagnostics.Testing.Tests (15)
Logging\FakeLoggerTests.cs (4)
266Assert.Equal(start, records[0].Timestamp); 267Assert.Equal(start, records[1].Timestamp); 268Assert.Equal(start + TimeSpan.FromMilliseconds(1), records[2].Timestamp); 269Assert.Equal(start + TimeSpan.FromMilliseconds(1), records[3].Timestamp);
Metrics\MetricCollectorTests.cs (11)
67Assert.Equal(now, collector.LastMeasurement.Timestamp); 77Assert.Equal(timeProvider.GetUtcNow(), collector.LastMeasurement.Timestamp); 112Assert.Equal(now, collector.LastMeasurement.Timestamp); 122Assert.Equal(timeProvider.GetUtcNow(), collector.LastMeasurement.Timestamp); 159Assert.Equal(now, collector.LastMeasurement.Timestamp); 169Assert.Equal(timeProvider.GetUtcNow(), collector.LastMeasurement.Timestamp); 220Assert.Equal(now, collector.LastMeasurement.Timestamp); 230Assert.Equal(timeProvider.GetUtcNow(), collector.LastMeasurement.Timestamp); 404Assert.Equal(now, snap[0].Timestamp); 408Assert.Equal(now, snap[1].Timestamp); 412Assert.Equal(now, snap[2].Timestamp);
Microsoft.Extensions.TimeProvider.Testing.Tests (9)
FakeTimeProviderTests.cs (6)
39Assert.Equal(now, now2); 368Assert.Equal(timeProvider.Start, first); 369Assert.Equal(timeProvider.Start + TimeSpan.FromSeconds(1), second); 370Assert.Equal(timeProvider.Start + TimeSpan.FromSeconds(2), third); 380Assert.Equal(timeProvider.Start, timeProvider.GetUtcNow()); 394Assert.Equal(timeProvider.Start, timeProvider.GetUtcNow());
TimerTests.cs (3)
292Assert.Equal(timeProvider.Start, value1); 293Assert.Equal(timeProvider.Start + TimeSpan.FromMilliseconds(20), value2); 294Assert.Equal(timeProvider.Start + TimeSpan.FromMilliseconds(1000), value3);
Microsoft.Net.Http.Headers.Tests (2)
DateParserTest.cs (2)
15Assert.Equal(expected, result); 31Assert.Equal(new DateTimeOffset(), result);
System.Private.Windows.Core.Tests (9)
System\Value\StoringDateTimeOffset.cs (9)
21Assert.Equal(@DateTimeOffset, value.GetValue<DateTimeOffset>()); 37Assert.Equal(@DateTimeOffset, result); 39Assert.Equal(@DateTimeOffset, value.GetValue<DateTimeOffset>()); 40Assert.Equal(@DateTimeOffset, (DateTimeOffset)value); 52Assert.Equal(@DateTimeOffset, result); 54Assert.Equal(@DateTimeOffset, value.GetValue<DateTimeOffset>()); 56Assert.Equal(@DateTimeOffset, (DateTimeOffset)value); 89Assert.Equal(@DateTimeOffset, (DateTimeOffset)o); 95Assert.Equal(@DateTimeOffset, (DateTimeOffset)o);