259 references to MinValue
Aspire.Dashboard.Tests (22)
Model\SpanWaterfallViewModelTests.cs (7)
26var trace = new OtlpTrace(new byte[] { 1, 2, 3 }, DateTime.MinValue);
57var trace = new OtlpTrace(new byte[] { 1, 2, 3 }, DateTime.MinValue);
86var trace = new OtlpTrace(new byte[] { 1, 2, 3 }, DateTime.MinValue);
119var trace = new OtlpTrace(new byte[] { 1, 2, 3 }, DateTime.MinValue);
180var trace = new OtlpTrace(new byte[] { 1, 2, 3 }, DateTime.MinValue);
230var trace = new OtlpTrace(new byte[] { 1, 2, 3 }, DateTime.MinValue);
252var trace = new OtlpTrace(new byte[] { 1, 2, 3 }, DateTime.MinValue);
Model\TraceHelpersTests.cs (5)
20var trace = new OtlpTrace(new byte[] { 1, 2, 3 }, DateTime.MinValue);
42var trace = new OtlpTrace(new byte[] { 1, 2, 3 }, DateTime.MinValue);
69var trace = new OtlpTrace(new byte[] { 1, 2, 3 }, DateTime.MinValue);
97var trace = new OtlpTrace(new byte[] { 1, 2, 3 }, DateTime.MinValue);
131var trace = new OtlpTrace(new byte[] { 1, 2, 3 }, DateTime.MinValue);
TelemetryRepositoryTests\OtlpSpanTests.cs (4)
22var trace = new OtlpTrace(new byte[] { 1, 2, 3 }, DateTime.MinValue);
73var trace = new OtlpTrace(new byte[] { 1, 2, 3 }, DateTime.MinValue);
92var trace = new OtlpTrace(new byte[] { 1, 2, 3 }, DateTime.MinValue);
112var trace = new OtlpTrace(new byte[] { 1, 2, 3 }, DateTime.MinValue);
BinaryFormatTests (2)
dotnet-svcutil-lib (13)
Microsoft.Analyzers.Local (1)
Microsoft.Analyzers.Local.Tests (2)
Microsoft.AspNetCore.Authentication.JwtBearer (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (4)
Microsoft.AspNetCore.Authentication.Test (7)
OpenIdConnect\OpenIdConnectTests.cs (7)
412Assert.Equal(DateTime.MinValue + TimeSpan.FromHours(1), GetNonceExpirationTime(noncePrefix + DateTime.MinValue.Ticks.ToString(CultureInfo.InvariantCulture) + nonceDelimiter, TimeSpan.FromHours(1)));
416Assert.Equal(DateTime.MinValue, GetNonceExpirationTime(noncePrefix, TimeSpan.FromHours(1)));
418Assert.Equal(DateTime.MinValue, GetNonceExpirationTime("", TimeSpan.FromHours(1)));
420Assert.Equal(DateTime.MinValue, GetNonceExpirationTime(noncePrefix + noncePrefix, TimeSpan.FromHours(1)));
424Assert.Equal(DateTime.MinValue, GetNonceExpirationTime(utcNow.Ticks.ToString(CultureInfo.InvariantCulture) + nonceDelimiter + utcNow.Ticks.ToString(CultureInfo.InvariantCulture) + nonceDelimiter, TimeSpan.FromHours(1)));
575DateTime nonceTime = DateTime.MinValue;
Microsoft.AspNetCore.Authentication.WsFederation (2)
Microsoft.AspNetCore.Components (2)
Microsoft.Build.Framework (7)
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.Data.Analysis (1)
Microsoft.DotNet.SignCheckLibrary (4)
Microsoft.Extensions.AI.Abstractions.Tests (1)
Microsoft.Extensions.FileProviders.Physical (2)
Microsoft.Gen.Logging.Generated.Tests (1)
Microsoft.Maui.Resizetizer (1)
Microsoft.ML.AutoML.Interactive (1)
Microsoft.ML.Tests (1)
Microsoft.VisualBasic.Tests (1)
Microsoft.VisualStudio.LanguageServices (1)
PresentationCore (4)
PresentationFramework (10)
PresentationUI (7)
ScenarioTests.Common.Tests (1)
Shared.Tests (1)
System.ComponentModel.TypeConverter (2)
System.Configuration.ConfigurationManager (3)
System.Data.Common (2)
System.Diagnostics.TraceSource (2)
System.Linq.Expressions (1)
System.Net.Mail (1)
System.Net.Primitives (5)
System.Net.Requests (6)
System.Private.CoreLib (32)
System.Private.DataContractSerialization (2)
System.Private.Windows.Core.Tests (4)
System.Private.Xml (5)
System.Runtime.Caching (3)
System.Security.Cryptography (7)
System.ServiceModel.Federation (2)
System.ServiceModel.Primitives (4)
System.Windows.Forms (7)
System.Windows.Forms.Design (1)
System.Windows.Forms.Primitives.Tests (1)
System.Windows.Forms.Tests (44)
System.Xaml (1)
System.Xaml.Tests (4)
WindowsBase.Tests (17)
System\Security\RightsManagement\ContentGrantTests.cs (17)
32Assert.Equal(DateTime.MinValue, grant.ValidFrom);
37yield return new object[] { ContentUser.AnyoneUser, ContentRight.View, DateTime.MinValue, DateTime.MaxValue };
38yield return new object[] { ContentUser.OwnerUser, ContentRight.Edit, DateTime.MinValue, DateTime.MaxValue };
39yield return new object[] { new ContentUser("name", AuthenticationType.Windows), ContentRight.Print, DateTime.MinValue, DateTime.MaxValue };
40yield return new object[] { new ContentUser("name", AuthenticationType.Windows), ContentRight.Extract, DateTime.MinValue, DateTime.MaxValue };
41yield return new object[] { new ContentUser("name", AuthenticationType.Windows), ContentRight.ObjectModel, DateTime.MinValue, DateTime.MaxValue };
42yield return new object[] { new ContentUser("name", AuthenticationType.Windows), ContentRight.Owner, DateTime.MinValue, DateTime.MaxValue };
43yield return new object[] { new ContentUser("name", AuthenticationType.Windows), ContentRight.ViewRightsData, DateTime.MinValue, DateTime.MaxValue };
44yield return new object[] { new ContentUser("name", AuthenticationType.Windows), ContentRight.Forward, DateTime.MinValue, DateTime.MaxValue };
45yield return new object[] { new ContentUser("name", AuthenticationType.Windows), ContentRight.Reply, DateTime.MinValue, DateTime.MaxValue };
46yield return new object[] { new ContentUser("name", AuthenticationType.Windows), ContentRight.ReplyAll, DateTime.MinValue, DateTime.MaxValue };
47yield return new object[] { new ContentUser("name", AuthenticationType.Windows), ContentRight.Sign, DateTime.MinValue, DateTime.MaxValue };
48yield return new object[] { new ContentUser("name", AuthenticationType.Windows), ContentRight.DocumentEdit, DateTime.MinValue, DateTime.MaxValue };
49yield return new object[] { new ContentUser("name", AuthenticationType.Windows), ContentRight.Export, DateTime.MinValue, DateTime.MaxValue };
50yield return new object[] { new ContentUser("name", AuthenticationType.Windows), ContentRight.Export, DateTime.MinValue, DateTime.MinValue };
70Assert.Throws<ArgumentNullException>("user", () => new ContentGrant(null, ContentRight.View, DateTime.MinValue, DateTime.MaxValue));