7587 instantiations of ArgumentNullException
Analyzer.Utilities.UnitTests (4)
Aspire.Azure.AI.Inference (1)
Aspire.Confluent.Kafka (1)
Aspire.Dashboard (4)
Aspire.EndToEnd.Tests (1)
Aspire.Hosting (42)
Aspire.Hosting.Analyzers (2)
Aspire.Hosting.Azure (5)
Aspire.Hosting.Azure.AppConfiguration (1)
Aspire.Hosting.Azure.AppContainers (2)
Aspire.Hosting.Azure.AppService (1)
Aspire.Hosting.Azure.CosmosDB (4)
Aspire.Hosting.Azure.EventHubs (4)
Aspire.Hosting.Azure.KeyVault (2)
Aspire.Hosting.Azure.Kusto (1)
Aspire.Hosting.Azure.PostgreSQL (2)
Aspire.Hosting.Azure.Redis (1)
Aspire.Hosting.Azure.ServiceBus (5)
Aspire.Hosting.Azure.SignalR (1)
Aspire.Hosting.Azure.Sql (1)
Aspire.Hosting.Azure.Storage (6)
Aspire.Hosting.Azure.Tests (1)
Aspire.Hosting.Azure.WebPubSub (2)
Aspire.Hosting.DevTunnels (8)
Aspire.Hosting.Docker (1)
Aspire.Hosting.Keycloak (1)
Aspire.Hosting.Kubernetes (1)
Aspire.Hosting.Maui (3)
Aspire.Hosting.Milvus (1)
Aspire.Hosting.MongoDB (1)
Aspire.Hosting.MySql (1)
Aspire.Hosting.OpenAI (2)
Aspire.Hosting.Oracle (1)
Aspire.Hosting.PostgreSQL (1)
Aspire.Hosting.Python (1)
Aspire.Hosting.SqlServer (1)
Aspire.Hosting.Testing (3)
Aspire.Hosting.Tests (1)
Aspire.Hosting.Yarp (4)
Aspire.Microsoft.Data.SqlClient (1)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
Aspire.OpenAI (1)
Aspire.StackExchange.Redis (2)
Aspire.Templates.Tests (1)
AzureFunctionsEndToEnd.Functions (1)
Binding.UDS.IntegrationTests (1)
Crossgen2Tasks (1)
DemoConsole (1)
dotnet-dev-certs (2)
dotnet-getdocument (3)
dotnet-openapi (1)
dotnet-sql-cache (1)
dotnet-svcutil-lib (745)
dotnet-user-jwts (1)
dotnet-user-secrets (1)
EventSourceGenerator (1)
Extensibility.MessageEncoder.IntegrationTests (8)
GenerateDocumentationAndConfigFiles (112)
GetDocument.Insider (4)
HealthChecksSample (1)
ILLink.RoslynAnalyzer (2)
Metrics (116)
Metrics.Legacy (116)
Microsoft.Analyzers.Local (4)
Microsoft.Analyzers.Local.Tests (2)
Microsoft.Arcade.Common (2)
Microsoft.AspNetCore (3)
Microsoft.AspNetCore.Analyzers (6)
Microsoft.AspNetCore.Antiforgery (4)
Microsoft.AspNetCore.App.Analyzers (12)
Microsoft.AspNetCore.App.Analyzers.Test (2)
Microsoft.AspNetCore.AsyncState (2)
Microsoft.AspNetCore.Authentication (1)
Microsoft.AspNetCore.Authentication.Cookies (1)
Microsoft.AspNetCore.Authentication.Core (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
Microsoft.AspNetCore.Authentication.Twitter (1)
Microsoft.AspNetCore.Authentication.WsFederation (2)
Microsoft.AspNetCore.Authorization.Policy (7)
Microsoft.AspNetCore.Components (11)
Microsoft.AspNetCore.Components.Analyzers (18)
Microsoft.AspNetCore.Components.Authorization (1)
Microsoft.AspNetCore.Components.Endpoints (3)
Microsoft.AspNetCore.Components.Forms (4)
Microsoft.AspNetCore.Components.SdkAnalyzers (12)
Microsoft.AspNetCore.Components.Server (19)
Microsoft.AspNetCore.Components.Server.Tests (1)
Microsoft.AspNetCore.Components.Web (2)
Microsoft.AspNetCore.Components.WebAssembly (4)
Microsoft.AspNetCore.Components.WebAssembly.Server (1)
Microsoft.AspNetCore.Components.WebView (7)
Microsoft.AspNetCore.Components.WebView.Photino (2)
Microsoft.AspNetCore.Components.WebView.Test (3)
Microsoft.AspNetCore.Components.WebView.WindowsForms (2)
Microsoft.AspNetCore.Components.WebView.Wpf (1)
Microsoft.AspNetCore.Connections.Abstractions (1)
Microsoft.AspNetCore.CookiePolicy (1)
Microsoft.AspNetCore.Cors (1)
Microsoft.AspNetCore.DataProtection (5)
Microsoft.AspNetCore.DataProtection.EntityFrameworkCore (1)
Microsoft.AspNetCore.Diagnostics.Abstractions (2)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
Microsoft.AspNetCore.HeaderParsing (2)
Microsoft.AspNetCore.HeaderPropagation (2)
Microsoft.AspNetCore.HostFiltering (3)
Microsoft.AspNetCore.Hosting.WindowsServices (1)
Microsoft.AspNetCore.Http (5)
Microsoft.AspNetCore.Http.Abstractions (4)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Connections.Client (4)
Microsoft.AspNetCore.Http.Microbenchmarks (1)
Microsoft.AspNetCore.Http.Results (1)
Microsoft.AspNetCore.HttpLogging (5)
Microsoft.AspNetCore.HttpsPolicy (2)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.Identity.UI (2)
Microsoft.AspNetCore.JsonPatch (6)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (6)
Microsoft.AspNetCore.Localization (2)
Microsoft.AspNetCore.Mvc.Abstractions (3)
Microsoft.AspNetCore.Mvc.Analyzers (12)
Microsoft.AspNetCore.Mvc.Api.Analyzers (13)
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
Microsoft.AspNetCore.Mvc.Core (50)
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (4)
Microsoft.AspNetCore.Mvc.Razor (3)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (6)
Microsoft.AspNetCore.Mvc.RazorPages (17)
Microsoft.AspNetCore.Mvc.TagHelpers (3)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Microsoft.AspNetCore.OpenApi.Tests (1)
Microsoft.AspNetCore.Razor (1)
Microsoft.AspNetCore.ResponseCaching (1)
Microsoft.AspNetCore.Rewrite (1)
Microsoft.AspNetCore.Routing (15)
Microsoft.AspNetCore.Routing.Abstractions (2)
Microsoft.AspNetCore.Server.HttpSys (11)
Microsoft.AspNetCore.Server.Kestrel.Core (15)
Microsoft.AspNetCore.Session (1)
Microsoft.AspNetCore.Shared.Tests (27)
Microsoft.AspNetCore.SignalR.Client.Core (4)
Microsoft.AspNetCore.SignalR.Client.Tests (1)
Microsoft.AspNetCore.SignalR.Core (6)
Microsoft.AspNetCore.SpaProxy (8)
Microsoft.AspNetCore.SpaServices.Extensions (4)
Microsoft.AspNetCore.StaticFiles (2)
Microsoft.AspNetCore.TestHost (15)
Microsoft.AspNetCore.Testing (2)
Microsoft.AspNetCore.WebUtilities (8)
Microsoft.Bcl.AsyncInterfaces (1)
Microsoft.Bcl.Numerics (1)
Microsoft.Cci.Extensions (8)
Microsoft.CodeAnalysis (298)
Microsoft.CodeAnalysis.Analyzers (123)
Microsoft.CodeAnalysis.AnalyzerUtilities (180)
Microsoft.CodeAnalysis.BannedApiAnalyzers (123)
Microsoft.CodeAnalysis.CodeStyle (101)
Microsoft.CodeAnalysis.CodeStyle.Fixes (8)
Microsoft.CodeAnalysis.Collections.Package (63)
Microsoft.CodeAnalysis.CSharp (1679)
Syntax.xml.Main.Generated.cs (378)
1510=> node.Update((NameSyntax?)Visit(node.Left) ?? throw new ArgumentNullException("left"), VisitToken(node.DotToken), (SimpleNameSyntax?)Visit(node.Right) ?? throw new ArgumentNullException("right"));
1513=> node.Update(VisitToken(node.Identifier), (TypeArgumentListSyntax?)Visit(node.TypeArgumentList) ?? throw new ArgumentNullException("typeArgumentList"));
1519=> node.Update((IdentifierNameSyntax?)Visit(node.Alias) ?? throw new ArgumentNullException("alias"), VisitToken(node.ColonColonToken), (SimpleNameSyntax?)Visit(node.Name) ?? throw new ArgumentNullException("name"));
1525=> node.Update((TypeSyntax?)Visit(node.ElementType) ?? throw new ArgumentNullException("elementType"), VisitList(node.RankSpecifiers));
1531=> node.Update((TypeSyntax?)Visit(node.ElementType) ?? throw new ArgumentNullException("elementType"), VisitToken(node.AsteriskToken));
1534=> node.Update(VisitToken(node.DelegateKeyword), VisitToken(node.AsteriskToken), (FunctionPointerCallingConventionSyntax?)Visit(node.CallingConvention), (FunctionPointerParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"));
1549=> node.Update((TypeSyntax?)Visit(node.ElementType) ?? throw new ArgumentNullException("elementType"), VisitToken(node.QuestionToken));
1555=> node.Update((TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), VisitToken(node.Identifier));
1561=> node.Update(VisitToken(node.RefKeyword), VisitToken(node.ReadOnlyKeyword), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"));
1564=> node.Update(VisitToken(node.ScopedKeyword), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"));
1567=> node.Update(VisitToken(node.OpenParenToken), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), VisitToken(node.CloseParenToken));
1573=> node.Update(VisitToken(node.OperatorToken), (ExpressionSyntax?)Visit(node.Operand) ?? throw new ArgumentNullException("operand"));
1576=> node.Update(VisitToken(node.AwaitKeyword), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"));
1579=> node.Update((ExpressionSyntax?)Visit(node.Operand) ?? throw new ArgumentNullException("operand"), VisitToken(node.OperatorToken));
1582=> node.Update((ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), VisitToken(node.OperatorToken), (SimpleNameSyntax?)Visit(node.Name) ?? throw new ArgumentNullException("name"));
1585=> node.Update((ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), VisitToken(node.OperatorToken), (ExpressionSyntax?)Visit(node.WhenNotNull) ?? throw new ArgumentNullException("whenNotNull"));
1588=> node.Update(VisitToken(node.OperatorToken), (SimpleNameSyntax?)Visit(node.Name) ?? throw new ArgumentNullException("name"));
1591=> node.Update((BracketedArgumentListSyntax?)Visit(node.ArgumentList) ?? throw new ArgumentNullException("argumentList"));
1597=> node.Update((BracketedArgumentListSyntax?)Visit(node.ArgumentList) ?? throw new ArgumentNullException("argumentList"));
1600=> node.Update((ExpressionSyntax?)Visit(node.Left) ?? throw new ArgumentNullException("left"), VisitToken(node.OperatorToken), (ExpressionSyntax?)Visit(node.Right) ?? throw new ArgumentNullException("right"));
1603=> node.Update((ExpressionSyntax?)Visit(node.Left) ?? throw new ArgumentNullException("left"), VisitToken(node.OperatorToken), (ExpressionSyntax?)Visit(node.Right) ?? throw new ArgumentNullException("right"));
1606=> node.Update((ExpressionSyntax?)Visit(node.Condition) ?? throw new ArgumentNullException("condition"), VisitToken(node.QuestionToken), (ExpressionSyntax?)Visit(node.WhenTrue) ?? throw new ArgumentNullException("whenTrue"), VisitToken(node.ColonToken), (ExpressionSyntax?)Visit(node.WhenFalse) ?? throw new ArgumentNullException("whenFalse"));
1621=> node.Update(VisitToken(node.Keyword), VisitToken(node.OpenParenToken), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), VisitToken(node.CloseParenToken));
1624=> node.Update(VisitToken(node.Keyword), VisitToken(node.OpenParenToken), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), VisitToken(node.CloseParenToken));
1627=> node.Update(VisitToken(node.Keyword), VisitToken(node.OpenParenToken), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), VisitToken(node.Comma), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), VisitToken(node.CloseParenToken));
1630=> node.Update(VisitToken(node.Keyword), VisitToken(node.OpenParenToken), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), VisitToken(node.CloseParenToken));
1633=> node.Update(VisitToken(node.Keyword), VisitToken(node.OpenParenToken), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), VisitToken(node.CloseParenToken));
1636=> node.Update(VisitToken(node.Keyword), VisitToken(node.OpenParenToken), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), VisitToken(node.CloseParenToken));
1639=> node.Update(VisitToken(node.Keyword), VisitToken(node.OpenParenToken), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), VisitToken(node.CloseParenToken));
1642=> node.Update((ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), (ArgumentListSyntax?)Visit(node.ArgumentList) ?? throw new ArgumentNullException("argumentList"));
1645=> node.Update((ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), (BracketedArgumentListSyntax?)Visit(node.ArgumentList) ?? throw new ArgumentNullException("argumentList"));
1654=> node.Update((NameColonSyntax?)Visit(node.NameColon), VisitToken(node.RefKindKeyword), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"));
1657=> node.Update((ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), VisitToken(node.ColonToken));
1660=> node.Update((IdentifierNameSyntax?)Visit(node.Name) ?? throw new ArgumentNullException("name"), VisitToken(node.ColonToken));
1663=> node.Update((TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), (VariableDesignationSyntax?)Visit(node.Designation) ?? throw new ArgumentNullException("designation"));
1666=> node.Update(VisitToken(node.OpenParenToken), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), VisitToken(node.CloseParenToken), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"));
1669=> node.Update(VisitList(node.Modifiers), VisitToken(node.DelegateKeyword), (ParameterListSyntax?)Visit(node.ParameterList), (BlockSyntax?)Visit(node.Block) ?? throw new ArgumentNullException("block"), (ExpressionSyntax?)Visit(node.ExpressionBody));
1672=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), (ParameterSyntax?)Visit(node.Parameter) ?? throw new ArgumentNullException("parameter"), VisitToken(node.ArrowToken), (BlockSyntax?)Visit(node.Block), (ExpressionSyntax?)Visit(node.ExpressionBody));
1675=> node.Update(VisitToken(node.RefKeyword), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"));
1678=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), (TypeSyntax?)Visit(node.ReturnType), (ParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), VisitToken(node.ArrowToken), (BlockSyntax?)Visit(node.Block), (ExpressionSyntax?)Visit(node.ExpressionBody));
1684=> node.Update(VisitToken(node.NewKeyword), (ArgumentListSyntax?)Visit(node.ArgumentList) ?? throw new ArgumentNullException("argumentList"), (InitializerExpressionSyntax?)Visit(node.Initializer));
1687=> node.Update(VisitToken(node.NewKeyword), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), (ArgumentListSyntax?)Visit(node.ArgumentList), (InitializerExpressionSyntax?)Visit(node.Initializer));
1690=> node.Update((ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), VisitToken(node.WithKeyword), (InitializerExpressionSyntax?)Visit(node.Initializer) ?? throw new ArgumentNullException("initializer"));
1693=> node.Update((NameEqualsSyntax?)Visit(node.NameEquals), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"));
1699=> node.Update(VisitToken(node.NewKeyword), (ArrayTypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), (InitializerExpressionSyntax?)Visit(node.Initializer));
1702=> node.Update(VisitToken(node.NewKeyword), VisitToken(node.OpenBracketToken), VisitList(node.Commas), VisitToken(node.CloseBracketToken), (InitializerExpressionSyntax?)Visit(node.Initializer) ?? throw new ArgumentNullException("initializer"));
1705=> node.Update(VisitToken(node.StackAllocKeyword), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), (InitializerExpressionSyntax?)Visit(node.Initializer));
1708=> node.Update(VisitToken(node.StackAllocKeyword), VisitToken(node.OpenBracketToken), VisitToken(node.CloseBracketToken), (InitializerExpressionSyntax?)Visit(node.Initializer) ?? throw new ArgumentNullException("initializer"));
1714=> node.Update((ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"));
1717=> node.Update(VisitToken(node.OperatorToken), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"));
1720=> node.Update((FromClauseSyntax?)Visit(node.FromClause) ?? throw new ArgumentNullException("fromClause"), (QueryBodySyntax?)Visit(node.Body) ?? throw new ArgumentNullException("body"));
1723=> node.Update(VisitList(node.Clauses), (SelectOrGroupClauseSyntax?)Visit(node.SelectOrGroup) ?? throw new ArgumentNullException("selectOrGroup"), (QueryContinuationSyntax?)Visit(node.Continuation));
1726=> node.Update(VisitToken(node.FromKeyword), (TypeSyntax?)Visit(node.Type), VisitToken(node.Identifier), VisitToken(node.InKeyword), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"));
1729=> node.Update(VisitToken(node.LetKeyword), VisitToken(node.Identifier), VisitToken(node.EqualsToken), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"));
1732=> node.Update(VisitToken(node.JoinKeyword), (TypeSyntax?)Visit(node.Type), VisitToken(node.Identifier), VisitToken(node.InKeyword), (ExpressionSyntax?)Visit(node.InExpression) ?? throw new ArgumentNullException("inExpression"), VisitToken(node.OnKeyword), (ExpressionSyntax?)Visit(node.LeftExpression) ?? throw new ArgumentNullException("leftExpression"), VisitToken(node.EqualsKeyword), (ExpressionSyntax?)Visit(node.RightExpression) ?? throw new ArgumentNullException("rightExpression"), (JoinIntoClauseSyntax?)Visit(node.Into));
1738=> node.Update(VisitToken(node.WhereKeyword), (ExpressionSyntax?)Visit(node.Condition) ?? throw new ArgumentNullException("condition"));
1744=> node.Update((ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), VisitToken(node.AscendingOrDescendingKeyword));
1747=> node.Update(VisitToken(node.SelectKeyword), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"));
1750=> node.Update(VisitToken(node.GroupKeyword), (ExpressionSyntax?)Visit(node.GroupExpression) ?? throw new ArgumentNullException("groupExpression"), VisitToken(node.ByKeyword), (ExpressionSyntax?)Visit(node.ByExpression) ?? throw new ArgumentNullException("byExpression"));
1753=> node.Update(VisitToken(node.IntoKeyword), VisitToken(node.Identifier), (QueryBodySyntax?)Visit(node.Body) ?? throw new ArgumentNullException("body"));
1762=> node.Update((ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), VisitToken(node.IsKeyword), (PatternSyntax?)Visit(node.Pattern) ?? throw new ArgumentNullException("pattern"));
1765=> node.Update(VisitToken(node.ThrowKeyword), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"));
1768=> node.Update(VisitToken(node.WhenKeyword), (ExpressionSyntax?)Visit(node.Condition) ?? throw new ArgumentNullException("condition"));
1774=> node.Update((TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), (VariableDesignationSyntax?)Visit(node.Designation) ?? throw new ArgumentNullException("designation"));
1777=> node.Update(VisitToken(node.VarKeyword), (VariableDesignationSyntax?)Visit(node.Designation) ?? throw new ArgumentNullException("designation"));
1789=> node.Update((BaseExpressionColonSyntax?)Visit(node.ExpressionColon), (PatternSyntax?)Visit(node.Pattern) ?? throw new ArgumentNullException("pattern"));
1792=> node.Update((ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"));
1795=> node.Update(VisitToken(node.OpenParenToken), (PatternSyntax?)Visit(node.Pattern) ?? throw new ArgumentNullException("pattern"), VisitToken(node.CloseParenToken));
1798=> node.Update(VisitToken(node.OperatorToken), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"));
1801=> node.Update((TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"));
1804=> node.Update((PatternSyntax?)Visit(node.Left) ?? throw new ArgumentNullException("left"), VisitToken(node.OperatorToken), (PatternSyntax?)Visit(node.Right) ?? throw new ArgumentNullException("right"));
1807=> node.Update(VisitToken(node.OperatorToken), (PatternSyntax?)Visit(node.Pattern) ?? throw new ArgumentNullException("pattern"));
1819=> node.Update(VisitToken(node.OpenBraceToken), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), (InterpolationAlignmentClauseSyntax?)Visit(node.AlignmentClause), (InterpolationFormatClauseSyntax?)Visit(node.FormatClause), VisitToken(node.CloseBraceToken));
1822=> node.Update(VisitToken(node.CommaToken), (ExpressionSyntax?)Visit(node.Value) ?? throw new ArgumentNullException("value"));
1828=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), (StatementSyntax?)Visit(node.Statement) ?? throw new ArgumentNullException("statement"));
1834=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), (TypeSyntax?)Visit(node.ReturnType) ?? throw new ArgumentNullException("returnType"), VisitToken(node.Identifier), (TypeParameterListSyntax?)Visit(node.TypeParameterList), (ParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), VisitList(node.ConstraintClauses), (BlockSyntax?)Visit(node.Body), (ArrowExpressionClauseSyntax?)Visit(node.ExpressionBody), VisitToken(node.SemicolonToken));
1837=> node.Update(VisitList(node.AttributeLists), VisitToken(node.AwaitKeyword), VisitToken(node.UsingKeyword), VisitList(node.Modifiers), (VariableDeclarationSyntax?)Visit(node.Declaration) ?? throw new ArgumentNullException("declaration"), VisitToken(node.SemicolonToken));
1840=> node.Update((TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), VisitList(node.Variables));
1846=> node.Update(VisitToken(node.EqualsToken), (ExpressionSyntax?)Visit(node.Value) ?? throw new ArgumentNullException("value"));
1858=> node.Update(VisitList(node.AttributeLists), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), VisitToken(node.SemicolonToken));
1864=> node.Update(VisitList(node.AttributeLists), VisitToken(node.Identifier), VisitToken(node.ColonToken), (StatementSyntax?)Visit(node.Statement) ?? throw new ArgumentNullException("statement"));
1885=> node.Update(VisitList(node.AttributeLists), VisitToken(node.WhileKeyword), VisitToken(node.OpenParenToken), (ExpressionSyntax?)Visit(node.Condition) ?? throw new ArgumentNullException("condition"), VisitToken(node.CloseParenToken), (StatementSyntax?)Visit(node.Statement) ?? throw new ArgumentNullException("statement"));
1888=> node.Update(VisitList(node.AttributeLists), VisitToken(node.DoKeyword), (StatementSyntax?)Visit(node.Statement) ?? throw new ArgumentNullException("statement"), VisitToken(node.WhileKeyword), VisitToken(node.OpenParenToken), (ExpressionSyntax?)Visit(node.Condition) ?? throw new ArgumentNullException("condition"), VisitToken(node.CloseParenToken), VisitToken(node.SemicolonToken));
1891=> node.Update(VisitList(node.AttributeLists), VisitToken(node.ForKeyword), VisitToken(node.OpenParenToken), (VariableDeclarationSyntax?)Visit(node.Declaration), VisitList(node.Initializers), VisitToken(node.FirstSemicolonToken), (ExpressionSyntax?)Visit(node.Condition), VisitToken(node.SecondSemicolonToken), VisitList(node.Incrementors), VisitToken(node.CloseParenToken), (StatementSyntax?)Visit(node.Statement) ?? throw new ArgumentNullException("statement"));
1894=> node.Update(VisitList(node.AttributeLists), VisitToken(node.AwaitKeyword), VisitToken(node.ForEachKeyword), VisitToken(node.OpenParenToken), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), VisitToken(node.Identifier), VisitToken(node.InKeyword), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), VisitToken(node.CloseParenToken), (StatementSyntax?)Visit(node.Statement) ?? throw new ArgumentNullException("statement"));
1897=> node.Update(VisitList(node.AttributeLists), VisitToken(node.AwaitKeyword), VisitToken(node.ForEachKeyword), VisitToken(node.OpenParenToken), (ExpressionSyntax?)Visit(node.Variable) ?? throw new ArgumentNullException("variable"), VisitToken(node.InKeyword), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), VisitToken(node.CloseParenToken), (StatementSyntax?)Visit(node.Statement) ?? throw new ArgumentNullException("statement"));
1900=> node.Update(VisitList(node.AttributeLists), VisitToken(node.AwaitKeyword), VisitToken(node.UsingKeyword), VisitToken(node.OpenParenToken), (VariableDeclarationSyntax?)Visit(node.Declaration), (ExpressionSyntax?)Visit(node.Expression), VisitToken(node.CloseParenToken), (StatementSyntax?)Visit(node.Statement) ?? throw new ArgumentNullException("statement"));
1903=> node.Update(VisitList(node.AttributeLists), VisitToken(node.FixedKeyword), VisitToken(node.OpenParenToken), (VariableDeclarationSyntax?)Visit(node.Declaration) ?? throw new ArgumentNullException("declaration"), VisitToken(node.CloseParenToken), (StatementSyntax?)Visit(node.Statement) ?? throw new ArgumentNullException("statement"));
1906=> node.Update(VisitList(node.AttributeLists), VisitToken(node.Keyword), (BlockSyntax?)Visit(node.Block) ?? throw new ArgumentNullException("block"));
1909=> node.Update(VisitList(node.AttributeLists), VisitToken(node.UnsafeKeyword), (BlockSyntax?)Visit(node.Block) ?? throw new ArgumentNullException("block"));
1912=> node.Update(VisitList(node.AttributeLists), VisitToken(node.LockKeyword), VisitToken(node.OpenParenToken), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), VisitToken(node.CloseParenToken), (StatementSyntax?)Visit(node.Statement) ?? throw new ArgumentNullException("statement"));
1915=> node.Update(VisitList(node.AttributeLists), VisitToken(node.IfKeyword), VisitToken(node.OpenParenToken), (ExpressionSyntax?)Visit(node.Condition) ?? throw new ArgumentNullException("condition"), VisitToken(node.CloseParenToken), (StatementSyntax?)Visit(node.Statement) ?? throw new ArgumentNullException("statement"), (ElseClauseSyntax?)Visit(node.Else));
1918=> node.Update(VisitToken(node.ElseKeyword), (StatementSyntax?)Visit(node.Statement) ?? throw new ArgumentNullException("statement"));
1921=> node.Update(VisitList(node.AttributeLists), VisitToken(node.SwitchKeyword), VisitToken(node.OpenParenToken), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"), VisitToken(node.CloseParenToken), VisitToken(node.OpenBraceToken), VisitList(node.Sections), VisitToken(node.CloseBraceToken));
1927=> node.Update(VisitToken(node.Keyword), (PatternSyntax?)Visit(node.Pattern) ?? throw new ArgumentNullException("pattern"), (WhenClauseSyntax?)Visit(node.WhenClause), VisitToken(node.ColonToken));
1930=> node.Update(VisitToken(node.Keyword), (ExpressionSyntax?)Visit(node.Value) ?? throw new ArgumentNullException("value"), VisitToken(node.ColonToken));
1936=> node.Update((ExpressionSyntax?)Visit(node.GoverningExpression) ?? throw new ArgumentNullException("governingExpression"), VisitToken(node.SwitchKeyword), VisitToken(node.OpenBraceToken), VisitList(node.Arms), VisitToken(node.CloseBraceToken));
1939=> node.Update((PatternSyntax?)Visit(node.Pattern) ?? throw new ArgumentNullException("pattern"), (WhenClauseSyntax?)Visit(node.WhenClause), VisitToken(node.EqualsGreaterThanToken), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"));
1942=> node.Update(VisitList(node.AttributeLists), VisitToken(node.TryKeyword), (BlockSyntax?)Visit(node.Block) ?? throw new ArgumentNullException("block"), VisitList(node.Catches), (FinallyClauseSyntax?)Visit(node.Finally));
1945=> node.Update(VisitToken(node.CatchKeyword), (CatchDeclarationSyntax?)Visit(node.Declaration), (CatchFilterClauseSyntax?)Visit(node.Filter), (BlockSyntax?)Visit(node.Block) ?? throw new ArgumentNullException("block"));
1948=> node.Update(VisitToken(node.OpenParenToken), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), VisitToken(node.Identifier), VisitToken(node.CloseParenToken));
1951=> node.Update(VisitToken(node.WhenKeyword), VisitToken(node.OpenParenToken), (ExpressionSyntax?)Visit(node.FilterExpression) ?? throw new ArgumentNullException("filterExpression"), VisitToken(node.CloseParenToken));
1954=> node.Update(VisitToken(node.FinallyKeyword), (BlockSyntax?)Visit(node.Block) ?? throw new ArgumentNullException("block"));
1963=> node.Update(VisitToken(node.GlobalKeyword), VisitToken(node.UsingKeyword), VisitToken(node.StaticKeyword), VisitToken(node.UnsafeKeyword), (NameEqualsSyntax?)Visit(node.Alias), (TypeSyntax?)Visit(node.NamespaceOrType) ?? throw new ArgumentNullException("namespaceOrType"), VisitToken(node.SemicolonToken));
1966=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), VisitToken(node.NamespaceKeyword), (NameSyntax?)Visit(node.Name) ?? throw new ArgumentNullException("name"), VisitToken(node.OpenBraceToken), VisitList(node.Externs), VisitList(node.Usings), VisitList(node.Members), VisitToken(node.CloseBraceToken), VisitToken(node.SemicolonToken));
1969=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), VisitToken(node.NamespaceKeyword), (NameSyntax?)Visit(node.Name) ?? throw new ArgumentNullException("name"), VisitToken(node.SemicolonToken), VisitList(node.Externs), VisitList(node.Usings), VisitList(node.Members));
1978=> node.Update((NameSyntax?)Visit(node.Name) ?? throw new ArgumentNullException("name"), (AttributeArgumentListSyntax?)Visit(node.ArgumentList));
1984=> node.Update((NameEqualsSyntax?)Visit(node.NameEquals), (NameColonSyntax?)Visit(node.NameColon), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"));
1987=> node.Update((IdentifierNameSyntax?)Visit(node.Name) ?? throw new ArgumentNullException("name"), VisitToken(node.EqualsToken));
2011=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), VisitToken(node.DelegateKeyword), (TypeSyntax?)Visit(node.ReturnType) ?? throw new ArgumentNullException("returnType"), VisitToken(node.Identifier), (TypeParameterListSyntax?)Visit(node.TypeParameterList), (ParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), VisitList(node.ConstraintClauses), VisitToken(node.SemicolonToken));
2023=> node.Update((TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"));
2026=> node.Update((TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), (ArgumentListSyntax?)Visit(node.ArgumentList) ?? throw new ArgumentNullException("argumentList"));
2029=> node.Update(VisitToken(node.WhereKeyword), (IdentifierNameSyntax?)Visit(node.Name) ?? throw new ArgumentNullException("name"), VisitToken(node.ColonToken), VisitList(node.Constraints));
2038=> node.Update((TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"));
2050=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), (VariableDeclarationSyntax?)Visit(node.Declaration) ?? throw new ArgumentNullException("declaration"), VisitToken(node.SemicolonToken));
2053=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), VisitToken(node.EventKeyword), (VariableDeclarationSyntax?)Visit(node.Declaration) ?? throw new ArgumentNullException("declaration"), VisitToken(node.SemicolonToken));
2056=> node.Update((NameSyntax?)Visit(node.Name) ?? throw new ArgumentNullException("name"), VisitToken(node.DotToken));
2059=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), (TypeSyntax?)Visit(node.ReturnType) ?? throw new ArgumentNullException("returnType"), (ExplicitInterfaceSpecifierSyntax?)Visit(node.ExplicitInterfaceSpecifier), VisitToken(node.Identifier), (TypeParameterListSyntax?)Visit(node.TypeParameterList), (ParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), VisitList(node.ConstraintClauses), (BlockSyntax?)Visit(node.Body), (ArrowExpressionClauseSyntax?)Visit(node.ExpressionBody), VisitToken(node.SemicolonToken));
2062=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), (TypeSyntax?)Visit(node.ReturnType) ?? throw new ArgumentNullException("returnType"), (ExplicitInterfaceSpecifierSyntax?)Visit(node.ExplicitInterfaceSpecifier), VisitToken(node.OperatorKeyword), VisitToken(node.CheckedKeyword), VisitToken(node.OperatorToken), (ParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), (BlockSyntax?)Visit(node.Body), (ArrowExpressionClauseSyntax?)Visit(node.ExpressionBody), VisitToken(node.SemicolonToken));
2065=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), VisitToken(node.ImplicitOrExplicitKeyword), (ExplicitInterfaceSpecifierSyntax?)Visit(node.ExplicitInterfaceSpecifier), VisitToken(node.OperatorKeyword), VisitToken(node.CheckedKeyword), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), (ParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), (BlockSyntax?)Visit(node.Body), (ArrowExpressionClauseSyntax?)Visit(node.ExpressionBody), VisitToken(node.SemicolonToken));
2068=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), VisitToken(node.Identifier), (ParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), (ConstructorInitializerSyntax?)Visit(node.Initializer), (BlockSyntax?)Visit(node.Body), (ArrowExpressionClauseSyntax?)Visit(node.ExpressionBody), VisitToken(node.SemicolonToken));
2071=> node.Update(VisitToken(node.ColonToken), VisitToken(node.ThisOrBaseKeyword), (ArgumentListSyntax?)Visit(node.ArgumentList) ?? throw new ArgumentNullException("argumentList"));
2074=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), VisitToken(node.TildeToken), VisitToken(node.Identifier), (ParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), (BlockSyntax?)Visit(node.Body), (ArrowExpressionClauseSyntax?)Visit(node.ExpressionBody), VisitToken(node.SemicolonToken));
2077=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), (ExplicitInterfaceSpecifierSyntax?)Visit(node.ExplicitInterfaceSpecifier), VisitToken(node.Identifier), (AccessorListSyntax?)Visit(node.AccessorList), (ArrowExpressionClauseSyntax?)Visit(node.ExpressionBody), (EqualsValueClauseSyntax?)Visit(node.Initializer), VisitToken(node.SemicolonToken));
2080=> node.Update(VisitToken(node.ArrowToken), (ExpressionSyntax?)Visit(node.Expression) ?? throw new ArgumentNullException("expression"));
2083=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), VisitToken(node.EventKeyword), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), (ExplicitInterfaceSpecifierSyntax?)Visit(node.ExplicitInterfaceSpecifier), VisitToken(node.Identifier), (AccessorListSyntax?)Visit(node.AccessorList), VisitToken(node.SemicolonToken));
2086=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), (ExplicitInterfaceSpecifierSyntax?)Visit(node.ExplicitInterfaceSpecifier), VisitToken(node.ThisKeyword), (BracketedParameterListSyntax?)Visit(node.ParameterList) ?? throw new ArgumentNullException("parameterList"), (AccessorListSyntax?)Visit(node.AccessorList), (ArrowExpressionClauseSyntax?)Visit(node.ExpressionBody), VisitToken(node.SemicolonToken));
2104=> node.Update(VisitList(node.AttributeLists), VisitList(node.Modifiers), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"));
2116=> node.Update((TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"));
2119=> node.Update((TypeSyntax?)Visit(node.Container) ?? throw new ArgumentNullException("container"), VisitToken(node.DotToken), (MemberCrefSyntax?)Visit(node.Member) ?? throw new ArgumentNullException("member"));
2122=> node.Update((TypeSyntax?)Visit(node.Name) ?? throw new ArgumentNullException("name"), (CrefParameterListSyntax?)Visit(node.Parameters));
2125=> node.Update(VisitToken(node.ExtensionKeyword), (TypeArgumentListSyntax?)Visit(node.TypeArgumentList), (CrefParameterListSyntax?)Visit(node.Parameters) ?? throw new ArgumentNullException("parameters"), VisitToken(node.DotToken), (MemberCrefSyntax?)Visit(node.Member) ?? throw new ArgumentNullException("member"));
2134=> node.Update(VisitToken(node.ImplicitOrExplicitKeyword), VisitToken(node.OperatorKeyword), VisitToken(node.CheckedKeyword), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"), (CrefParameterListSyntax?)Visit(node.Parameters));
2143=> node.Update(VisitToken(node.RefKindKeyword), VisitToken(node.ReadOnlyKeyword), (TypeSyntax?)Visit(node.Type) ?? throw new ArgumentNullException("type"));
2146=> node.Update((XmlElementStartTagSyntax?)Visit(node.StartTag) ?? throw new ArgumentNullException("startTag"), VisitList(node.Content), (XmlElementEndTagSyntax?)Visit(node.EndTag) ?? throw new ArgumentNullException("endTag"));
2149=> node.Update(VisitToken(node.LessThanToken), (XmlNameSyntax?)Visit(node.Name) ?? throw new ArgumentNullException("name"), VisitList(node.Attributes), VisitToken(node.GreaterThanToken));
2152=> node.Update(VisitToken(node.LessThanSlashToken), (XmlNameSyntax?)Visit(node.Name) ?? throw new ArgumentNullException("name"), VisitToken(node.GreaterThanToken));
2155=> node.Update(VisitToken(node.LessThanToken), (XmlNameSyntax?)Visit(node.Name) ?? throw new ArgumentNullException("name"), VisitList(node.Attributes), VisitToken(node.SlashGreaterThanToken));
2164=> node.Update((XmlNameSyntax?)Visit(node.Name) ?? throw new ArgumentNullException("name"), VisitToken(node.EqualsToken), VisitToken(node.StartQuoteToken), VisitList(node.TextTokens), VisitToken(node.EndQuoteToken));
2167=> node.Update((XmlNameSyntax?)Visit(node.Name) ?? throw new ArgumentNullException("name"), VisitToken(node.EqualsToken), VisitToken(node.StartQuoteToken), (CrefSyntax?)Visit(node.Cref) ?? throw new ArgumentNullException("cref"), VisitToken(node.EndQuoteToken));
2170=> node.Update((XmlNameSyntax?)Visit(node.Name) ?? throw new ArgumentNullException("name"), VisitToken(node.EqualsToken), VisitToken(node.StartQuoteToken), (IdentifierNameSyntax?)Visit(node.Identifier) ?? throw new ArgumentNullException("identifier"), VisitToken(node.EndQuoteToken));
2179=> node.Update(VisitToken(node.StartProcessingInstructionToken), (XmlNameSyntax?)Visit(node.Name) ?? throw new ArgumentNullException("name"), VisitList(node.TextTokens), VisitToken(node.EndProcessingInstructionToken));
2185=> node.Update(VisitToken(node.HashToken), VisitToken(node.IfKeyword), (ExpressionSyntax?)Visit(node.Condition) ?? throw new ArgumentNullException("condition"), VisitToken(node.EndOfDirectiveToken), node.IsActive, node.BranchTaken, node.ConditionValue);
2188=> node.Update(VisitToken(node.HashToken), VisitToken(node.ElifKeyword), (ExpressionSyntax?)Visit(node.Condition) ?? throw new ArgumentNullException("condition"), VisitToken(node.EndOfDirectiveToken), node.IsActive, node.BranchTaken, node.ConditionValue);
2224=> node.Update(VisitToken(node.HashToken), VisitToken(node.LineKeyword), (LineDirectivePositionSyntax?)Visit(node.Start) ?? throw new ArgumentNullException("start"), VisitToken(node.MinusToken), (LineDirectivePositionSyntax?)Visit(node.End) ?? throw new ArgumentNullException("end"), VisitToken(node.CharacterOffset), VisitToken(node.File), VisitToken(node.EndOfDirectiveToken), node.IsActive);
2266if (left == null) throw new ArgumentNullException(nameof(left));
2268if (right == null) throw new ArgumentNullException(nameof(right));
2280if (typeArgumentList == null) throw new ArgumentNullException(nameof(typeArgumentList));
2307if (alias == null) throw new ArgumentNullException(nameof(alias));
2309if (name == null) throw new ArgumentNullException(nameof(name));
2350if (elementType == null) throw new ArgumentNullException(nameof(elementType));
2373if (elementType == null) throw new ArgumentNullException(nameof(elementType));
2387if (parameterList == null) throw new ArgumentNullException(nameof(parameterList));
2449if (elementType == null) throw new ArgumentNullException(nameof(elementType));
2473if (type == null) throw new ArgumentNullException(nameof(type));
2508if (type == null) throw new ArgumentNullException(nameof(type));
2520if (type == null) throw new ArgumentNullException(nameof(type));
2532if (expression == null) throw new ArgumentNullException(nameof(expression));
2582if (operand == null) throw new ArgumentNullException(nameof(operand));
2609if (expression == null) throw new ArgumentNullException(nameof(expression));
2627if (operand == null) throw new ArgumentNullException(nameof(operand));
2660if (expression == null) throw new ArgumentNullException(nameof(expression));
2667if (name == null) throw new ArgumentNullException(nameof(name));
2686if (expression == null) throw new ArgumentNullException(nameof(expression));
2688if (whenNotNull == null) throw new ArgumentNullException(nameof(whenNotNull));
2700if (name == null) throw new ArgumentNullException(nameof(name));
2711if (argumentList == null) throw new ArgumentNullException(nameof(argumentList));
2737if (argumentList == null) throw new ArgumentNullException(nameof(argumentList));
2774if (left == null) throw new ArgumentNullException(nameof(left));
2801if (right == null) throw new ArgumentNullException(nameof(right));
2857if (left == null) throw new ArgumentNullException(nameof(left));
2875if (right == null) throw new ArgumentNullException(nameof(right));
2905if (condition == null) throw new ArgumentNullException(nameof(condition));
2907if (whenTrue == null) throw new ArgumentNullException(nameof(whenTrue));
2909if (whenFalse == null) throw new ArgumentNullException(nameof(whenFalse));
2991if (expression == null) throw new ArgumentNullException(nameof(expression));
3005if (expression == null) throw new ArgumentNullException(nameof(expression));
3019if (expression == null) throw new ArgumentNullException(nameof(expression));
3021if (type == null) throw new ArgumentNullException(nameof(type));
3046if (expression == null) throw new ArgumentNullException(nameof(expression));
3068if (type == null) throw new ArgumentNullException(nameof(type));
3082if (type == null) throw new ArgumentNullException(nameof(type));
3096if (type == null) throw new ArgumentNullException(nameof(type));
3108if (expression == null) throw new ArgumentNullException(nameof(expression));
3109if (argumentList == null) throw new ArgumentNullException(nameof(argumentList));
3120if (expression == null) throw new ArgumentNullException(nameof(expression));
3121if (argumentList == null) throw new ArgumentNullException(nameof(argumentList));
3164if (expression == null) throw new ArgumentNullException(nameof(expression));
3175if (expression == null) throw new ArgumentNullException(nameof(expression));
3183if (name == null) throw new ArgumentNullException(nameof(name));
3191if (type == null) throw new ArgumentNullException(nameof(type));
3192if (designation == null) throw new ArgumentNullException(nameof(designation));
3200if (type == null) throw new ArgumentNullException(nameof(type));
3202if (expression == null) throw new ArgumentNullException(nameof(expression));
3214if (block == null) throw new ArgumentNullException(nameof(block));
3221if (parameter == null) throw new ArgumentNullException(nameof(parameter));
3230if (expression == null) throw new ArgumentNullException(nameof(expression));
3241if (parameterList == null) throw new ArgumentNullException(nameof(parameterList));
3279if (argumentList == null) throw new ArgumentNullException(nameof(argumentList));
3295if (type == null) throw new ArgumentNullException(nameof(type));
3310if (expression == null) throw new ArgumentNullException(nameof(expression));
3312if (initializer == null) throw new ArgumentNullException(nameof(initializer));
3323if (expression == null) throw new ArgumentNullException(nameof(expression));
3348if (type == null) throw new ArgumentNullException(nameof(type));
3366if (initializer == null) throw new ArgumentNullException(nameof(initializer));
3382if (type == null) throw new ArgumentNullException(nameof(type));
3400if (initializer == null) throw new ArgumentNullException(nameof(initializer));
3423if (expression == null) throw new ArgumentNullException(nameof(expression));
3431if (expression == null) throw new ArgumentNullException(nameof(expression));
3442if (fromClause == null) throw new ArgumentNullException(nameof(fromClause));
3443if (body == null) throw new ArgumentNullException(nameof(body));
3450if (selectOrGroup == null) throw new ArgumentNullException(nameof(selectOrGroup));
3464if (expression == null) throw new ArgumentNullException(nameof(expression));
3486if (expression == null) throw new ArgumentNullException(nameof(expression));
3504if (inExpression == null) throw new ArgumentNullException(nameof(inExpression));
3506if (leftExpression == null) throw new ArgumentNullException(nameof(leftExpression));
3508if (rightExpression == null) throw new ArgumentNullException(nameof(rightExpression));
3544if (condition == null) throw new ArgumentNullException(nameof(condition));
3572if (expression == null) throw new ArgumentNullException(nameof(expression));
3599if (expression == null) throw new ArgumentNullException(nameof(expression));
3611if (groupExpression == null) throw new ArgumentNullException(nameof(groupExpression));
3613if (byExpression == null) throw new ArgumentNullException(nameof(byExpression));
3626if (body == null) throw new ArgumentNullException(nameof(body));
3676if (expression == null) throw new ArgumentNullException(nameof(expression));
3678if (pattern == null) throw new ArgumentNullException(nameof(pattern));
3690if (expression == null) throw new ArgumentNullException(nameof(expression));
3702if (condition == null) throw new ArgumentNullException(nameof(condition));
3724if (type == null) throw new ArgumentNullException(nameof(type));
3725if (designation == null) throw new ArgumentNullException(nameof(designation));
3733if (designation == null) throw new ArgumentNullException(nameof(designation));
3778if (pattern == null) throw new ArgumentNullException(nameof(pattern));
3789if (expression == null) throw new ArgumentNullException(nameof(expression));
3797if (pattern == null) throw new ArgumentNullException(nameof(pattern));
3819if (expression == null) throw new ArgumentNullException(nameof(expression));
3826if (type == null) throw new ArgumentNullException(nameof(type));
3839if (left == null) throw new ArgumentNullException(nameof(left));
3846if (right == null) throw new ArgumentNullException(nameof(right));
3866if (pattern == null) throw new ArgumentNullException(nameof(pattern));
3916if (expression == null) throw new ArgumentNullException(nameof(expression));
3932if (value == null) throw new ArgumentNullException(nameof(value));
3950if (statement == null) throw new ArgumentNullException(nameof(statement));
3979if (returnType == null) throw new ArgumentNullException(nameof(returnType));
3981if (parameterList == null) throw new ArgumentNullException(nameof(parameterList));
4018if (declaration == null) throw new ArgumentNullException(nameof(declaration));
4034if (type == null) throw new ArgumentNullException(nameof(type));
4061if (value == null) throw new ArgumentNullException(nameof(value));
4102if (expression == null) throw new ArgumentNullException(nameof(expression));
4135if (statement == null) throw new ArgumentNullException(nameof(statement));
4294if (condition == null) throw new ArgumentNullException(nameof(condition));
4296if (statement == null) throw new ArgumentNullException(nameof(statement));
4312if (statement == null) throw new ArgumentNullException(nameof(statement));
4315if (condition == null) throw new ArgumentNullException(nameof(condition));
4337if (statement == null) throw new ArgumentNullException(nameof(statement));
4360if (type == null) throw new ArgumentNullException(nameof(type));
4363if (expression == null) throw new ArgumentNullException(nameof(expression));
4365if (statement == null) throw new ArgumentNullException(nameof(statement));
4392if (variable == null) throw new ArgumentNullException(nameof(variable));
4394if (expression == null) throw new ArgumentNullException(nameof(expression));
4396if (statement == null) throw new ArgumentNullException(nameof(statement));
4420if (statement == null) throw new ArgumentNullException(nameof(statement));
4437if (declaration == null) throw new ArgumentNullException(nameof(declaration));
4439if (statement == null) throw new ArgumentNullException(nameof(statement));
4466if (block == null) throw new ArgumentNullException(nameof(block));
4492if (block == null) throw new ArgumentNullException(nameof(block));
4511if (expression == null) throw new ArgumentNullException(nameof(expression));
4513if (statement == null) throw new ArgumentNullException(nameof(statement));
4530if (condition == null) throw new ArgumentNullException(nameof(condition));
4532if (statement == null) throw new ArgumentNullException(nameof(statement));
4548if (statement == null) throw new ArgumentNullException(nameof(statement));
4566if (expression == null) throw new ArgumentNullException(nameof(expression));
4592if (pattern == null) throw new ArgumentNullException(nameof(pattern));
4609if (value == null) throw new ArgumentNullException(nameof(value));
4633if (governingExpression == null) throw new ArgumentNullException(nameof(governingExpression));
4651if (pattern == null) throw new ArgumentNullException(nameof(pattern));
4653if (expression == null) throw new ArgumentNullException(nameof(expression));
4669if (block == null) throw new ArgumentNullException(nameof(block));
4687if (block == null) throw new ArgumentNullException(nameof(block));
4703if (type == null) throw new ArgumentNullException(nameof(type));
4727if (filterExpression == null) throw new ArgumentNullException(nameof(filterExpression));
4740if (block == null) throw new ArgumentNullException(nameof(block));
4803if (namespaceOrType == null) throw new ArgumentNullException(nameof(namespaceOrType));
4820if (name == null) throw new ArgumentNullException(nameof(name));
4844if (name == null) throw new ArgumentNullException(nameof(name));
4887if (name == null) throw new ArgumentNullException(nameof(name));
4910if (expression == null) throw new ArgumentNullException(nameof(expression));
4921if (name == null) throw new ArgumentNullException(nameof(name));
5134if (returnType == null) throw new ArgumentNullException(nameof(returnType));
5136if (parameterList == null) throw new ArgumentNullException(nameof(parameterList));
5215if (type == null) throw new ArgumentNullException(nameof(type));
5222if (type == null) throw new ArgumentNullException(nameof(type));
5223if (argumentList == null) throw new ArgumentNullException(nameof(argumentList));
5235if (name == null) throw new ArgumentNullException(nameof(name));
5304if (type == null) throw new ArgumentNullException(nameof(type));
5345if (declaration == null) throw new ArgumentNullException(nameof(declaration));
5362if (declaration == null) throw new ArgumentNullException(nameof(declaration));
5378if (name == null) throw new ArgumentNullException(nameof(name));
5390if (returnType == null) throw new ArgumentNullException(nameof(returnType));
5392if (parameterList == null) throw new ArgumentNullException(nameof(parameterList));
5417if (returnType == null) throw new ArgumentNullException(nameof(returnType));
5464if (parameterList == null) throw new ArgumentNullException(nameof(parameterList));
5498if (type == null) throw new ArgumentNullException(nameof(type));
5499if (parameterList == null) throw new ArgumentNullException(nameof(parameterList));
5521if (parameterList == null) throw new ArgumentNullException(nameof(parameterList));
5559if (argumentList == null) throw new ArgumentNullException(nameof(argumentList));
5580if (parameterList == null) throw new ArgumentNullException(nameof(parameterList));
5605if (type == null) throw new ArgumentNullException(nameof(type));
5632if (expression == null) throw new ArgumentNullException(nameof(expression));
5644if (type == null) throw new ArgumentNullException(nameof(type));
5670if (type == null) throw new ArgumentNullException(nameof(type));
5672if (parameterList == null) throw new ArgumentNullException(nameof(parameterList));
5794if (type == null) throw new ArgumentNullException(nameof(type));
5844if (type == null) throw new ArgumentNullException(nameof(type));
5851if (container == null) throw new ArgumentNullException(nameof(container));
5853if (member == null) throw new ArgumentNullException(nameof(member));
5864if (name == null) throw new ArgumentNullException(nameof(name));
5876if (parameters == null) throw new ArgumentNullException(nameof(parameters));
5878if (member == null) throw new ArgumentNullException(nameof(member));
5976if (type == null) throw new ArgumentNullException(nameof(type));
6029if (type == null) throw new ArgumentNullException(nameof(type));
6044if (startTag == null) throw new ArgumentNullException(nameof(startTag));
6045if (endTag == null) throw new ArgumentNullException(nameof(endTag));
6057if (name == null) throw new ArgumentNullException(nameof(name));
6074if (name == null) throw new ArgumentNullException(nameof(name));
6087if (name == null) throw new ArgumentNullException(nameof(name));
6134if (name == null) throw new ArgumentNullException(nameof(name));
6162if (name == null) throw new ArgumentNullException(nameof(name));
6170if (cref == null) throw new ArgumentNullException(nameof(cref));
6187if (name == null) throw new ArgumentNullException(nameof(name));
6195if (identifier == null) throw new ArgumentNullException(nameof(identifier));
6239if (name == null) throw new ArgumentNullException(nameof(name));
6269if (condition == null) throw new ArgumentNullException(nameof(condition));
6283if (condition == null) throw new ArgumentNullException(nameof(condition));
6468if (start == null) throw new ArgumentNullException(nameof(start));
6470if (end == null) throw new ArgumentNullException(nameof(end));
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ResultProvider (1)
Microsoft.CodeAnalysis.CSharp.Features (2)
Microsoft.CodeAnalysis.CSharp.Scripting (4)
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Microsoft.CodeAnalysis.EditorFeatures (28)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
Microsoft.CodeAnalysis.EditorFeatures.Text (6)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (18)
Microsoft.CodeAnalysis.Extensions.Package (64)
Microsoft.CodeAnalysis.ExternalAccess.AspNetCore (6)
Microsoft.CodeAnalysis.ExternalAccess.Copilot (4)
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
Microsoft.CodeAnalysis.ExternalAccess.Xaml (1)
Microsoft.CodeAnalysis.Features (57)
Microsoft.CodeAnalysis.InteractiveHost (67)
Microsoft.CodeAnalysis.LanguageServer.Protocol (27)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (123)
Microsoft.CodeAnalysis.PublicApiAnalyzers (117)
Microsoft.CodeAnalysis.Remote.Workspaces (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (117)
Microsoft.CodeAnalysis.Scripting (23)
Microsoft.CodeAnalysis.Test.Utilities (6)
Microsoft.CodeAnalysis.Threading.Package (63)
Microsoft.CodeAnalysis.UnitTests (9)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.Workspaces (365)
CodeRefactorings\FixAllOccurences\RefactorAllState.cs (2)
40: this(refactorAllProvider, document ?? throw new ArgumentNullException(nameof(document)), document.Project, selectionSpan, codeRefactoringProvider,
52: this(refactorAllProvider, document: null, project ?? throw new ArgumentNullException(nameof(project)), selectionSpan, codeRefactoringProvider,
Microsoft.CodeAnalysis.Workspaces.Desktop (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild (8)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (66)
Microsoft.CodeAnalysis.Workspaces.UnitTests (5)
Microsoft.CommonLanguageServerProtocol.Framework.Example (1)
Microsoft.CommonLanguageServerProtocol.Framework.Package (3)
Microsoft.Data.Analysis (23)
Microsoft.Data.Analysis.Interactive (1)
Microsoft.Data.Analysis.Tests (5)
Microsoft.DotNet.Build.Manifest (2)
Microsoft.DotNet.Build.Tasks.Feed (10)
Microsoft.DotNet.Build.Tasks.Packaging (1)
Microsoft.DotNet.Build.Tasks.Workloads (3)
Microsoft.DotNet.Helix.Client (95)
Microsoft.DotNet.Helix.Sdk (6)
Microsoft.DotNet.Internal.SymbolHelper (1)
Microsoft.DotNet.MacOsPkg.Core (1)
Microsoft.DotNet.RemoteExecutor (2)
Microsoft.DotNet.SetupNugetSources.Tests (1)
Microsoft.DotNet.SignCheckLibrary (13)
Microsoft.DotNet.XliffTasks (4)
Microsoft.DotNet.XUnitAssert.Tests (11)
Microsoft.Extensions.AI (2)
Microsoft.Extensions.AI.Abstractions (2)
Microsoft.Extensions.AI.Abstractions.Tests (1)
Microsoft.Extensions.AI.Evaluation (2)
Microsoft.Extensions.AI.Evaluation.Console (2)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (8)
Microsoft.Extensions.AI.Evaluation.NLP (2)
Microsoft.Extensions.AI.Evaluation.Quality (2)
Microsoft.Extensions.AI.Evaluation.Reporting (2)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (2)
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (2)
Microsoft.Extensions.AI.Evaluation.Safety (2)
Microsoft.Extensions.AI.Integration.Tests (2)
Microsoft.Extensions.AI.OpenAI (4)
Microsoft.Extensions.AmbientMetadata.Application (2)
Microsoft.Extensions.AmbientMetadata.Build (2)
Microsoft.Extensions.AsyncState (2)
Microsoft.Extensions.Caching.Hybrid (2)
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (1)
Microsoft.Extensions.Compliance.Abstractions (2)
Microsoft.Extensions.Compliance.Redaction (2)
Microsoft.Extensions.Compliance.Testing (2)
Microsoft.Extensions.Configuration.KeyPerFile (1)
Microsoft.Extensions.DataIngestion (2)
Microsoft.Extensions.DataIngestion.Abstractions (3)
Microsoft.Extensions.DataIngestion.Markdig (2)
Microsoft.Extensions.DataIngestion.MarkItDown (2)
Microsoft.Extensions.DependencyInjection (2)
Microsoft.Extensions.DependencyInjection.Abstractions (1)
Microsoft.Extensions.DependencyModel (3)
Microsoft.Extensions.Diagnostics (3)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (2)
Microsoft.Extensions.Diagnostics.HealthChecks (4)
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (2)
Microsoft.Extensions.Diagnostics.Probes (2)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Microsoft.Extensions.Diagnostics.Testing (2)
Microsoft.Extensions.FileProviders.Physical (1)
Microsoft.Extensions.FileSystemGlobbing (1)
Microsoft.Extensions.Hosting (1)
Microsoft.Extensions.Hosting.Testing (2)
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Microsoft.Extensions.Http.Polly (27)
Microsoft.Extensions.Http.Resilience (2)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Extensions.ML (6)
Microsoft.Extensions.ObjectPool.DependencyInjection (2)
Microsoft.Extensions.Options.Contextual (2)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Extensions.Primitives (2)
Microsoft.Extensions.Resilience (2)
Microsoft.Extensions.ServiceDiscovery (2)
Microsoft.Extensions.ServiceDiscovery.Abstractions (3)
Microsoft.Extensions.ServiceDiscovery.Dns (2)
Microsoft.Extensions.ServiceDiscovery.Yarp (2)
Microsoft.Extensions.Telemetry (2)
Microsoft.Extensions.Telemetry.Abstractions (2)
Microsoft.Extensions.Telemetry.Tests (1)
Microsoft.Extensions.TimeProvider.Testing (2)
Microsoft.Extensions.WebEncoders (3)
Microsoft.Interop.ComInterfaceGenerator (1)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
Microsoft.Interop.SourceGeneration (1)
Microsoft.JSInterop (2)
Microsoft.Maui (48)
Microsoft.Maui.Controls (194)
Microsoft.Maui.Controls.Build.Tasks (7)
Microsoft.Maui.Controls.Maps (2)
Microsoft.Maui.Controls.SourceGen (5)
Microsoft.Maui.Controls.Xaml (9)
Microsoft.Maui.Essentials (28)
Microsoft.Maui.Graphics (4)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (3)
Microsoft.ML.AutoML (4)
Microsoft.ML.AutoML.SourceGenerator (10)
Microsoft.ML.Benchmarks.Tests (1)
Microsoft.ML.CodeGenerator (23)
Microsoft.ML.Core (11)
Microsoft.ML.CpuMath (6)
Microsoft.ML.Data (1)
Microsoft.ML.DataView (22)
Microsoft.ML.GenAI.LLaMA (7)
Microsoft.ML.GenAI.Mistral (4)
Microsoft.ML.GenAI.Phi (8)
Microsoft.ML.GenAI.Samples (1)
Microsoft.ML.ImageAnalytics (2)
Microsoft.ML.IntegrationTests (1)
Microsoft.ML.TestFrameworkCommon (2)
Microsoft.ML.Tokenizers (69)
Model\TiktokenTokenizer.cs (12)
47this(string.IsNullOrEmpty(vocabFilePath) ? throw new ArgumentNullException(nameof(vocabFilePath)) : File.OpenRead(vocabFilePath), preTokenizer, specialTokens, normalizer, cacheSize, disposeStream: true)
62this(vocabStream ?? throw new ArgumentNullException(nameof(vocabStream)), preTokenizer, specialTokens, normalizer, cacheSize, disposeStream: false)
85_encoder = encoder ?? throw new ArgumentNullException(nameof(encoder));
86_decoder = decoder ?? throw new ArgumentNullException(nameof(decoder));
87_vocab = vocab ?? throw new ArgumentNullException(nameof(vocab));
806throw new ArgumentNullException(nameof(ids));
874throw new ArgumentNullException(nameof(ids));
1393throw new ArgumentNullException(nameof(vocabStream));
1425throw new ArgumentNullException(nameof(vocabFilePath));
1450throw new ArgumentNullException(nameof(modelName));
1490throw new ArgumentNullException(nameof(modelName));
1531throw new ArgumentNullException(nameof(encodingName));
Microsoft.ML.Tokenizers.Data.Tests (2)
Microsoft.ML.Tokenizers.Tests (3)
Microsoft.ML.TorchSharp (12)
Microsoft.Net.Http.Headers (8)
Microsoft.VisualBasic.Core (2)
Microsoft.VisualStudio.LanguageServices (38)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
Microsoft.VisualStudio.LanguageServices.Implementation (1)
Microsoft.VisualStudio.LanguageServices.LiveShare (8)
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Microsoft.Web.Xdt.Extensions (1)
PresentationBuildTasks (37)
PresentationCore (62)
PresentationFramework (68)
ReachFramework (1)
Roslyn.Diagnostics.Analyzers (123)
Roslyn.Diagnostics.CSharp.Analyzers (2)
Roslyn.Test.PdbUtilities (1)
Sample (4)
ScenarioTests.Common.Tests (3)
Security.TransportSecurity.IntegrationTests (1)
Shared (3)
Shared.Tests (1)
System.CodeDom (1)
System.Collections (6)
System.Collections.Concurrent (1)
System.Collections.Immutable (5)
System.Collections.NonGeneric (3)
System.Collections.Specialized (1)
System.ComponentModel.Annotations (2)
System.ComponentModel.Composition (1)
System.Composition.AttributedModel (2)
System.Composition.Hosting (1)
System.Composition.Runtime (5)
System.Composition.TypedParts (4)
System.Configuration.ConfigurationManager (10)
System.Data.Common (4)
System.Data.Odbc (2)
System.Diagnostics.DiagnosticSource (20)
System.Diagnostics.Process (1)
System.DirectoryServices.Protocols (4)
System.Drawing.Common (12)
System.Drawing.Common.Tests (1)
System.Formats.Asn1 (2)
System.IO.Packaging (15)
System.IO.Pipelines (1)
System.IO.Ports (9)
System.Linq (1)
System.Linq.AsyncEnumerable (1)
System.Linq.Expressions (6)
System.Memory (1)
System.Memory.Data (1)
System.Net.HttpListener (2)
System.Net.Ping (2)
System.Net.Primitives (1)
System.Net.Quic (2)
System.Net.Requests (1)
System.Net.Security (3)
System.Net.ServerSentEvents (1)
System.Net.Sockets (1)
System.Net.WebHeaderCollection (3)
System.Net.WebSockets (1)
System.Net.WebSockets.Client (1)
System.ObjectModel (2)
System.Private.CoreLib (55)
System.Private.CoreLib.Generators (1)
System.Private.DataContractSerialization (9)
System.Private.Windows.Core (9)
System.Private.Windows.GdiPlus (2)
System.Private.Xml (5)
System.Reflection.Context (1)
System.Reflection.Metadata (3)
System.Reflection.MetadataLoadContext (4)
System.Resources.Extensions (2)
System.Runtime.Caching (1)
System.Runtime.Numerics (1)
System.Runtime.Serialization.Formatters (2)
System.Runtime.Serialization.Schema (19)
System.Security.Cryptography (12)
System.Security.Cryptography.Cose (1)
System.Security.Cryptography.Pkcs (4)
System.Security.Cryptography.Xml (8)
System.ServiceModel.Federation (19)
System.ServiceModel.Http (5)
System.ServiceModel.NetTcp (2)
System.ServiceModel.Primitives (237)
System.ServiceModel.Syndication (1)
System.ServiceModel.UnixDomainSocket (1)
System.Text.Encoding.CodePages (16)
System.Text.Encodings.Web (2)
System.Text.Json (4)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions (1)
System.Text.RegularExpressions.Generator (1)
System.Threading.RateLimiting (1)
System.Threading.Tasks.Dataflow (25)
System.Windows.Forms (2)
System.Windows.Forms.Design (4)
System.Windows.Forms.IntegrationTests.Common (4)
System.Windows.Forms.Primitives (2)
System.Windows.Forms.Tests (1)
System.Windows.Forms.UI.IntegrationTests (1)
System.Xaml (33)
Test.Utilities (106)
Text.Analyzers (123)
UIAutomationClient (2)
UnitTests.Common (1)
WindowsFormsIntegration (6)
xunit.assert (2)
xunit.console (19)
24155 references to ArgumentNullException
aspire (128)
Aspire.Azure.AI.Inference (5)
Aspire.Azure.AI.Inference.Tests (6)
Aspire.Azure.AI.OpenAI (5)
Aspire.Azure.AI.OpenAI.Tests (15)
Aspire.Azure.Data.Tables (5)
Aspire.Azure.Data.Tables.Tests (6)
Aspire.Azure.Messaging.EventHubs (12)
Aspire.Azure.Messaging.EventHubs.Tests (30)
Aspire.Azure.Messaging.ServiceBus (4)
Aspire.Azure.Messaging.ServiceBus.Tests (6)
Aspire.Azure.Messaging.WebPubSub (5)
Aspire.Azure.Messaging.WebPubSub.Tests (7)
Aspire.Azure.Npgsql (4)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (4)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (5)
Aspire.Azure.Npgsql.Tests (6)
Aspire.Azure.Search.Documents (4)
Aspire.Azure.Search.Documents.Tests (6)
Aspire.Azure.Security.KeyVault (8)
Aspire.Azure.Security.KeyVault.Tests (12)
Aspire.Azure.Storage.Blobs (7)
Aspire.Azure.Storage.Blobs.Tests (6)
Aspire.Azure.Storage.Queues (8)
Aspire.Azure.Storage.Queues.Tests (12)
Aspire.Cli.Tests (2)
Aspire.Confluent.Kafka (6)
Aspire.Confluent.Kafka.Tests (12)
Aspire.Dashboard (15)
Aspire.Dashboard.Components.Tests (2)
Aspire.Dashboard.Tests (2)
Aspire.Hosting (441)
Aspire.Hosting.Azure (41)
Aspire.Hosting.Azure.AIFoundry (8)
Aspire.Hosting.Azure.AppConfiguration (4)
Aspire.Hosting.Azure.AppContainers (17)
Aspire.Hosting.Azure.ApplicationInsights (1)
Aspire.Hosting.Azure.AppService (3)
Aspire.Hosting.Azure.CognitiveServices (8)
Aspire.Hosting.Azure.ContainerRegistry (5)
Aspire.Hosting.Azure.CosmosDB (16)
Aspire.Hosting.Azure.EventHubs (14)
Aspire.Hosting.Azure.Functions (7)
Aspire.Hosting.Azure.KeyVault (15)
Aspire.Hosting.Azure.Kusto (10)
Aspire.Hosting.Azure.Kusto.Tests (10)
Aspire.Hosting.Azure.OperationalInsights (2)
Aspire.Hosting.Azure.PostgreSQL (6)
Aspire.Hosting.Azure.Redis (11)
Aspire.Hosting.Azure.Search (1)
Aspire.Hosting.Azure.ServiceBus (20)
Aspire.Hosting.Azure.SignalR (2)
Aspire.Hosting.Azure.Sql (4)
Aspire.Hosting.Azure.Storage (16)
Aspire.Hosting.Azure.Tests (293)
Aspire.Hosting.Azure.WebPubSub (4)
Aspire.Hosting.Containers.Tests (1)
Aspire.Hosting.DevTunnels (20)
Aspire.Hosting.Docker (15)
Aspire.Hosting.Garnet (4)
Aspire.Hosting.Garnet.Tests (13)
Aspire.Hosting.GitHub.Models (5)
Aspire.Hosting.JavaScript (7)
Aspire.Hosting.JavaScript.Tests (14)
Aspire.Hosting.Kafka (5)
Aspire.Hosting.Kafka.Tests (14)
Aspire.Hosting.Keycloak (7)
Aspire.Hosting.Keycloak.Tests (14)
Aspire.Hosting.Kubernetes (7)
Aspire.Hosting.Maui (15)
Aspire.Hosting.Milvus (8)
Aspire.Hosting.Milvus.Tests (27)
Aspire.Hosting.MongoDB (8)
Aspire.Hosting.MongoDB.Tests (30)
Aspire.Hosting.MySql (14)
Aspire.Hosting.MySql.Tests (33)
Aspire.Hosting.Nats (5)
Aspire.Hosting.Nats.Tests (17)
Aspire.Hosting.OpenAI (6)
Aspire.Hosting.OpenAI.Tests (4)
Aspire.Hosting.Oracle (8)
Aspire.Hosting.Oracle.Tests (27)
Aspire.Hosting.PostgreSQL (19)
Aspire.Hosting.PostgreSQL.Tests (34)
Aspire.Hosting.Python (13)
Aspire.Hosting.Python.Tests (32)
Aspire.Hosting.Qdrant (7)
Aspire.Hosting.Qdrant.Tests (15)
Aspire.Hosting.RabbitMQ (6)
Aspire.Hosting.RabbitMQ.Tests (15)
Aspire.Hosting.Redis (13)
Aspire.Hosting.Redis.Tests (26)
Aspire.Hosting.Seq (5)
Aspire.Hosting.Seq.Tests (12)
Aspire.Hosting.SqlServer (12)
Aspire.Hosting.SqlServer.Tests (18)
Aspire.Hosting.Testing (10)
Aspire.Hosting.Testing.Tests (58)
Aspire.Hosting.Tests (51)
ApplicationModel\Docker\DockerfileStageTests.cs (12)
37Assert.Throws<ArgumentNullException>(() => stage.WorkDir(null!));
64Assert.Throws<ArgumentNullException>(() => stage.Run(null!));
91Assert.Throws<ArgumentNullException>(() => stage.Copy(null!, "./"));
93Assert.Throws<ArgumentNullException>(() => stage.Copy("src/", null!));
120Assert.Throws<ArgumentNullException>(() => stage.CopyFrom(null!, "/app", "/dest"));
122Assert.Throws<ArgumentNullException>(() => stage.CopyFrom("builder", null!, "/dest"));
124Assert.Throws<ArgumentNullException>(() => stage.CopyFrom("builder", "/app", null!));
151Assert.Throws<ArgumentNullException>(() => stage.Env(null!, "value"));
162Assert.Throws<ArgumentNullException>(() => stage.Env("NODE_ENV", null!));
216Assert.Throws<ArgumentNullException>(() => stage.Cmd(null!));
254Assert.Throws<ArgumentNullException>(() => stage.User(null!));
446Assert.Throws<ArgumentNullException>(() => stage.Comment(null!));
Aspire.Hosting.Valkey (5)
Aspire.Hosting.Valkey.Tests (11)
Aspire.Hosting.Yarp (8)
Aspire.Hosting.Yarp.Tests (1)
Aspire.Keycloak.Authentication (2)
Aspire.Keycloak.Authentication.Tests (36)
Aspire.Microsoft.Azure.Cosmos (3)
Aspire.Microsoft.Azure.Cosmos.Tests (6)
Aspire.Microsoft.Azure.StackExchangeRedis (1)
Aspire.Microsoft.Data.SqlClient (2)
Aspire.Microsoft.Data.SqlClient.Tests (6)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (8)
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (6)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (5)
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (5)
Aspire.Milvus.Client (3)
Aspire.Milvus.Client.Tests (6)
Aspire.MongoDB.Driver (3)
Aspire.MongoDB.Driver.Tests (6)
Aspire.MongoDB.Driver.v2.Tests (6)
Aspire.MySqlConnector (4)
Aspire.MySqlConnector.Tests (6)
Aspire.NATS.Net (6)
Aspire.NATS.Net.Tests (8)
Aspire.Npgsql (4)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (5)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (5)
Aspire.Npgsql.Tests (6)
Aspire.OpenAI (8)
Aspire.OpenAI.Tests (19)
Aspire.Oracle.EntityFrameworkCore (5)
Aspire.Oracle.EntityFrameworkCore.Tests (5)
Aspire.Playground.Tests (14)
Aspire.Pomelo.EntityFrameworkCore.MySql (5)
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (5)
Aspire.Qdrant.Client (3)
Aspire.Qdrant.Client.Tests (6)
Aspire.RabbitMQ.Client (2)
Aspire.RabbitMQ.Client.Tests (6)
Aspire.Seq (2)
Aspire.Seq.Tests (3)
Aspire.StackExchange.Redis (2)
Aspire.StackExchange.Redis.DistributedCaching (4)
Aspire.StackExchange.Redis.DistributedCaching.Tests (6)
Aspire.StackExchange.Redis.OutputCaching (3)
Aspire.StackExchange.Redis.OutputCaching.Tests (6)
Aspire.StackExchange.Redis.Tests (6)
CodeGenerator (1)
ConfigurationSchemaGenerator (1)
CorsMiddlewareWebSite (1)
CustomEncryptorSample (2)
dotnet-razorpagegenerator (2)
dotnet-svcutil-lib (13)
dotnet-user-jwts (1)
EventSourceGenerator (1)
GenerateDocumentationAndConfigFiles (32)
http2cat (1)
IIS.FunctionalTests (1)
IIS.LongTests (1)
IIS.NewHandler.FunctionalTests (1)
IIS.NewShim.FunctionalTests (1)
IIS.ShadowCopy.Tests (1)
IISExpress.FunctionalTests (1)
illink (3)
ILLink.RoslynAnalyzer (1)
Infrastructure.Common (1)
InProcessWebSite (1)
Metrics (45)
Metrics.Legacy (45)
Microsoft.Analyzers.Local.Tests (12)
Microsoft.Arcade.Test.Common (1)
Microsoft.AspNetCore (4)
Microsoft.AspNetCore.Antiforgery (18)
Microsoft.AspNetCore.Antiforgery.Test (4)
Microsoft.AspNetCore.AsyncState (8)
Microsoft.AspNetCore.AsyncState.Tests (1)
Microsoft.AspNetCore.Authentication (29)
Microsoft.AspNetCore.Authentication.Abstractions (15)
Microsoft.AspNetCore.Authentication.BearerToken (3)
Microsoft.AspNetCore.Authentication.Cookies (12)
Microsoft.AspNetCore.Authentication.Core (4)
Microsoft.AspNetCore.Authentication.JwtBearer (1)
Microsoft.AspNetCore.Authentication.Negotiate (1)
Microsoft.AspNetCore.Authentication.Negotiate.Test (2)
Microsoft.AspNetCore.Authentication.OAuth (14)
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
Microsoft.AspNetCore.Authentication.Test (9)
Microsoft.AspNetCore.Authentication.Twitter (4)
Microsoft.AspNetCore.Authentication.WsFederation (2)
Microsoft.AspNetCore.Authorization (2)
Microsoft.AspNetCore.Authorization.Policy (13)
Microsoft.AspNetCore.AzureAppServicesIntegration (1)
Microsoft.AspNetCore.BrowserTesting (2)
Microsoft.AspNetCore.Components (122)
Microsoft.AspNetCore.Components.Authorization (2)
Microsoft.AspNetCore.Components.Endpoints (30)
Microsoft.AspNetCore.Components.Endpoints.Tests (3)
Microsoft.AspNetCore.Components.Forms (3)
Microsoft.AspNetCore.Components.Forms.Tests (10)
Microsoft.AspNetCore.Components.Server (17)
Microsoft.AspNetCore.Components.Tests (4)
Microsoft.AspNetCore.Components.Web (39)
Microsoft.AspNetCore.Components.WebAssembly (31)
Microsoft.AspNetCore.Components.WebAssembly.Server (2)
Microsoft.AspNetCore.Components.WebView (5)
Microsoft.AspNetCore.Components.WebView.Maui (3)
Microsoft.AspNetCore.Components.WebView.Test (3)
Microsoft.AspNetCore.Components.WebView.WindowsForms (3)
Microsoft.AspNetCore.Components.WebView.Wpf (3)
Microsoft.AspNetCore.CookiePolicy (10)
Microsoft.AspNetCore.CookiePolicy.Test (8)
Microsoft.AspNetCore.Cors (36)
Microsoft.AspNetCore.Cors.Test (2)
Microsoft.AspNetCore.Cryptography.KeyDerivation (2)
Microsoft.AspNetCore.DataProtection (2)
Microsoft.AspNetCore.DataProtection.Abstractions (2)
Microsoft.AspNetCore.DataProtection.EntityFrameworkCore (1)
Microsoft.AspNetCore.DataProtection.Extensions (4)
Microsoft.AspNetCore.DataProtection.StackExchangeRedis (2)
Microsoft.AspNetCore.Diagnostics (42)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (23)
Microsoft.AspNetCore.Diagnostics.HealthChecks (18)
Microsoft.AspNetCore.Diagnostics.Middleware (10)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (13)
Microsoft.AspNetCore.Grpc.JsonTranscoding (5)
Microsoft.AspNetCore.Grpc.Swagger (1)
Microsoft.AspNetCore.HeaderParsing (7)
Microsoft.AspNetCore.HeaderPropagation (25)
Microsoft.AspNetCore.HostFiltering (3)
Microsoft.AspNetCore.Hosting (21)
Microsoft.AspNetCore.Hosting.Abstractions (11)
Microsoft.AspNetCore.Hosting.Tests (3)
Microsoft.AspNetCore.Html.Abstractions (24)
Microsoft.AspNetCore.Http (31)
Microsoft.AspNetCore.Http.Abstractions (52)
Microsoft.AspNetCore.Http.Abstractions.Tests (10)
Microsoft.AspNetCore.Http.Connections (5)
Microsoft.AspNetCore.Http.Connections.Client (2)
Microsoft.AspNetCore.Http.Extensions (79)
Microsoft.AspNetCore.Http.Features (10)
Microsoft.AspNetCore.Http.Results (123)
Microsoft.AspNetCore.Http.Results.Tests (129)
ResultsOfTTests.Generated.cs (15)
75await Assert.ThrowsAsync<ArgumentNullException>(async () =>
223Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0)));
224Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2>>(((Delegate)GeneratedCodeIsUpToDate).GetMethodInfo(), null));
290await Assert.ThrowsAsync<ArgumentNullException>(async () =>
503Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0)));
504Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3>>(((Delegate)GeneratedCodeIsUpToDate).GetMethodInfo(), null));
574await Assert.ThrowsAsync<ArgumentNullException>(async () =>
860Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3, ProvidesMetadataResult4>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0)));
861Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3, ProvidesMetadataResult4>>(((Delegate)GeneratedCodeIsUpToDate).GetMethodInfo(), null));
935await Assert.ThrowsAsync<ArgumentNullException>(async () =>
1302Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3, ProvidesMetadataResult4, ProvidesMetadataResult5>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0)));
1303Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3, ProvidesMetadataResult4, ProvidesMetadataResult5>>(((Delegate)GeneratedCodeIsUpToDate).GetMethodInfo(), null));
1381await Assert.ThrowsAsync<ArgumentNullException>(async () =>
1837Assert.Throws<ArgumentNullException>("method", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3, ProvidesMetadataResult4, ProvidesMetadataResult5, ProvidesMetadataResult6>>(null, new RouteEndpointBuilder(requestDelegate: null, RoutePatternFactory.Parse("/"), order: 0)));
1838Assert.Throws<ArgumentNullException>("builder", () => PopulateMetadata<Results<ProvidesMetadataResult1, ProvidesMetadataResult2, ProvidesMetadataResult3, ProvidesMetadataResult4, ProvidesMetadataResult5, ProvidesMetadataResult6>>(((Delegate)GeneratedCodeIsUpToDate).GetMethodInfo(), null));
ResultsTests.cs (15)
344Assert.Throws<ArgumentNullException>("contents", () => Results.Bytes(null));
350Assert.Throws<ArgumentNullException>("fileContents", () => Results.File(default(byte[])));
356Assert.Throws<ArgumentNullException>("fileStream", () => Results.File(default(Stream)));
362Assert.Throws<ArgumentNullException>("stream", () => Results.Stream(default(Stream)));
368Assert.Throws<ArgumentNullException>("pipeReader", () => Results.Stream(default(PipeReader)));
374Assert.Throws<ArgumentNullException>("streamWriterCallback", () => TypedResults.Stream(default(Func<Stream, Task>)));
478Assert.Throws<ArgumentNullException>("principal", () => Results.SignIn(null));
1039Assert.Throws<ArgumentNullException>("context", () => Results.Json<object>(null, context: null));
1045Assert.Throws<ArgumentNullException>("context", () => Results.Json(null, type: typeof(object), context: null));
1065Assert.Throws<ArgumentNullException>("jsonTypeInfo", () => Results.Json(null, jsonTypeInfo: null));
1071Assert.Throws<ArgumentNullException>("jsonTypeInfo", () => Results.Json<object>(null, jsonTypeInfo: null));
1077Assert.Throws<ArgumentNullException>("localUrl", () => Results.LocalRedirect(default(string)));
1244Assert.Throws<ArgumentNullException>("problemDetails", () => Results.Problem(default(ProblemDetails)));
1392Assert.Throws<ArgumentNullException>("errors", () => Results.ValidationProblem(default(IDictionary<string, string[]>)));
1460Assert.Throws<ArgumentNullException>("url", () => Results.Redirect(default(string)));
TypedResultsTests.cs (17)
99Assert.Throws<ArgumentNullException>("uri", () => TypedResults.Accepted(default(Uri)));
105Assert.Throws<ArgumentNullException>("uri", () => TypedResults.Accepted(default(Uri), default(object)));
318Assert.Throws<ArgumentNullException>("contents", () => TypedResults.Bytes(null));
324Assert.Throws<ArgumentNullException>("fileContents", () => TypedResults.File(default(byte[])));
330Assert.Throws<ArgumentNullException>("fileStream", () => TypedResults.File(default(Stream)));
336Assert.Throws<ArgumentNullException>("stream", () => TypedResults.Stream(default(Stream)));
342Assert.Throws<ArgumentNullException>("pipeReader", () => TypedResults.Stream(default(PipeReader)));
348Assert.Throws<ArgumentNullException>("streamWriterCallback", () => TypedResults.Stream(default(Func<Stream, Task>)));
354Assert.Throws<ArgumentNullException>("path", () => TypedResults.PhysicalFile(default(string)));
366Assert.Throws<ArgumentNullException>("path", () => TypedResults.VirtualFile(default(string)));
488Assert.Throws<ArgumentNullException>("principal", () => TypedResults.SignIn(null));
899Assert.Throws<ArgumentNullException>("context", () => TypedResults.Json(data, context: null));
915Assert.Throws<ArgumentNullException>("jsonTypeInfo", () => TypedResults.Json(data, jsonTypeInfo: null));
921Assert.Throws<ArgumentNullException>("localUrl", () => TypedResults.LocalRedirect(default(string)));
1060Assert.Throws<ArgumentNullException>("problemDetails", () => TypedResults.Problem(default(ProblemDetails)));
1184Assert.Throws<ArgumentNullException>("errors", () => TypedResults.ValidationProblem(default(IDictionary<string, string[]>)));
1242Assert.Throws<ArgumentNullException>("url", () => TypedResults.Redirect(default(string)));
Microsoft.AspNetCore.Http.Tests (4)
Microsoft.AspNetCore.HttpLogging (21)
Microsoft.AspNetCore.HttpLogging.Tests (11)
Microsoft.AspNetCore.HttpOverrides (17)
Microsoft.AspNetCore.HttpsPolicy (10)
Microsoft.AspNetCore.HttpsPolicy.Tests (2)
Microsoft.AspNetCore.Identity (29)
Microsoft.AspNetCore.Identity.EntityFrameworkCore (66)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (47)
UserStoreTest.cs (47)
105Assert.Throws<ArgumentNullException>("context", () => new UserStore(null));
107await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetUserIdAsync(null));
108await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetUserNameAsync(null));
109await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.SetUserNameAsync(null, null));
110await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.CreateAsync(null));
111await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.UpdateAsync(null));
112await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.DeleteAsync(null));
113await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.AddClaimsAsync(null, null));
114await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.ReplaceClaimAsync(null, null, null));
115await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.RemoveClaimsAsync(null, null));
116await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetClaimsAsync(null));
117await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetLoginsAsync(null));
118await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetRolesAsync(null));
119await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.AddLoginAsync(null, null));
121Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.RemoveLoginAsync(null, null, null));
122await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.AddToRoleAsync(null, null));
124Assert.ThrowsAsync<ArgumentNullException>("user",
126await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.IsInRoleAsync(null, null));
127await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetPasswordHashAsync(null));
129Assert.ThrowsAsync<ArgumentNullException>("user",
131await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetSecurityStampAsync(null));
132await Assert.ThrowsAsync<ArgumentNullException>("user",
134await Assert.ThrowsAsync<ArgumentNullException>("login", async () => await store.AddLoginAsync(new IdentityUser("fake"), null));
135await Assert.ThrowsAsync<ArgumentNullException>("claims",
137await Assert.ThrowsAsync<ArgumentNullException>("claims",
139await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetEmailConfirmedAsync(null));
140await Assert.ThrowsAsync<ArgumentNullException>("user",
142await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetEmailAsync(null));
143await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.SetEmailAsync(null, null));
144await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetPhoneNumberAsync(null));
145await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.SetPhoneNumberAsync(null, null));
146await Assert.ThrowsAsync<ArgumentNullException>("user",
148await Assert.ThrowsAsync<ArgumentNullException>("user",
150await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetTwoFactorEnabledAsync(null));
151await Assert.ThrowsAsync<ArgumentNullException>("user",
153await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.RedeemCodeAsync(user: null, code: "fake", default));
154await Assert.ThrowsAsync<ArgumentNullException>("code", async () => await store.RedeemCodeAsync(new IdentityUser("fake"), code: null, default));
156await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetAccessFailedCountAsync(null));
157await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetLockoutEnabledAsync(null));
158await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.SetLockoutEnabledAsync(null, false));
159await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.GetLockoutEndDateAsync(null));
160await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.SetLockoutEndDateAsync(null, new DateTimeOffset()));
161await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.ResetAccessFailedCountAsync(null));
162await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await store.IncrementAccessFailedCountAsync(null));
163await Assert.ThrowsAsync<ArgumentNullException>("normalizedRoleName", async () => await store.AddToRoleAsync(new IdentityUser("fake"), null));
164await Assert.ThrowsAsync<ArgumentNullException>("normalizedRoleName", async () => await store.RemoveFromRoleAsync(new IdentityUser("fake"), null));
165await Assert.ThrowsAsync<ArgumentNullException>("normalizedRoleName", async () => await store.IsInRoleAsync(new IdentityUser("fake"), null));
Microsoft.AspNetCore.Identity.FunctionalTests (2)
Microsoft.AspNetCore.Identity.InMemory.Test (1)
Microsoft.AspNetCore.Identity.Test (87)
SignInManagerTest.cs (3)
28Assert.Throws<ArgumentNullException>("userManager", () => new SignInManager<PocoUser>(null, null, null, null, null, null, null));
30Assert.Throws<ArgumentNullException>("contextAccessor", () => new SignInManager<PocoUser>(userManager, null, null, null, null, null, null));
34Assert.Throws<ArgumentNullException>("claimsFactory", () => new SignInManager<PocoUser>(userManager, contextAccessor.Object, null, null, null, null, null));
UserManagerTest.cs (72)
1350Assert.Throws<ArgumentNullException>("store",
1355await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await manager.CreateAsync(null));
1356await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await manager.CreateAsync(null, null));
1358Assert.ThrowsAsync<ArgumentNullException>("password",
1360await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await manager.UpdateAsync(null));
1361await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await manager.DeleteAsync(null));
1362await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await manager.AddClaimAsync(null, null));
1363await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await manager.ReplaceClaimAsync(null, null, null));
1364await Assert.ThrowsAsync<ArgumentNullException>("user", async () => await manager.AddClaimsAsync(null, null));
1365await Assert.ThrowsAsync<ArgumentNullException>("userName", async () => await manager.FindByNameAsync(null));
1366await Assert.ThrowsAsync<ArgumentNullException>("login", async () => await manager.AddLoginAsync(null, null));
1367await Assert.ThrowsAsync<ArgumentNullException>("loginProvider",
1369await Assert.ThrowsAsync<ArgumentNullException>("providerKey",
1371await Assert.ThrowsAsync<ArgumentNullException>("email", async () => await manager.FindByEmailAsync(null));
1372Assert.Throws<ArgumentNullException>("provider", () => manager.RegisterTokenProvider("whatever", null));
1373await Assert.ThrowsAsync<ArgumentNullException>("roles", async () => await manager.AddToRolesAsync(new PocoUser(), null));
1374await Assert.ThrowsAsync<ArgumentNullException>("roles", async () => await manager.RemoveFromRolesAsync(new PocoUser(), null));
1375await Assert.ThrowsAsync<ArgumentNullException>("passkey", async () => await manager.AddOrUpdatePasskeyAsync(new PocoUser(), null));
1376await Assert.ThrowsAsync<ArgumentNullException>("credentialId", async () => await manager.GetPasskeyAsync(new PocoUser(), null));
1377await Assert.ThrowsAsync<ArgumentNullException>("credentialId", async () => await manager.FindByPasskeyIdAsync(null));
1378await Assert.ThrowsAsync<ArgumentNullException>("credentialId", async () => await manager.RemovePasskeyAsync(new PocoUser(), null));
1386await Assert.ThrowsAsync<ArgumentNullException>("user",
1388await Assert.ThrowsAsync<ArgumentNullException>("user",
1390await Assert.ThrowsAsync<ArgumentNullException>("user",
1392await Assert.ThrowsAsync<ArgumentNullException>("user",
1394await Assert.ThrowsAsync<ArgumentNullException>("user",
1396await Assert.ThrowsAsync<ArgumentNullException>("user",
1398await Assert.ThrowsAsync<ArgumentNullException>("user",
1400await Assert.ThrowsAsync<ArgumentNullException>("user",
1402await Assert.ThrowsAsync<ArgumentNullException>("user",
1404await Assert.ThrowsAsync<ArgumentNullException>("user",
1406await Assert.ThrowsAsync<ArgumentNullException>("user",
1408await Assert.ThrowsAsync<ArgumentNullException>("user",
1410await Assert.ThrowsAsync<ArgumentNullException>("user",
1412await Assert.ThrowsAsync<ArgumentNullException>("user",
1414await Assert.ThrowsAsync<ArgumentNullException>("user",
1416await Assert.ThrowsAsync<ArgumentNullException>("user",
1418await Assert.ThrowsAsync<ArgumentNullException>("user",
1420await Assert.ThrowsAsync<ArgumentNullException>("user",
1422await Assert.ThrowsAsync<ArgumentNullException>("user",
1424await Assert.ThrowsAsync<ArgumentNullException>("user",
1426await Assert.ThrowsAsync<ArgumentNullException>("user",
1428await Assert.ThrowsAsync<ArgumentNullException>("user",
1430await Assert.ThrowsAsync<ArgumentNullException>("user",
1432await Assert.ThrowsAsync<ArgumentNullException>("user",
1434await Assert.ThrowsAsync<ArgumentNullException>("user",
1436await Assert.ThrowsAsync<ArgumentNullException>("user",
1438await Assert.ThrowsAsync<ArgumentNullException>("user",
1440await Assert.ThrowsAsync<ArgumentNullException>("user",
1442await Assert.ThrowsAsync<ArgumentNullException>("user",
1444await Assert.ThrowsAsync<ArgumentNullException>("user",
1446await Assert.ThrowsAsync<ArgumentNullException>("user",
1448await Assert.ThrowsAsync<ArgumentNullException>("user",
1450await Assert.ThrowsAsync<ArgumentNullException>("user",
1452await Assert.ThrowsAsync<ArgumentNullException>("user",
1454await Assert.ThrowsAsync<ArgumentNullException>("user",
1456await Assert.ThrowsAsync<ArgumentNullException>("user",
1458await Assert.ThrowsAsync<ArgumentNullException>("user",
1460await Assert.ThrowsAsync<ArgumentNullException>("user",
1462await Assert.ThrowsAsync<ArgumentNullException>("user",
1464await Assert.ThrowsAsync<ArgumentNullException>("user",
1466await Assert.ThrowsAsync<ArgumentNullException>("user",
1468await Assert.ThrowsAsync<ArgumentNullException>("user",
1470await Assert.ThrowsAsync<ArgumentNullException>("user",
1472await Assert.ThrowsAsync<ArgumentNullException>("user",
1474await Assert.ThrowsAsync<ArgumentNullException>("user",
1476await Assert.ThrowsAsync<ArgumentNullException>("user",
1478await Assert.ThrowsAsync<ArgumentNullException>("user",
1480await Assert.ThrowsAsync<ArgumentNullException>("user",
1482await Assert.ThrowsAsync<ArgumentNullException>("user",
1484await Assert.ThrowsAsync<ArgumentNullException>("user",
1486await Assert.ThrowsAsync<ArgumentNullException>("user",
Microsoft.AspNetCore.InternalTesting (8)
Microsoft.AspNetCore.JsonPatch (8)
Microsoft.AspNetCore.JsonPatch.SystemTextJson (8)
Microsoft.AspNetCore.Localization (25)
Microsoft.AspNetCore.Localization.Routing (1)
Microsoft.AspNetCore.Localization.Tests (1)
Microsoft.AspNetCore.MiddlewareAnalysis (1)
Microsoft.AspNetCore.Mvc (9)
Microsoft.AspNetCore.Mvc.Abstractions (100)
Microsoft.AspNetCore.Mvc.ApiExplorer (7)
Microsoft.AspNetCore.Mvc.Core (736)
Microsoft.AspNetCore.Mvc.Core.Test (12)
Microsoft.AspNetCore.Mvc.Core.TestCommon (1)
Microsoft.AspNetCore.Mvc.Cors (14)
Microsoft.AspNetCore.Mvc.DataAnnotations (46)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
Microsoft.AspNetCore.Mvc.Formatters.Xml (64)
Microsoft.AspNetCore.Mvc.FunctionalTests (3)
Microsoft.AspNetCore.Mvc.IntegrationTests (7)
Microsoft.AspNetCore.Mvc.Localization (52)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (54)
Microsoft.AspNetCore.Mvc.Razor (77)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (28)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
Microsoft.AspNetCore.Mvc.RazorPages (190)
Microsoft.AspNetCore.Mvc.TagHelpers (75)
Microsoft.AspNetCore.Mvc.Testing (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (566)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (2)
Microsoft.AspNetCore.OpenApi (13)
Microsoft.AspNetCore.OutputCaching (52)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
Microsoft.AspNetCore.OutputCaching.StackExchangeRedis (3)
Microsoft.AspNetCore.OutputCaching.Tests (5)
MemoryOutputCacheStoreTests.cs (2)
48_ = await Assert.ThrowsAsync<ArgumentNullException>("key", () => store.SetAsync(key, value, null, TimeSpan.FromMilliseconds(5), default).AsTask());
58_ = await Assert.ThrowsAsync<ArgumentNullException>("value", () => store.SetAsync(key, value, null, TimeSpan.FromMilliseconds(5), default).AsTask());
Microsoft.AspNetCore.Owin (7)
Microsoft.AspNetCore.Owin.Tests (1)
Microsoft.AspNetCore.RateLimiting (25)
Microsoft.AspNetCore.RateLimiting.Tests (9)
Microsoft.AspNetCore.Razor (39)
Microsoft.AspNetCore.Razor.Runtime (36)
Microsoft.AspNetCore.RequestDecompression (10)
Microsoft.AspNetCore.RequestDecompression.Tests (9)
Microsoft.AspNetCore.ResponseCaching (16)
Microsoft.AspNetCore.ResponseCaching.Tests (2)
Microsoft.AspNetCore.ResponseCompression (13)
Microsoft.AspNetCore.Rewrite (18)
Microsoft.AspNetCore.Rewrite.Tests (1)
Microsoft.AspNetCore.Routing (274)
Microsoft.AspNetCore.Routing.Abstractions (8)
Microsoft.AspNetCore.Routing.FunctionalTests (1)
Microsoft.AspNetCore.Routing.Microbenchmarks (4)
Microsoft.AspNetCore.Routing.Tests (23)
Microsoft.AspNetCore.Server.HttpSys (10)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
Microsoft.AspNetCore.Server.IIS (7)
Microsoft.AspNetCore.Server.IISIntegration (5)
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (2)
Microsoft.AspNetCore.Server.Kestrel (1)
Microsoft.AspNetCore.Server.Kestrel.Core (35)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (5)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (4)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (4)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (6)
Microsoft.AspNetCore.Session (19)
Microsoft.AspNetCore.Shared.Tests (23)
Microsoft.AspNetCore.SignalR (5)
Microsoft.AspNetCore.SignalR.Client (2)
Microsoft.AspNetCore.SignalR.Client.Core (2)
Microsoft.AspNetCore.SignalR.Client.Tests (3)
Microsoft.AspNetCore.SignalR.Common (5)
Microsoft.AspNetCore.SignalR.Core (19)
Microsoft.AspNetCore.SignalR.Protocols.MessagePack (2)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (12)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (1)
Microsoft.AspNetCore.SignalR.Tests (3)
Microsoft.AspNetCore.SignalR.Tests.Utils (1)
Microsoft.AspNetCore.SpaServices.Extensions (11)
Microsoft.AspNetCore.StaticAssets (5)
Microsoft.AspNetCore.StaticFiles (45)
Microsoft.AspNetCore.TestHost (14)
Microsoft.AspNetCore.TestHost.Tests (1)
Microsoft.AspNetCore.Testing (7)
Microsoft.AspNetCore.Testing.Tests (2)
Microsoft.AspNetCore.WebSockets (6)
Microsoft.AspNetCore.WebUtilities (38)
Microsoft.AspNetCore.WebUtilities.Tests (3)
Microsoft.Bcl.AsyncInterfaces (1)
Microsoft.Bcl.Cryptography (29)
Microsoft.Bcl.Numerics (1)
Microsoft.Bcl.TimeProvider (3)
Microsoft.Build.Tasks.CodeAnalysis (1)
Microsoft.Build.Tasks.CodeAnalysis.Sdk (7)
Microsoft.CodeAnalysis (68)
Microsoft.CodeAnalysis.Analyzers (46)
Microsoft.CodeAnalysis.AnalyzerUtilities (45)
Microsoft.CodeAnalysis.BannedApiAnalyzers (46)
Microsoft.CodeAnalysis.CodeStyle (36)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.Collections.Package (4)
Microsoft.CodeAnalysis.CSharp (12)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (7)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (11)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (11)
Microsoft.CodeAnalysis.CSharp.Scripting (4)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (43)
Symbols\FunctionPointerTypeSymbolTests.cs (5)
1526Assert.Throws<ArgumentNullException>("returnType", () => comp.CreateFunctionPointerTypeSymbol(returnType: null!, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty));
1527Assert.Throws<ArgumentNullException>("parameterTypes", () => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: default, parameterRefKinds: ImmutableArray<RefKind>.Empty));
1528Assert.Throws<ArgumentNullException>("parameterTypes[0]", () => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray.Create((ITypeSymbol?)null)!, parameterRefKinds: ImmutableArray.Create(RefKind.None)));
1529Assert.Throws<ArgumentNullException>("parameterRefKinds", () => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: default));
1530Assert.Throws<ArgumentNullException>("callingConventionTypes[0]", () => comp.CreateFunctionPointerTypeSymbol(returnType: @string, returnRefKind: RefKind.None, parameterTypes: ImmutableArray<ITypeSymbol>.Empty, parameterRefKinds: ImmutableArray<RefKind>.Empty, callingConvention: SignatureCallingConvention.Unmanaged, ImmutableArray.Create((INamedTypeSymbol)null!)));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (39)
Microsoft.CodeAnalysis.Debugging.Package (7)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (5)
Microsoft.CodeAnalysis.ExpressionEvaluator.FunctionResolver (6)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider (6)
Microsoft.CodeAnalysis.Extensions.Package (12)
Microsoft.CodeAnalysis.Features (12)
Microsoft.CodeAnalysis.Features.UnitTests (3)
Microsoft.CodeAnalysis.InteractiveHost (21)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (46)
Microsoft.CodeAnalysis.PooledObjects.Package (6)
Microsoft.CodeAnalysis.PublicApiAnalyzers (45)
Microsoft.CodeAnalysis.ResxSourceGenerator (45)
Microsoft.CodeAnalysis.Scripting (29)
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (4)
Microsoft.CodeAnalysis.Scripting.UnitTests (39)
ScriptOptionsTests.cs (39)
41Assert.Throws<ArgumentNullException>("references", () => options.AddReferences((MetadataReference[])null));
42Assert.Throws<ArgumentNullException>("references[0]", () => options.AddReferences(new MetadataReference[] { null }));
44Assert.Throws<ArgumentNullException>("references", () => options.AddReferences((IEnumerable<MetadataReference>)null));
45Assert.Throws<ArgumentNullException>("references[0]", () => options.AddReferences((IEnumerable<MetadataReference>)new MetadataReference[] { null }));
47Assert.Throws<ArgumentNullException>("references", () => options.AddReferences((Assembly[])null));
48Assert.Throws<ArgumentNullException>("references[0]", () => options.AddReferences(new Assembly[] { null }));
50Assert.Throws<ArgumentNullException>("references", () => options.AddReferences((IEnumerable<Assembly>)null));
51Assert.Throws<ArgumentNullException>("references[0]", () => options.AddReferences((IEnumerable<Assembly>)new Assembly[] { null }));
53Assert.Throws<ArgumentNullException>("references", () => options.AddReferences((string[])null));
54Assert.Throws<ArgumentNullException>("references[0]", () => options.AddReferences(new string[] { null }));
56Assert.Throws<ArgumentNullException>("references", () => options.AddReferences((IEnumerable<string>)null));
57Assert.Throws<ArgumentNullException>("references[0]", () => options.AddReferences((IEnumerable<string>)new string[] { null }));
83Assert.Throws<ArgumentNullException>("references", () => options.WithReferences((MetadataReference[])null));
84Assert.Throws<ArgumentNullException>("references", () => options.WithReferences((IEnumerable<MetadataReference>)null));
85Assert.Throws<ArgumentNullException>("references", () => options.WithReferences(default(ImmutableArray<MetadataReference>)));
86Assert.Throws<ArgumentNullException>("references[0]", () => options.WithReferences(new MetadataReference[] { null }));
87Assert.Throws<ArgumentNullException>("references[0]", () => options.WithReferences(ImmutableArray.Create((MetadataReference)null)));
89Assert.Throws<ArgumentNullException>("references", () => options.WithReferences((Assembly[])null));
90Assert.Throws<ArgumentNullException>("references", () => options.WithReferences((IEnumerable<Assembly>)null));
91Assert.Throws<ArgumentNullException>("references", () => options.WithReferences(default(ImmutableArray<Assembly>)));
92Assert.Throws<ArgumentNullException>("references[0]", () => options.WithReferences(new Assembly[] { null }));
93Assert.Throws<ArgumentNullException>("references[0]", () => options.WithReferences(ImmutableArray.Create((Assembly)null)));
95Assert.Throws<ArgumentNullException>("references", () => options.WithReferences((string[])null));
96Assert.Throws<ArgumentNullException>("references", () => options.WithReferences((IEnumerable<string>)null));
97Assert.Throws<ArgumentNullException>("references", () => options.WithReferences(default(ImmutableArray<string>)));
98Assert.Throws<ArgumentNullException>("references[0]", () => options.WithReferences(new string[] { null }));
99Assert.Throws<ArgumentNullException>("references[0]", () => options.WithReferences(ImmutableArray.Create((string)null)));
122Assert.Throws<ArgumentNullException>("imports", () => options.AddImports((string[])null));
123Assert.Throws<ArgumentNullException>("imports[0]", () => options.AddImports([null]));
125Assert.Throws<ArgumentNullException>("imports", () => options.AddImports((IEnumerable<string>)null));
126Assert.Throws<ArgumentNullException>("imports[0]", () => options.AddImports((IEnumerable<string>)new string[] { null }));
128Assert.Throws<ArgumentNullException>("imports", () => options.AddImports(default(ImmutableArray<string>)));
129Assert.Throws<ArgumentNullException>("imports[0]", () => options.AddImports(ImmutableArray.Create((string)null)));
143Assert.Throws<ArgumentNullException>("imports", () => options.WithImports((string[])null));
144Assert.Throws<ArgumentNullException>("imports[0]", () => options.WithImports([null]));
146Assert.Throws<ArgumentNullException>("imports", () => options.WithImports((IEnumerable<string>)null));
147Assert.Throws<ArgumentNullException>("imports[0]", () => options.WithImports((IEnumerable<string>)new string[] { null }));
149Assert.Throws<ArgumentNullException>("imports", () => options.WithImports(default(ImmutableArray<string>)));
150Assert.Throws<ArgumentNullException>("imports[0]", () => options.WithImports(ImmutableArray.Create((string)null)));
Microsoft.CodeAnalysis.Test.Utilities (1)
Microsoft.CodeAnalysis.Threading.Package (4)
Microsoft.CodeAnalysis.UnitTests (129)
Collections\ImmutableSegmentedDictionaryTest.cs (4)
150Assert.Throws<ArgumentNullException>("keySelector", () => list.ToImmutableSegmentedDictionary<int, int>(null!));
151Assert.Throws<ArgumentNullException>("keySelector", () => list.ToImmutableSegmentedDictionary<int, int, int>(null!, v => v));
152Assert.Throws<ArgumentNullException>("elementSelector", () => list.ToImmutableSegmentedDictionary<int, int, int>(k => k, null!));
263Assert.IsType<ArgumentNullException>(tie.InnerException);
Collections\ImmutableSegmentedHashSetBuilderTest.cs (11)
176Assert.Throws<ArgumentNullException>("other", () => builder.UnionWith(null!));
185Assert.Throws<ArgumentNullException>("other", () => builder.ExceptWith(null!));
194Assert.Throws<ArgumentNullException>("other", () => builder.SymmetricExceptWith(null!));
203Assert.Throws<ArgumentNullException>("other", () => builder.IntersectWith(null!));
212Assert.Throws<ArgumentNullException>("other", () => builder.IsProperSubsetOf(null!));
221Assert.Throws<ArgumentNullException>("other", () => builder.IsProperSupersetOf(null!));
230Assert.Throws<ArgumentNullException>("other", () => builder.IsSubsetOf(null!));
240Assert.Throws<ArgumentNullException>("other", () => builder.IsSupersetOf(null!));
250Assert.Throws<ArgumentNullException>("other", () => builder.Overlaps(null!));
267Assert.Throws<ArgumentNullException>("other", () => builder.SetEquals(null!));
340Assert.Throws<ArgumentNullException>("builder", () => nullBuilder!.ToImmutableSegmentedHashSet());
EmbeddedTextTests.cs (6)
25Assert.Throws<ArgumentNullException>("filePath", () => EmbeddedText.FromBytes(null, default(ArraySegment<byte>)));
27Assert.Throws<ArgumentNullException>("bytes", () => EmbeddedText.FromBytes("path", default(ArraySegment<byte>)));
34Assert.Throws<ArgumentNullException>("filePath", () => EmbeddedText.FromSource(null, null));
36Assert.Throws<ArgumentNullException>("text", () => EmbeddedText.FromSource("path", null));
49Assert.Throws<ArgumentNullException>("filePath", () => EmbeddedText.FromStream(null, null));
51Assert.Throws<ArgumentNullException>("stream", () => EmbeddedText.FromStream("path", null));
Emit\EmitBaselineTests.cs (4)
33Assert.Throws<ArgumentNullException>(() => EmitBaseline.CreateInitialBaseline(null, peModule, debugInfoProvider, localSigProvider, true));
34Assert.Throws<ArgumentNullException>(() => EmitBaseline.CreateInitialBaseline(compilation, null, debugInfoProvider, localSigProvider, true));
35Assert.Throws<ArgumentNullException>(() => EmitBaseline.CreateInitialBaseline(compilation, peModule, null, localSigProvider, true));
36Assert.Throws<ArgumentNullException>(() => EmitBaseline.CreateInitialBaseline(compilation, mdModule, debugInfoProvider, null, true));
Emit\SemanticEditTests.cs (5)
31Assert.Throws<ArgumentNullException>("oldSymbol", () => new SemanticEdit(SemanticEditKind.Update, oldSymbol: null, newSymbol: type));
32Assert.Throws<ArgumentNullException>("oldSymbol", () => new SemanticEdit(SemanticEditKind.Delete, oldSymbol: null, newSymbol: type));
34Assert.Throws<ArgumentNullException>("newSymbol", () => new SemanticEdit(SemanticEditKind.Update, oldSymbol: type, newSymbol: null));
35Assert.Throws<ArgumentNullException>("newSymbol", () => new SemanticEdit(SemanticEditKind.Insert, oldSymbol: type, newSymbol: null));
36Assert.Throws<ArgumentNullException>("newSymbol", () => new SemanticEdit(SemanticEditKind.Replace, oldSymbol: type, newSymbol: null));
ResourceDescriptionTests.cs (5)
28Assert.Throws<ArgumentNullException>(() => new ResourceDescription(null, "file", data, isPublic: true));
29Assert.Throws<ArgumentNullException>(() => new ResourceDescription("res", null, data, isPublic: true));
30Assert.Throws<ArgumentNullException>(() => new ResourceDescription("res", "file", null, isPublic: true));
31Assert.Throws<ArgumentNullException>(() => new ResourceDescription(null, data, isPublic: true));
32Assert.Throws<ArgumentNullException>(() => new ResourceDescription("res", null, isPublic: true));
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.Workspaces (59)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (6)
Microsoft.CodeAnalysis.Workspaces.UnitTests (149)
Options\OptionKeyTests.cs (12)
23Assert.Throws<ArgumentNullException>(() => new Option<bool>("Test Feature", null!, false));
24Assert.Throws<ArgumentNullException>(() => new Option<bool>(null!, "Test Name", false));
25Assert.Throws<ArgumentNullException>(() => new Option<bool>("X", "Test Name", false, storageLocations: null!));
26Assert.Throws<ArgumentNullException>(() => new Option<bool>("X", "Test Name", false, storageLocations: [null!]));
32Assert.Throws<ArgumentNullException>(() => new PerLanguageOption<bool>("Test Feature", null!, false));
33Assert.Throws<ArgumentNullException>(() => new PerLanguageOption<bool>(null!, "Test Name", false));
34Assert.Throws<ArgumentNullException>(() => new PerLanguageOption<bool>("X", "Test Name", false, storageLocations: null!));
35Assert.Throws<ArgumentNullException>(() => new PerLanguageOption<bool>("X", "Test Name", false, storageLocations: [null!]));
70Assert.Throws<ArgumentNullException>(() => new OptionKey(null!));
71Assert.Throws<ArgumentNullException>(() => new OptionKey(null!, null!));
72Assert.Throws<ArgumentNullException>(() => new OptionKey(null!, "lang"));
73Assert.Throws<ArgumentNullException>(() => new OptionKey(new TestOption() { IsPerLanguage = true }));
Simplifier\SimplifierTests.cs (15)
38await Assert.ThrowsAsync<ArgumentNullException>("node", () => Simplifier.ExpandAsync<SyntaxNode>(node: null!, document: null!));
39await Assert.ThrowsAsync<ArgumentNullException>("document", () => Simplifier.ExpandAsync(node: node, document: null!));
40await Assert.ThrowsAsync<ArgumentNullException>("document", () => Simplifier.ExpandAsync(token: default, document: null!));
49Assert.Throws<ArgumentNullException>("node", () => Simplifier.Expand<SyntaxNode>(node: null!, semanticModel: null!, services: null!));
50Assert.Throws<ArgumentNullException>("semanticModel", () => Simplifier.Expand(node, semanticModel: null!, services: null!));
51Assert.Throws<ArgumentNullException>("services", () => Simplifier.Expand(node, semanticModel, services: null!));
52Assert.Throws<ArgumentNullException>("workspace", () => Simplifier.Expand(node, semanticModel, workspace: null!));
53Assert.Throws<ArgumentNullException>("workspace", () => Simplifier.Expand(token: default, semanticModel: null!, workspace: null!));
54Assert.Throws<ArgumentNullException>("workspace", () => Simplifier.Expand(token: default, semanticModel, workspace: null!));
63await Assert.ThrowsAsync<ArgumentNullException>("document", () => Simplifier.ReduceAsync(document: null!));
64await Assert.ThrowsAsync<ArgumentNullException>("document", () => Simplifier.ReduceAsync(document: null!, annotation: null!));
65await Assert.ThrowsAsync<ArgumentNullException>("annotation", () => Simplifier.ReduceAsync(document, annotation: null!));
66await Assert.ThrowsAsync<ArgumentNullException>("document", () => Simplifier.ReduceAsync(document: null!, span: default));
67await Assert.ThrowsAsync<ArgumentNullException>("document", () => Simplifier.ReduceAsync(document: null!, spans: null!));
68await Assert.ThrowsAsync<ArgumentNullException>("spans", () => Simplifier.ReduceAsync(document, spans: null!));
SolutionTests\ProjectInfoTests.cs (9)
24Assert.Throws<ArgumentNullException>(() => ProjectInfo.Create(id: null, version: VersionStamp.Default, name: "Goo", assemblyName: "Bar", language: "C#"));
25Assert.Throws<ArgumentNullException>(() => ProjectInfo.Create(pid, VersionStamp.Default, name: null, assemblyName: "Bar", language: "C#"));
26Assert.Throws<ArgumentNullException>(() => ProjectInfo.Create(pid, VersionStamp.Default, name: "Goo", assemblyName: null, language: "C#"));
27Assert.Throws<ArgumentNullException>(() => ProjectInfo.Create(pid, VersionStamp.Default, name: "Goo", assemblyName: "Bar", language: null));
29Assert.Throws<ArgumentNullException>(() => ProjectInfo.Create(pid, VersionStamp.Default, name: "Goo", assemblyName: "Bar", language: "C#",
42Assert.Throws<ArgumentNullException>(() => ProjectInfo.Create(pid, VersionStamp.Default, name: "Goo", assemblyName: "Bar", language: "C#",
48Assert.Throws<ArgumentNullException>(() => ProjectInfo.Create(pid, VersionStamp.Default, name: "Goo", assemblyName: "Bar", language: "C#",
55Assert.Throws<ArgumentNullException>("analyzerReferences[0]", () => ProjectInfo.Create(pid, VersionStamp.Default, name: "Goo", assemblyName: "Bar", language: "C#",
62Assert.Throws<ArgumentNullException>(() => ProjectInfo.Create(pid, VersionStamp.Default, name: "Goo", assemblyName: "Bar", language: "C#",
SolutionTests\SolutionTests.cs (83)
116Assert.Throws<ArgumentNullException>(() => solution.RemoveDocument(null!));
125Assert.Throws<ArgumentNullException>(() => solution.RemoveDocuments(default));
127Assert.Throws<ArgumentNullException>(() => solution.RemoveDocuments(ImmutableArray.Create((DocumentId)null!)));
135Assert.Throws<ArgumentNullException>(() => solution.RemoveAdditionalDocument(null!));
144Assert.Throws<ArgumentNullException>(() => solution.RemoveAdditionalDocuments(default));
146Assert.Throws<ArgumentNullException>(() => solution.RemoveAdditionalDocuments(ImmutableArray.Create((DocumentId)null!)));
154Assert.Throws<ArgumentNullException>(() => solution.RemoveAnalyzerConfigDocument(null!));
163Assert.Throws<ArgumentNullException>(() => solution.RemoveAnalyzerConfigDocuments(default));
165Assert.Throws<ArgumentNullException>(() => solution.RemoveAnalyzerConfigDocuments(ImmutableArray.Create((DocumentId)null!)));
182Assert.Throws<ArgumentNullException>(() => solution.WithDocumentName(documentId, name: null!));
184Assert.Throws<ArgumentNullException>(() => solution.WithDocumentName(null!, name));
212Assert.Throws<ArgumentNullException>(() => solution.WithDocumentFolders(documentId, folders: [null!]));
214Assert.Throws<ArgumentNullException>(() => solution.WithDocumentFolders(null!, folders));
242Assert.Throws<ArgumentNullException>(() => solution.WithDocumentFilePath(null!, path));
260Assert.Throws<ArgumentNullException>(() => solution.WithDocumentSourceCodeKind(null!, SourceCodeKind.Script));
319Assert.Throws<ArgumentNullException>(() => solution.WithDocumentSyntaxRoot(null!, root));
359Assert.Throws<ArgumentNullException>(() => solution.WithDocumentText(documentId, (SourceText)null!, PreservationMode.PreserveIdentity));
362Assert.Throws<ArgumentNullException>(() => solution.WithDocumentText((DocumentId)null!, text, PreservationMode.PreserveIdentity));
383Assert.Throws<ArgumentNullException>(() => solution.WithDocumentText(documentId, (SourceText)null!, PreservationMode.PreserveIdentity));
386Assert.Throws<ArgumentNullException>(() => solution.WithDocumentText((DocumentId)null!, textAndVersion, PreservationMode.PreserveIdentity));
409Assert.Throws<ArgumentNullException>(() => solution.WithDocumentText((DocumentId[])null!, text, PreservationMode.PreserveIdentity));
410Assert.Throws<ArgumentNullException>(() => solution.WithDocumentText([documentId], null!, PreservationMode.PreserveIdentity));
927Assert.Throws<ArgumentNullException>(() => solution.WithAdditionalDocumentText(documentId, (SourceText)null!, PreservationMode.PreserveIdentity));
930Assert.Throws<ArgumentNullException>(() => solution.WithAdditionalDocumentText((DocumentId)null!, text, PreservationMode.PreserveIdentity));
951Assert.Throws<ArgumentNullException>(() => solution.WithAdditionalDocumentText(documentId, (SourceText)null!, PreservationMode.PreserveIdentity));
954Assert.Throws<ArgumentNullException>(() => solution.WithAdditionalDocumentText((DocumentId)null!, textAndVersion, PreservationMode.PreserveIdentity));
973Assert.Throws<ArgumentNullException>(() => solution.WithAnalyzerConfigDocumentText(documentId, (SourceText)null!, PreservationMode.PreserveIdentity));
976Assert.Throws<ArgumentNullException>(() => solution.WithAnalyzerConfigDocumentText((DocumentId)null!, text, PreservationMode.PreserveIdentity));
997Assert.Throws<ArgumentNullException>(() => solution.WithAnalyzerConfigDocumentText(documentId, (SourceText)null!, PreservationMode.PreserveIdentity));
1000Assert.Throws<ArgumentNullException>(() => solution.WithAnalyzerConfigDocumentText((DocumentId)null!, textAndVersion, PreservationMode.PreserveIdentity));
1019Assert.Throws<ArgumentNullException>(() => solution.WithDocumentTextLoader(documentId, null!, PreservationMode.PreserveIdentity));
1022Assert.Throws<ArgumentNullException>(() => solution.WithDocumentTextLoader(null!, loader, PreservationMode.PreserveIdentity));
1041Assert.Throws<ArgumentNullException>(() => solution.WithAdditionalDocumentTextLoader(documentId, null!, PreservationMode.PreserveIdentity));
1044Assert.Throws<ArgumentNullException>(() => solution.WithAdditionalDocumentTextLoader(null!, loader, PreservationMode.PreserveIdentity));
1063Assert.Throws<ArgumentNullException>(() => solution.WithAnalyzerConfigDocumentTextLoader(documentId, null!, PreservationMode.PreserveIdentity));
1066Assert.Throws<ArgumentNullException>(() => solution.WithAnalyzerConfigDocumentTextLoader(null!, loader, PreservationMode.PreserveIdentity));
1447Assert.Throws<ArgumentNullException>("assemblyName", () => solution.WithProjectAssemblyName(projectId, null!));
1448Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectAssemblyName(null!, "x.dll"));
1471Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectOutputFilePath(null!, "x.dll"));
1472Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectOutputFilePath(null!, "x.dll"));
1526Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectOutputRefFilePath(null!, "x.dll"));
1549Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectCompilationOutputInfo(null!, info));
1572Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectDefaultNamespace(null!, "x"));
1685Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectName(null!, "x"));
1708Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectFilePath(null!, "x"));
1723Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectCompilationOptions(null!, options));
1724Assert.Throws<ArgumentNullException>("options", () => solution.WithProjectCompilationOptions(projectId, options: null!));
1772Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectParseOptions(null!, options));
1773Assert.Throws<ArgumentNullException>("options", () => solution.WithProjectParseOptions(projectId, options: null!));
1935Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectReferences(null!, [projectRef]));
1987Assert.Throws<ArgumentNullException>("projectId", () => solution.AddProjectReferences(null!, [projectRef2]));
1988Assert.Throws<ArgumentNullException>("projectReferences", () => solution.AddProjectReferences(projectId, null!));
1989Assert.Throws<ArgumentNullException>("projectReferences[0]", () => solution.AddProjectReferences(projectId, [null!]));
2026Assert.Throws<ArgumentNullException>("projectId", () => solution.RemoveProjectReference(null!, projectRef2));
2027Assert.Throws<ArgumentNullException>("projectReference", () => solution.RemoveProjectReference(projectId, null!));
2086Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectMetadataReferences(null!, [metadataRef]));
2106Assert.Throws<ArgumentNullException>("projectId", () => solution.AddMetadataReferences(null!, [metadataRef1]));
2107Assert.Throws<ArgumentNullException>("metadataReferences", () => solution.AddMetadataReferences(projectId, null!));
2108Assert.Throws<ArgumentNullException>("metadataReferences[0]", () => solution.AddMetadataReferences(projectId, [null!]));
2132Assert.Throws<ArgumentNullException>("projectId", () => solution.RemoveMetadataReference(null!, metadataRef1));
2133Assert.Throws<ArgumentNullException>("metadataReference", () => solution.RemoveMetadataReference(projectId, null!));
2156Assert.Throws<ArgumentNullException>("projectId", () => solution.WithProjectAnalyzerReferences(null!, [analyzerRef]));
2179Assert.Throws<ArgumentNullException>("projectId", () => solution.AddAnalyzerReferences(null!, [analyzerRef1]));
2180Assert.Throws<ArgumentNullException>("analyzerReferences", () => solution.AddAnalyzerReferences(projectId, null!));
2181Assert.Throws<ArgumentNullException>("analyzerReferences[0]", () => solution.AddAnalyzerReferences(projectId, [null!]));
2205Assert.Throws<ArgumentNullException>("projectId", () => solution.RemoveAnalyzerReference(null!, analyzerRef1));
2206Assert.Throws<ArgumentNullException>("analyzerReference", () => solution.RemoveAnalyzerReference(projectId, null!));
2247Assert.Throws<ArgumentNullException>("analyzerReferences", () => solution.AddAnalyzerReferences(null!));
2248Assert.Throws<ArgumentNullException>("analyzerReferences[0]", () => solution.AddAnalyzerReferences([null!]));
2271Assert.Throws<ArgumentNullException>("analyzerReference", () => solution.RemoveAnalyzerReference(null!));
2376Assert.Throws<ArgumentNullException>("documentId", () => solution.AddDocument(documentId: null!, "name", loader));
2377Assert.Throws<ArgumentNullException>("name", () => solution.AddDocument(documentId, name: null!, loader));
2378Assert.Throws<ArgumentNullException>("loader", () => solution.AddDocument(documentId, "name", loader: null!));
2407Assert.Throws<ArgumentNullException>("documentId", () => solution.AddDocument(documentId: null!, "name", "text"));
2408Assert.Throws<ArgumentNullException>("name", () => solution.AddDocument(documentId, name: null!, "text"));
2409Assert.Throws<ArgumentNullException>("text", () => solution.AddDocument(documentId, "name", text: (string)null!));
2435Assert.Throws<ArgumentNullException>("documentId", () => solution.AddDocument(documentId: null!, "name", sourceText));
2436Assert.Throws<ArgumentNullException>("name", () => solution.AddDocument(documentId, name: null!, sourceText));
2437Assert.Throws<ArgumentNullException>("text", () => solution.AddDocument(documentId, "name", text: (SourceText)null!));
2487Assert.Throws<ArgumentNullException>("documentId", () => solution.AddDocument(documentId: null!, "name", root));
2488Assert.Throws<ArgumentNullException>("name", () => solution.AddDocument(documentId, name: null!, root));
2489Assert.Throws<ArgumentNullException>("syntaxRoot", () => solution.AddDocument(documentId, "name", syntaxRoot: null!));
4691Assert.Throws<ArgumentNullException>(() => solution = solution.WithProjectDocumentsOrder(pid, null));
UtilityTest\SpecializedTasksTests.cs (3)
30Assert.Throws<ArgumentNullException>(() => SpecializedTasks.WhenAll<int>((IEnumerable<ValueTask<int>>)null!));
82Assert.Throws<ArgumentNullException>("func", () => SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync(null!, transform, arg, cancellationToken));
83Assert.Throws<ArgumentNullException>("transform", () => SpecializedTasks.TransformWithoutIntermediateCancellationExceptionAsync<StateType, IntermediateType, ResultType>(func, null!, arg, cancellationToken));
Microsoft.CommonLanguageServerProtocol.Framework.Package (6)
Microsoft.CSharp (1)
Microsoft.DotNet.Build.Manifest.Tests (1)
Microsoft.DotNet.Build.Tasks.Feed (3)
Microsoft.DotNet.Build.Tasks.Feed.Tests (1)
Microsoft.DotNet.Build.Tasks.Workloads (1)
Microsoft.DotNet.Internal.SymbolHelper (9)
Microsoft.DotNet.NuGetRepack.Tests (1)
Microsoft.DotNet.XUnitAssert.Tests (84)
AsyncCollectionAssertsTests.cs (22)
21 Assert.Throws<ArgumentNullException>("collection", () => Assert.All(default(IAsyncEnumerable<object>)!, _ => { }));
22 Assert.Throws<ArgumentNullException>("action", () => Assert.All(new object[0].ToAsyncEnumerable(), (Action<object>)null!));
23 Assert.Throws<ArgumentNullException>("action", () => Assert.All(new object[0].ToAsyncEnumerable(), (Action<object, int>)null!));
73 await Assert.ThrowsAsync<ArgumentNullException>("collection", () => Assert.AllAsync(default(IAsyncEnumerable<object>)!, async _ => await Task.Yield()));
74 await Assert.ThrowsAsync<ArgumentNullException>("action", () => Assert.AllAsync(new object[0].ToAsyncEnumerable(), (Func<object, Task>)null!));
75 await Assert.ThrowsAsync<ArgumentNullException>("action", () => Assert.AllAsync(new object[0].ToAsyncEnumerable(), (Func<object, int, Task>)null!));
283 Assert.Throws<ArgumentNullException>("collection", () => Assert.Contains(14, default(IAsyncEnumerable<int>)!));
334 Assert.Throws<ArgumentNullException>("collection", () => Assert.Contains(14, default(IAsyncEnumerable<int>)!, comparer));
335 Assert.Throws<ArgumentNullException>("comparer", () => Assert.Contains(14, new int[0].ToAsyncEnumerable(), null!));
359 Assert.Throws<ArgumentNullException>("collection", () => Assert.Contains(default(IAsyncEnumerable<int>)!, item => true));
360 Assert.Throws<ArgumentNullException>("filter", () => Assert.Contains(new int[0].ToAsyncEnumerable(), (Predicate<int>)null!));
392 Assert.Throws<ArgumentNullException>("collection", () => Assert.Distinct(default(IAsyncEnumerable<int>)!));
393 Assert.Throws<ArgumentNullException>("comparer", () => Assert.Distinct(new object[0].ToAsyncEnumerable(), null!));
467 Assert.Throws<ArgumentNullException>("collection", () => Assert.DoesNotContain(14, default(IAsyncEnumerable<int>)!));
519 Assert.Throws<ArgumentNullException>("collection", () => Assert.DoesNotContain(14, default(IAsyncEnumerable<int>)!, comparer));
520 Assert.Throws<ArgumentNullException>("comparer", () => Assert.DoesNotContain(14, new int[0].ToAsyncEnumerable(), null!));
544 Assert.Throws<ArgumentNullException>("collection", () => Assert.DoesNotContain(default(IAsyncEnumerable<int>)!, item => true));
545 Assert.Throws<ArgumentNullException>("filter", () => Assert.DoesNotContain(new int[0].ToAsyncEnumerable(), (Predicate<int>)null!));
578 Assert.Throws<ArgumentNullException>("collection", () => Assert.Empty(default(IAsyncEnumerable<int>)!));
1384 Assert.Throws<ArgumentNullException>("collection", () => Assert.Single(default(IAsyncEnumerable<object>)!));
1469 Assert.Throws<ArgumentNullException>("collection", () => Assert.Single(default(IAsyncEnumerable<object>)!, _ => true));
1470 Assert.Throws<ArgumentNullException>("predicate", () => Assert.Single(new object[0].ToAsyncEnumerable(), null!));
CollectionAssertsTests.cs (24)
19 Assert.Throws<ArgumentNullException>("collection", () => Assert.All(default(IEnumerable<object>)!, _ => { }));
20 Assert.Throws<ArgumentNullException>("action", () => Assert.All(new object[0], (Action<object>)null!));
21 Assert.Throws<ArgumentNullException>("action", () => Assert.All(new object[0], (Action<object, int>)null!));
71 await Assert.ThrowsAsync<ArgumentNullException>("collection", () => Assert.AllAsync(default(IEnumerable<object>)!, async _ => await Task.Yield()));
72 await Assert.ThrowsAsync<ArgumentNullException>("action", () => Assert.AllAsync(new object[0], (Func<object, Task>)null!));
73 await Assert.ThrowsAsync<ArgumentNullException>("action", () => Assert.AllAsync(new object[0], (Func<object, int, Task>)null!));
283 Assert.Throws<ArgumentNullException>("collection", () => Assert.Contains(14, default(IEnumerable<int>)!));
352 Assert.Throws<ArgumentNullException>("collection", () => Assert.Contains(14, default(IEnumerable<int>)!, comparer));
353 Assert.Throws<ArgumentNullException>("comparer", () => Assert.Contains(14, new int[0], null!));
393 Assert.Throws<ArgumentNullException>("collection", () => Assert.Contains(default(IEnumerable<int>)!, item => true));
394 Assert.Throws<ArgumentNullException>("filter", () => Assert.Contains(new int[0], (Predicate<int>)null!));
426 Assert.Throws<ArgumentNullException>("collection", () => Assert.Distinct(default(IEnumerable<int>)!));
427 Assert.Throws<ArgumentNullException>("comparer", () => Assert.Distinct(new object[0], null!));
501 Assert.Throws<ArgumentNullException>("collection", () => Assert.DoesNotContain(14, default(IEnumerable<int>)!));
589 Assert.Throws<ArgumentNullException>("collection", () => Assert.DoesNotContain(14, default(IEnumerable<int>)!, comparer));
590 Assert.Throws<ArgumentNullException>("comparer", () => Assert.DoesNotContain(14, new int[0], null!));
622 Assert.Throws<ArgumentNullException>("collection", () => Assert.DoesNotContain(default(IEnumerable<int>)!, item => true));
623 Assert.Throws<ArgumentNullException>("filter", () => Assert.DoesNotContain(new int[0], (Predicate<int>)null!));
656 Assert.Throws<ArgumentNullException>("collection", () => Assert.Empty(default(IEnumerable)!));
2281 Assert.Throws<ArgumentNullException>("collection", () => Assert.Single(null!));
2341 Assert.Throws<ArgumentNullException>("collection", () => Assert.Single(null!, null));
2416 Assert.Throws<ArgumentNullException>("collection", () => Assert.Single(default(IEnumerable<object>)!));
2501 Assert.Throws<ArgumentNullException>("collection", () => Assert.Single(default(IEnumerable<object>)!, _ => true));
2502 Assert.Throws<ArgumentNullException>("predicate", () => Assert.Single(new object[0], null!));
EqualityAssertsTests.cs (4)
66 Assert.Throws<ArgumentNullException>("comparer", () => Assert.Equal(1, 2, default(IEqualityComparer<int>)!));
155 Assert.Throws<ArgumentNullException>("comparer", () => Assert.Equal(1, 2, default(Func<int, int, bool>)!));
2350 Assert.Throws<ArgumentNullException>("comparer", () => Assert.NotEqual(1, 2, default(IEqualityComparer<int>)!));
2462 Assert.Throws<ArgumentNullException>("comparer", () => Assert.NotEqual(1, 2, default(Func<int, int, bool>)!));
ExceptionAssertsTests.cs (21)
18 Assert.Throws<ArgumentNullException>("exceptionType", () => Assert.Throws(null!, testCode));
19 Assert.Throws<ArgumentNullException>("testCode", () => Assert.Throws(typeof(Exception), default(Action)!));
67 var thrown = new ArgumentNullException();
90 Assert.Throws<ArgumentNullException>("exceptionType", () => Assert.Throws(null!, testCode));
91 Assert.Throws<ArgumentNullException>("testCode", () => Assert.Throws(typeof(Exception), default(Func<object>)!));
150 var thrown = new ArgumentNullException();
175 Assert.Throws<ArgumentNullException>("testCode", () => Assert.Throws<ArgumentException>(default(Action)!));
223 var thrown = new ArgumentNullException();
244 Assert.Throws<ArgumentNullException>("testCode", () => Assert.Throws<ArgumentException>(default(Func<object>)!));
303 var thrown = new ArgumentNullException();
327 Assert.Throws<ArgumentNullException>("testCode", () => Assert.Throws<ArgumentException>(default(Action)!));
392 var thrown = new ArgumentNullException();
413 Assert.Throws<ArgumentNullException>("testCode", () => Assert.Throws<ArgumentException>(default(Func<object>)!));
478 var thrown = new ArgumentNullException();
502 Assert.Throws<ArgumentNullException>("testCode", () => Assert.ThrowsAny<ArgumentException>(default(Action)!));
561 Assert.Throws<ArgumentNullException>("testCode", () => Assert.ThrowsAny<ArgumentException>(default(Func<object>)!));
632 await Assert.ThrowsAsync<ArgumentNullException>("testCode", () => Assert.ThrowsAnyAsync<ArgumentException>(default(Func<Task>)!));
691 await Assert.ThrowsAsync<ArgumentNullException>("testCode", () => Assert.ThrowsAsync<ArgumentException>(default(Func<Task>)!));
739 var thrown = new ArgumentNullException();
760 await Assert.ThrowsAsync<ArgumentNullException>("testCode", () => Assert.ThrowsAsync<ArgumentException>("paramName", default(Func<Task>)!));
825 var thrown = new ArgumentNullException();
PropertyAssertsTests.cs (4)
15 Assert.Throws<ArgumentNullException>("object", () => Assert.PropertyChanged(null!, "propertyName", delegate { }));
16 Assert.Throws<ArgumentNullException>("testCode", () => Assert.PropertyChanged(Substitute.For<INotifyPropertyChanged>(), "propertyName", (Action)null!));
68 await Assert.ThrowsAsync<ArgumentNullException>("object", () => Assert.PropertyChangedAsync(null!, "propertyName", () => Task.FromResult(0)));
69 await Assert.ThrowsAsync<ArgumentNullException>("testCode", () => Assert.PropertyChangedAsync(Substitute.For<INotifyPropertyChanged>(), "propertyName", default(Func<Task>)!));
StringAssertsTests.cs (5)
343 Assert.Throws<ArgumentNullException>("expectedRegexPattern", () => Assert.DoesNotMatch((string?)null!, "Hello, world!"));
373 Assert.Throws<ArgumentNullException>("expectedRegex", () => Assert.DoesNotMatch((Regex?)null!, "Hello, world!"));
403 Assert.Throws<ArgumentNullException>("value", () => Assert.Empty(default(string)!));
741 Assert.Throws<ArgumentNullException>("expectedRegexPattern", () => Assert.Matches((string?)null!, "Hello, world!"));
784 Assert.Throws<ArgumentNullException>("expectedRegex", () => Assert.Matches((Regex?)null!, "Hello, world!"));
Microsoft.Extensions.AI (78)
Microsoft.Extensions.AI.Abstractions (106)
Microsoft.Extensions.AI.Abstractions.Tests (93)
ChatCompletion\ChatResponseFormatTests.cs (4)
93Assert.Throws<ArgumentNullException>("schemaType", () => ChatResponseFormat.ForJsonSchema(null!));
94Assert.Throws<ArgumentNullException>("schemaType", () => ChatResponseFormat.ForJsonSchema(null!, TestJsonSerializerContext.Default.Options));
95Assert.Throws<ArgumentNullException>("schemaType", () => ChatResponseFormat.ForJsonSchema(null!, TestJsonSerializerContext.Default.Options, "name"));
96Assert.Throws<ArgumentNullException>("schemaType", () => ChatResponseFormat.ForJsonSchema(null!, TestJsonSerializerContext.Default.Options, "name", "description"));
Contents\FunctionCallContentTests.cs (4)
320Assert.Throws<ArgumentNullException>("encodedArguments", () => FunctionCallContent.CreateFromParsedArguments((string)null!, "callId", "functionName", _ => null));
321Assert.Throws<ArgumentNullException>("callId", () => FunctionCallContent.CreateFromParsedArguments("{}", null!, "functionName", _ => null));
322Assert.Throws<ArgumentNullException>("name", () => FunctionCallContent.CreateFromParsedArguments("{}", "callId", null!, _ => null));
323Assert.Throws<ArgumentNullException>("argumentParser", () => FunctionCallContent.CreateFromParsedArguments("{}", "callId", "functionName", null!));
Contents\UriContentTests.cs (6)
15Assert.Throws<ArgumentNullException>("uri", () => new UriContent((string)null!, "image/png"));
16Assert.Throws<ArgumentNullException>("uri", () => new UriContent((Uri)null!, "image/png"));
19Assert.Throws<ArgumentNullException>("mediaType", () => new UriContent("data:image/png;base64,aGVsbG8=", null!));
23Assert.Throws<ArgumentNullException>("mediaType", () => new UriContent(new Uri("data:image/png;base64,aGVsbG8="), null!));
28Assert.Throws<ArgumentNullException>("value", () => c.Uri = null!);
44Assert.Throws<ArgumentNullException>("value", () => c.MediaType = null!);
Utilities\AIJsonUtilitiesTests.cs (6)
1103Assert.Throws<ArgumentNullException>("options", () => ((JsonSerializerOptions)null!).AddAIContentType<DerivedAIContent>("discriminator"));
1104Assert.Throws<ArgumentNullException>("options", () => ((JsonSerializerOptions)null!).AddAIContentType(typeof(DerivedAIContent), "discriminator"));
1105Assert.Throws<ArgumentNullException>("typeDiscriminatorId", () => options.AddAIContentType<DerivedAIContent>(null!));
1106Assert.Throws<ArgumentNullException>("typeDiscriminatorId", () => options.AddAIContentType(typeof(DerivedAIContent), null!));
1107Assert.Throws<ArgumentNullException>("contentType", () => options.AddAIContentType(null!, "discriminator"));
1510Assert.Throws<ArgumentNullException>("transformOptions", () => AIJsonUtilities.TransformSchema(schema, transformOptions: null!));
Microsoft.Extensions.AI.Evaluation (7)
Microsoft.Extensions.AI.Evaluation.Console (7)
Microsoft.Extensions.AI.Evaluation.NLP (7)
Microsoft.Extensions.AI.Evaluation.Quality (7)
Microsoft.Extensions.AI.Evaluation.Reporting (7)
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (7)
Microsoft.Extensions.AI.Evaluation.Safety (7)
Microsoft.Extensions.AI.Integration.Tests (7)
Microsoft.Extensions.AI.OpenAI (38)
Microsoft.Extensions.AI.OpenAI.Tests (23)
OpenAIConversionTests.cs (15)
389Assert.Throws<ArgumentNullException>("tool", () => ((AITool)null!).AsOpenAIResponseTool());
434Assert.Throws<ArgumentNullException>("messages", () => ((IEnumerable<ChatMessage>)null!).AsOpenAIChatMessages());
503Assert.Throws<ArgumentNullException>("messages", () => ((IEnumerable<ChatMessage>)null!).AsOpenAIResponseItems());
595Assert.Throws<ArgumentNullException>("chatCompletion", () => ((ChatCompletion)null!).AsChatResponse());
628Assert.Throws<ArgumentNullException>("chatCompletionUpdates", () => ((IAsyncEnumerable<StreamingChatCompletionUpdate>)null!).AsChatResponseUpdatesAsync());
674Assert.Throws<ArgumentNullException>("response", () => ((OpenAIResponse)null!).AsChatResponse());
683Assert.Throws<ArgumentNullException>("responseUpdates", () => ((IAsyncEnumerable<StreamingResponseUpdate>)null!).AsChatResponseUpdatesAsync());
692Assert.Throws<ArgumentNullException>("messages", () => ((IEnumerable<OpenAI.Chat.ChatMessage>)null!).AsChatMessages().ToArray());
715Assert.Throws<ArgumentNullException>("items", () => ((IEnumerable<ResponseItem>)null!).AsChatMessages());
779Assert.Throws<ArgumentNullException>("response", () => ((ChatResponse)null!).AsOpenAIChatCompletion());
932await Assert.ThrowsAsync<ArgumentNullException>(async () => await asyncEnumerable.GetAsyncEnumerator().MoveNextAsync());
1241Assert.Throws<ArgumentNullException>("response", () => ((ChatResponse)null!).AsOpenAIResponse());
1499Assert.Throws<ArgumentNullException>("tools", () => ((IList<AITool>)null!).Add(ResponseTool.CreateWebSearchTool()));
1500Assert.Throws<ArgumentNullException>("tool", () => new List<AITool>().Add((ResponseTool)null!));
1502Assert.Throws<ArgumentNullException>("tool", () => ((ResponseTool)null!).AsAITool());
Microsoft.Extensions.AI.Tests (53)
Functions\AIFunctionFactoryTest.cs (7)
31Assert.Throws<ArgumentNullException>("method", () => AIFunctionFactory.Create(method: null!));
32Assert.Throws<ArgumentNullException>("method", () => AIFunctionFactory.Create(method: null!, target: new object()));
33Assert.Throws<ArgumentNullException>("method", () => AIFunctionFactory.Create(method: null!, target: new object(), name: "myAiFunk"));
34Assert.Throws<ArgumentNullException>("target", () => AIFunctionFactory.Create(typeof(AIFunctionFactoryTest).GetMethod(nameof(InvalidArguments_Throw))!, (object?)null));
35Assert.Throws<ArgumentNullException>("createInstanceFunc", () =>
437await Assert.ThrowsAsync<ArgumentNullException>("arguments.Services", () => func.InvokeAsync(arguments).AsTask());
1087Assert.Throws<ArgumentNullException>("name", () => AIFunctionFactory.CreateDeclaration(null!, "description", default));
Microsoft.Extensions.AmbientMetadata.Application (13)
Microsoft.Extensions.AmbientMetadata.Application.Tests (9)
Microsoft.Extensions.AmbientMetadata.Build (9)
Microsoft.Extensions.AmbientMetadata.Build.Tests (4)
Microsoft.Extensions.AsyncState (8)
Microsoft.Extensions.AsyncState.Tests (1)
Microsoft.Extensions.Caching.Abstractions (20)
Microsoft.Extensions.Caching.Hybrid (7)
Microsoft.Extensions.Caching.Memory (27)
Microsoft.Extensions.Caching.SqlServer (4)
Microsoft.Extensions.Caching.StackExchangeRedis (2)
Microsoft.Extensions.Caching.StackExchangeRedis.Tests (1)
Microsoft.Extensions.Compliance.Abstractions (13)
Microsoft.Extensions.Compliance.Abstractions.Tests (2)
Microsoft.Extensions.Compliance.Redaction (12)
Microsoft.Extensions.Compliance.Redaction.Tests (2)
Microsoft.Extensions.Compliance.Testing (13)
Microsoft.Extensions.Compliance.Testing.Tests (8)
Microsoft.Extensions.Configuration (12)
Microsoft.Extensions.Configuration.Abstractions (3)
Microsoft.Extensions.Configuration.Binder (8)
Microsoft.Extensions.Configuration.CommandLine (1)
Microsoft.Extensions.Configuration.FileExtensions (8)
Microsoft.Extensions.Configuration.Ini (2)
Microsoft.Extensions.Configuration.Json (2)
Microsoft.Extensions.Configuration.UserSecrets (4)
Microsoft.Extensions.Configuration.Xml (6)
Microsoft.Extensions.DataIngestion (8)
Microsoft.Extensions.DataIngestion.Abstractions (13)
Microsoft.Extensions.DataIngestion.Markdig (7)
Microsoft.Extensions.DataIngestion.MarkItDown (7)
Microsoft.Extensions.DataIngestion.Tests (20)
Readers\MarkItDownMcpReaderTests.cs (5)
16Assert.Throws<ArgumentNullException>("mcpServerUri", () => new MarkItDownMcpReader(null!));
24await Assert.ThrowsAsync<ArgumentNullException>("identifier", async () => await reader.ReadAsync(new FileInfo("fileName.txt"), identifier: null!));
28await Assert.ThrowsAsync<ArgumentNullException>("identifier", async () => await reader.ReadAsync(stream, identifier: null!, mediaType: "some"));
37await Assert.ThrowsAsync<ArgumentNullException>("source", async () => await reader.ReadAsync(null!, "identifier"));
38await Assert.ThrowsAsync<ArgumentNullException>("source", async () => await reader.ReadAsync((Stream)null!, "identifier", "mediaType"));
Microsoft.Extensions.DependencyInjection (3)
Microsoft.Extensions.DependencyInjection.Abstractions (244)
Microsoft.Extensions.DependencyModel (51)
Microsoft.Extensions.Diagnostics (6)
Microsoft.Extensions.Diagnostics.Abstractions (5)
Microsoft.Extensions.Diagnostics.ExceptionSummarization (10)
Microsoft.Extensions.Diagnostics.HealthChecks (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (15)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (4)
Microsoft.Extensions.Diagnostics.Probes (7)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (11)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (5)
Microsoft.Extensions.Diagnostics.Testing (7)
Microsoft.Extensions.Diagnostics.Testing.Tests (6)
Microsoft.Extensions.Features (2)
Microsoft.Extensions.FileProviders.Composite (2)
Microsoft.Extensions.FileProviders.Embedded (4)
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
Microsoft.Extensions.FileProviders.Physical (4)
Microsoft.Extensions.FileSystemGlobbing (13)
Microsoft.Extensions.Hosting (29)
Microsoft.Extensions.Hosting.Abstractions (9)
Microsoft.Extensions.Hosting.Systemd (7)
Microsoft.Extensions.Hosting.Testing (7)
Microsoft.Extensions.Hosting.Testing.Tests (6)
Microsoft.Extensions.Hosting.WindowsServices (7)
Microsoft.Extensions.Http (125)
Microsoft.Extensions.Http.Diagnostics (7)
Microsoft.Extensions.Http.Diagnostics.Tests (18)
Microsoft.Extensions.Http.Resilience (13)
Microsoft.Extensions.Http.Resilience.Tests (16)
Microsoft.Extensions.Identity.Core (2)
Microsoft.Extensions.Identity.Stores (2)
Microsoft.Extensions.Localization (4)
Microsoft.Extensions.Localization.Abstractions (2)
Microsoft.Extensions.Localization.Tests (7)
Microsoft.Extensions.Logging (2)
Microsoft.Extensions.Logging.Abstractions (7)
Microsoft.Extensions.Logging.AzureAppServices (4)
Microsoft.Extensions.Logging.Configuration (2)
Microsoft.Extensions.Logging.Console (9)
Microsoft.Extensions.Logging.Debug (1)
Microsoft.Extensions.Logging.EventLog (9)
Microsoft.Extensions.Logging.EventSource (3)
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Extensions.Logging.TraceSource (21)
Microsoft.Extensions.ObjectPool (2)
Microsoft.Extensions.ObjectPool.DependencyInjection (9)
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (3)
Microsoft.Extensions.Options (51)
Microsoft.Extensions.Options.ConfigurationExtensions (9)
Microsoft.Extensions.Options.Contextual (7)
Microsoft.Extensions.Options.Contextual.Tests (1)
Microsoft.Extensions.Options.DataAnnotations (1)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Extensions.Primitives (6)
Microsoft.Extensions.Resilience (10)
Microsoft.Extensions.ServiceDiscovery (17)
Microsoft.Extensions.ServiceDiscovery.Abstractions (13)
Microsoft.Extensions.ServiceDiscovery.Dns (15)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (14)
Microsoft.Extensions.ServiceDiscovery.Tests (32)
Microsoft.Extensions.ServiceDiscovery.Yarp (10)
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (6)
Microsoft.Extensions.Telemetry (26)
Microsoft.Extensions.Telemetry.Abstractions (27)
Microsoft.Extensions.Telemetry.Abstractions.Tests (13)
Microsoft.Extensions.Telemetry.Tests (26)
Microsoft.Extensions.TimeProvider.Testing (7)
Microsoft.Extensions.Validation (3)
Microsoft.Extensions.WebEncoders (2)
Microsoft.Gen.BuildMetadata.Generated.Tests (2)
Microsoft.Gen.Metrics.Generated.Tests (8)
Microsoft.Interop.ComInterfaceGenerator (1)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
Microsoft.Interop.SourceGeneration (1)
Microsoft.JSInterop (26)
Microsoft.Maui (8)
Microsoft.Maui.Controls (37)
Microsoft.Maui.Controls.Maps (1)
Microsoft.Maui.Essentials (18)
Microsoft.ML.AutoML.Tests (4)
Microsoft.ML.Core (5)
Microsoft.ML.Data (2)
Microsoft.ML.Parquet (1)
Microsoft.ML.Predictor.Tests (3)
Microsoft.ML.Tests (2)
Microsoft.ML.Tokenizers (13)
Microsoft.ML.Tokenizers.Tests (2)
Microsoft.Net.Http.Headers (6)
Microsoft.Net.Http.Headers.Tests (6)
Microsoft.VisualBasic.Core (5)
Microsoft.VisualBasic.IntegrationTests (1)
Microsoft.VisualBasic.Tests (16)
Microsoft.VisualStudio.LanguageServices (1)
Microsoft.Web.Xdt.Extensions (3)
mscorlib (1)
netstandard (1)
PresentationBuildTasks (4)
PresentationCore (989)
PresentationCore.Tests (19)
PresentationFramework (1318)
PresentationFramework.Aero (2)
PresentationFramework.Aero2 (2)
PresentationFramework.AeroLite (2)
PresentationFramework.Fluent.Tests (1)
PresentationFramework.Luna (2)
PresentationFramework.Royale (2)
PresentationFramework.Tests (1)
PresentationUI (62)
ReachFramework (196)
Roslyn.Diagnostics.Analyzers (46)
RoutingSandbox (4)
RoutingWebSite (2)
Shared (9)
Shared.Tests (21)
Throw\ThrowTest.cs (17)
64var exception = Assert.Throws<ArgumentNullException>(() => Throw.ArgumentNullException(paramName));
73var exception = Assert.Throws<ArgumentNullException>(() => Throw.ArgumentNullException(paramName, message));
116var exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNull<string>(null!, "paramName"));
123var exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNull<int?>(null!, "paramName"));
224var exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNullOrWhitespace(null!, "paramName"));
246var exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNullOrEmpty(null, "paramName"));
322ArgumentException exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNullOrEmpty((ICollection<int>?)null, "foo"));
325exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNullOrEmpty((IReadOnlyCollection<int>?)null, "foo"));
328exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNullOrEmpty((List<int>?)null, "foo"));
331exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNullOrEmpty((Queue<int>?)null, "foo"));
334exception = Assert.Throws<ArgumentNullException>(() => Throw.IfNullOrEmpty((IEnumerable<int>?)null, "foo"));
System.CodeDom (98)
System.Collections (108)
System.Collections.Concurrent (48)
System.Collections.Immutable (33)
System.Collections.NonGeneric (18)
System.Collections.Specialized (26)
System.ComponentModel.Annotations (41)
System.ComponentModel.Composition (221)
System.ComponentModel.Composition.Registration (32)
System.ComponentModel.EventBasedAsync (1)
System.ComponentModel.Primitives (17)
System.ComponentModel.TypeConverter (165)
System.Composition.Convention (61)
System.Composition.Hosting (18)
System.Composition.Runtime (1)
System.Composition.TypedParts (15)
System.Configuration.ConfigurationManager (12)
System.Console (10)
System.Data.Common (53)
System.Data.Odbc (5)
System.Diagnostics.DiagnosticSource (11)
System.Diagnostics.Process (5)
System.Diagnostics.TextWriterTraceListener (2)
System.Diagnostics.TraceSource (11)
System.DirectoryServices.Protocols (36)
System.Drawing.Common (193)
System.Drawing.Common.Tests (286)
mono\System.Drawing\GraphicsTests.cs (36)
1086Assert.Throws<ArgumentNullException>(() => g.EndContainer(null));
1142Assert.Throws<ArgumentNullException>(() => g.FillRectangles(null, new Rectangle[1]));
1150Assert.Throws<ArgumentNullException>(() => g.FillRectangles(Brushes.Red, (Rectangle[])null));
1166Assert.Throws<ArgumentNullException>(() => g.FillRectangles(null, new RectangleF[1]));
1174Assert.Throws<ArgumentNullException>(() => g.FillRectangles(Brushes.Red, (RectangleF[])null));
1595Assert.Throws<ArgumentNullException>(() => g.MeasureString("a", null));
1596Assert.Throws<ArgumentNullException>(() => g.MeasureString("a".AsSpan(), null));
1883Assert.Throws<ArgumentNullException>(() => g.MeasureCharacterRanges("a", null, default, null));
1884Assert.Throws<ArgumentNullException>(() => g.MeasureCharacterRanges("a".AsSpan(), null, default, null));
2336Assert.Throws<ArgumentNullException>(() => g.DrawIcon(null, new Rectangle(0, 0, 32, 32)));
2360Assert.Throws<ArgumentNullException>(() => g.DrawIcon(null, 4, 2));
2377Assert.Throws<ArgumentNullException>(() => g.DrawIconUnstretched(null, new Rectangle(0, 0, 40, 20)));
2401Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, new RectangleF(0, 0, 0, 0)));
2420Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, new PointF(0, 0)));
2436Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, Array.Empty<PointF>()));
2444Assert.Throws<ArgumentNullException>(() => g.DrawImage(bmp, (PointF[])null));
2471Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, new Rectangle(0, 0, 0, 0)));
2494Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, new Point(0, 0)));
2510Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, Array.Empty<Point>()));
2518Assert.Throws<ArgumentNullException>(() => g.DrawImage(bmp, (Point[])null));
2542Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, int.MaxValue, int.MinValue));
2566Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, float.MaxValue, float.MinValue));
2590Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, default(Rectangle), default, GraphicsUnit.Display));
2627Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, pts, r, GraphicsUnit.Pixel));
2641Assert.Throws<ArgumentNullException>(() => DrawImage_ImagePointRectangleGraphicsUnit(null));
2685Assert.Throws<ArgumentNullException>(() => g.DrawImage(null, pts, r, GraphicsUnit.Pixel));
2699Assert.Throws<ArgumentNullException>(() => DrawImage_ImagePointFRectangleGraphicsUnit(null));
2764Assert.Throws<ArgumentNullException>(() => g.DrawImageUnscaled(null, new Point(0, 0)));
2780Assert.Throws<ArgumentNullException>(() => g.DrawImageUnscaled(null, new Rectangle(0, 0, -1, -1)));
2796Assert.Throws<ArgumentNullException>(() => g.DrawImageUnscaled(null, 0, 0));
2812Assert.Throws<ArgumentNullException>(() => g.DrawImageUnscaled(null, 0, 0, -1, -1));
2828Assert.Throws<ArgumentNullException>(() => g.DrawImageUnscaledAndClipped(null, new Rectangle(0, 0, 0, 0)));
2856Assert.Throws<ArgumentNullException>(() => g.DrawPath(null, path));
2864Assert.Throws<ArgumentNullException>(() => g.DrawPath(Pens.Black, null));
2898Assert.Throws<ArgumentNullException>(() => g.FillPath(null, path));
2906Assert.Throws<ArgumentNullException>(() => g.FillPath(Brushes.Black, null));
System\Drawing\BitmapTests.cs (11)
68AssertExtensions.Throws<ArgumentNullException>("path", () => new Bitmap((string)null));
69AssertExtensions.Throws<ArgumentNullException>("path", () => new Bitmap((string)null, false));
96AssertExtensions.Throws<ArgumentNullException, NullReferenceException>("type", () => new Bitmap(null, "name"));
112AssertExtensions.Throws<ArgumentNullException, ArgumentException>("resource", null, () => new Bitmap(typeof(Bitmap), null));
145AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => new Bitmap((Stream)null));
146AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => new Bitmap((Stream)null, false));
296AssertExtensions.Throws<ArgumentNullException>("g", null, () => new Bitmap(1, 1, null));
341AssertExtensions.Throws<ArgumentNullException>("original", "image", () => new Bitmap(null, new Size(1, 2)));
342AssertExtensions.Throws<ArgumentNullException>("original", "image", () => new Bitmap(null, 1, 2));
1094AssertExtensions.Throws<ArgumentNullException>("bitmapData", () => bitmap.LockBits(Rectangle.Empty, ImageLockMode.ReadOnly, PixelFormat.Format24bppRgb, null));
1234AssertExtensions.Throws<ArgumentNullException>("bitmapdata", () => bitmap.UnlockBits(null));
System\Drawing\Drawing2D\GraphicsPathTests.cs (26)
82AssertExtensions.Throws<ArgumentNullException>("pts", () => new GraphicsPath((Point[])null, new byte[1]));
316AssertExtensions.Throws<ArgumentNullException>("points", () => new GraphicsPath().AddLines((Point[])null));
317AssertExtensions.Throws<ArgumentNullException>("points", () => new GraphicsPath().AddLines((PointF[])null));
427AssertExtensions.Throws<ArgumentNullException>("points", () => gp.AddBeziers((PointF[])null));
428AssertExtensions.Throws<ArgumentNullException>("points", () => gp.AddBeziers((Point[])null));
666AssertExtensions.Throws<ArgumentNullException>("points", () => gp.AddClosedCurve((PointF[])null));
667AssertExtensions.Throws<ArgumentNullException>("points", () => gp.AddClosedCurve((Point[])null));
806AssertExtensions.Throws<ArgumentNullException>("rects", () => gp.AddRectangles((RectangleF[])null));
807AssertExtensions.Throws<ArgumentNullException>("rects", () => gp.AddRectangles((Rectangle[])null));
939AssertExtensions.Throws<ArgumentNullException>("points", () => new GraphicsPath().AddPolygon((Point[])null));
940AssertExtensions.Throws<ArgumentNullException>("points", () => new GraphicsPath().AddPolygon((PointF[])null));
987AssertExtensions.Throws<ArgumentNullException>("addingPath", () => new GraphicsPath().AddPath(null, false));
1066Assert.Throws<ArgumentNullException>(() =>
1068Assert.Throws<ArgumentNullException>(() =>
1070Assert.Throws<ArgumentNullException>(() =>
1072Assert.Throws<ArgumentNullException>(() =>
1080AssertExtensions.Throws<ArgumentNullException, ArgumentException>("family", null, () =>
1112AssertExtensions.Throws<ArgumentNullException>("matrix", () => gp.Transform(null));
1281AssertExtensions.Throws<ArgumentNullException>("destPoints", () => gp.Warp(null, default));
1684AssertExtensions.Throws<ArgumentNullException>("pen", () => gp.Widen(null));
1685AssertExtensions.Throws<ArgumentNullException>("pen", () => gp.Widen(null, new Matrix()));
1686AssertExtensions.Throws<ArgumentNullException>("pen", () => gp.Widen(null, new Matrix(), 0.67f));
1739AssertExtensions.Throws<ArgumentNullException>("pen", () => gp.IsOutlineVisible(1, 1, null));
1740AssertExtensions.Throws<ArgumentNullException>("pen", () => gp.IsOutlineVisible(1.0f, 1.0f, null));
1741AssertExtensions.Throws<ArgumentNullException>("pen", () => gp.IsOutlineVisible(default, null));
1742AssertExtensions.Throws<ArgumentNullException>("pen", () => gp.IsOutlineVisible(default(PointF), null));
System\Drawing\Drawing2D\LinearGradientBrushTests.cs (7)
314Assert.Throws<ArgumentNullException>(() => brush.Blend = null);
321Assert.Throws<ArgumentNullException>(() => brush.Blend = new Blend { Factors = null });
328AssertExtensions.Throws<ArgumentException, ArgumentNullException>("value", "source", () => brush.Blend = new Blend { Factors = new float[2], Positions = null });
414AssertExtensions.Throws<ArgumentNullException>("value", () => brush.InterpolationColors = null);
588AssertExtensions.Throws<ArgumentNullException>("value", "matrix", () => brush.Transform = null);
698AssertExtensions.Throws<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null));
699AssertExtensions.Throws<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null, MatrixOrder.Append));
System\Drawing\Drawing2D\MatrixTests.cs (9)
131AssertExtensions.Throws<ArgumentNullException>("plgpts", () => new Matrix(default(RectangleF), null));
132AssertExtensions.Throws<ArgumentNullException>("plgpts", () => new Matrix(default, null));
338AssertExtensions.Throws<ArgumentNullException>("matrix", () => matrix.Multiply(null));
339AssertExtensions.Throws<ArgumentNullException>("matrix", () => matrix.Multiply(null, MatrixOrder.Prepend));
731AssertExtensions.Throws<ArgumentNullException>("pts", () => matrix.TransformPoints((Point[])null));
732AssertExtensions.Throws<ArgumentNullException>("pts", () => matrix.TransformPoints((PointF[])null));
797AssertExtensions.Throws<ArgumentNullException>("pts", () => matrix.VectorTransformPoints(null));
798AssertExtensions.Throws<ArgumentNullException>("pts", () => matrix.TransformVectors((Point[])null));
799AssertExtensions.Throws<ArgumentNullException>("pts", () => matrix.TransformVectors((PointF[])null));
System\Drawing\Drawing2D\PathGradientBrushTests.cs (13)
71AssertExtensions.Throws<ArgumentNullException>("points", () => new PathGradientBrush((Point[])null));
72AssertExtensions.Throws<ArgumentNullException>("points", () => new PathGradientBrush((PointF[])null));
108AssertExtensions.Throws<ArgumentNullException>("path", () => new PathGradientBrush((GraphicsPath)null));
215AssertExtensions.Throws<ArgumentNullException>(() => brush.SurroundColors = null);
327Assert.Throws<ArgumentNullException>(() => brush.Blend = null);
328Assert.Throws<ArgumentNullException>(() => brush.Blend = new Blend() { Factors = null, Positions = null });
329Assert.Throws<ArgumentNullException>(() => brush.Blend = new Blend() { Factors = null, Positions = [] });
336AssertExtensions.Throws<ArgumentException, ArgumentNullException>("value", "source", () =>
577Assert.Throws<ArgumentNullException>(() => brush.InterpolationColors = null);
595AssertExtensions.Throws<ArgumentException, ArgumentNullException>("value", "source", () =>
663AssertExtensions.Throws<ArgumentNullException>("value", "matrix", () => brush.Transform = null);
734AssertExtensions.Throws<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null));
735AssertExtensions.Throws<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null, MatrixOrder.Append));
System\Drawing\FontTests.cs (12)
326AssertExtensions.Throws<ArgumentNullException>("family", () => new Font((FontFamily)null, 10));
327AssertExtensions.Throws<ArgumentNullException>("family", () => new Font((FontFamily)null, 10, FontStyle.Italic));
328AssertExtensions.Throws<ArgumentNullException>("family", () => new Font((FontFamily)null, 10, GraphicsUnit.Display));
329AssertExtensions.Throws<ArgumentNullException>("family", () => new Font((FontFamily)null, 10, FontStyle.Italic, GraphicsUnit.Display));
330AssertExtensions.Throws<ArgumentNullException>("family", () => new Font((FontFamily)null, 10, FontStyle.Italic, GraphicsUnit.Display, 10));
331AssertExtensions.Throws<ArgumentNullException>("family", () => new Font((FontFamily)null, 10, FontStyle.Italic, GraphicsUnit.Display, 10, gdiVerticalFont: true));
526AssertExtensions.Throws<ArgumentNullException>("graphics", () => font.GetHeight(null));
603AssertExtensions.Throws<ArgumentNullException>("lf", () => Font.FromLogFont(null));
604AssertExtensions.Throws<ArgumentNullException>("lf", () => Font.FromLogFont(null, hdc));
766Assert.Throws<ArgumentNullException>(() => font.ToLogFont(null));
767Assert.Throws<ArgumentNullException>(() => font.ToLogFont(null, graphics));
775AssertExtensions.Throws<ArgumentNullException>("graphics", () => font.ToLogFont(new LOGFONT(), null));
System\Drawing\Graphics_DrawBezierTests.cs (7)
65AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawBezier(null, 1, 2, 3, 4, 5, 6, 7, 8));
66AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawBezier(null, Point.Empty, Point.Empty, Point.Empty, Point.Empty));
67AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawBezier(null, PointF.Empty, PointF.Empty, PointF.Empty, PointF.Empty));
121AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawBeziers(null, new Point[2]));
122AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawBeziers(null, new PointF[2]));
143AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawBeziers(pen, (Point[])null));
144AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawBeziers(pen, (PointF[])null));
System\Drawing\Graphics_DrawLineTests.cs (8)
43AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawLine(null, Point.Empty, Point.Empty));
44AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawLine(null, 0, 0, 0, 0));
45AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawLine(null, PointF.Empty, PointF.Empty));
46AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawLine(null, 0f, 0f, 0f, 0f));
102AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawLines(null, new Point[2]));
103AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawLines(null, new PointF[2]));
124AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawLines(pen, (Point[])null));
125AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawLines(pen, (PointF[])null));
System\Drawing\GraphicsTests.Core.cs (2)
75AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawRectangle(null, new RectangleF(0f, 0f, 1f, 1f)));
129AssertExtensions.Throws<ArgumentNullException>("brush", () => graphics.FillPie(null, new RectangleF(0, 0, 1, 1), 0, 90));
System\Drawing\GraphicsTests.cs (57)
111AssertExtensions.Throws<ArgumentNullException>("hdc", () => Graphics.FromHdc(IntPtr.Zero));
259AssertExtensions.Throws<ArgumentNullException>("image", () => Graphics.FromImage(null));
1222AssertExtensions.Throws<ArgumentNullException>("matrix", () => graphics.MultiplyTransform(null));
1223AssertExtensions.Throws<ArgumentNullException>("matrix", () => graphics.MultiplyTransform(null, MatrixOrder.Append));
1874AssertExtensions.Throws<ArgumentNullException>("pts", () => graphics.TransformPoints(CoordinateSpace.Page, CoordinateSpace.Page, (Point[])null));
1875AssertExtensions.Throws<ArgumentNullException>("pts", () => graphics.TransformPoints(CoordinateSpace.Page, CoordinateSpace.Page, (PointF[])null));
1961AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawArc(null, new Rectangle(0, 0, 1, 1), 0, 90));
1962AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawArc(null, 0, 0, 1, 1, 0, 90));
1963AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawArc(null, new RectangleF(0, 0, 1, 1), 0, 90));
1964AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawArc(null, 0f, 0f, 1f, 1f, 0, 90));
2044AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawRectangle(null, new Rectangle(0, 0, 1, 1)));
2045AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawRectangle(null, 0, 0, 1, 1));
2046AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawRectangle(null, 0f, 0f, 1f, 1f));
2099AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawRectangles(null, new Rectangle[2]));
2100AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawRectangles(null, new RectangleF[2]));
2121AssertExtensions.Throws<ArgumentNullException>("rects", () => graphics.DrawRectangles(pen, (Rectangle[])null));
2122AssertExtensions.Throws<ArgumentNullException>("rects", () => graphics.DrawRectangles(pen, (RectangleF[])null));
2170AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawEllipse(null, new Rectangle(0, 0, 1, 1)));
2171AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawEllipse(null, 0, 0, 1, 1));
2172AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawEllipse(null, new RectangleF(0, 0, 1, 1)));
2173AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawEllipse(null, 0f, 0f, 1f, 1f));
2229AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPie(null, new Rectangle(0, 0, 1, 1), 0, 90));
2230AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPie(null, 0, 0, 1, 1, 0, 90));
2231AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPie(null, new RectangleF(0, 0, 1, 1), 0, 90));
2232AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPie(null, 0f, 0f, 1f, 1f, 0, 90));
2312AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPolygon(null, new Point[2]));
2313AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPolygon(null, new PointF[2]));
2334AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawPolygon(pen, (Point[])null));
2335AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawPolygon(pen, (PointF[])null));
2386AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawPath(null, graphicsPath));
2407AssertExtensions.Throws<ArgumentNullException>("path", () => graphics.DrawPath(pen, null));
2457AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new Point[2]));
2458AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new PointF[2]));
2459AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new Point[2], 1));
2460AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new PointF[2], 1));
2461AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new PointF[2], 0, 2));
2462AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new Point[2], 0, 2, 1));
2463AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawCurve(null, new PointF[2], 0, 2, 1));
2489AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (Point[])null));
2490AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (PointF[])null));
2491AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (Point[])null, 1));
2492AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (PointF[])null, 1));
2493AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawCurve(pen, null, 0, 2));
2494AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (Point[])null, 0, 2, 1));
2495AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawCurve(pen, (PointF[])null, 0, 2, 1));
2576AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawClosedCurve(null, new Point[3]));
2577AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawClosedCurve(null, new Point[3], 1, FillMode.Winding));
2578AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawClosedCurve(null, new PointF[3]));
2579AssertExtensions.Throws<ArgumentNullException>("pen", () => graphics.DrawClosedCurve(null, new PointF[3], 1, FillMode.Winding));
2602AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawClosedCurve(pen, (Point[])null));
2603AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawClosedCurve(pen, (Point[])null, 1, FillMode.Winding));
2604AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawClosedCurve(pen, (PointF[])null));
2605AssertExtensions.Throws<ArgumentNullException>("points", () => graphics.DrawClosedCurve(pen, (PointF[])null, 1, FillMode.Winding));
2662AssertExtensions.Throws<ArgumentNullException>("brush", () => graphics.FillPie(null, new Rectangle(0, 0, 1, 1), 0, 90));
2663AssertExtensions.Throws<ArgumentNullException>("brush", () => graphics.FillPie(null, 0, 0, 1, 1, 0, 90));
2664AssertExtensions.Throws<ArgumentNullException>("brush", () => graphics.FillPie(null, 0f, 0f, 1f, 1f, 0, 90));
2868Assert.Throws<ArgumentNullException>(() => graphics.DrawCachedBitmap(null!, 0, 0));
System\Drawing\IconTests.cs (14)
89AssertExtensions.Throws<ArgumentNullException>("path", () => new Icon((string)null));
90AssertExtensions.Throws<ArgumentNullException>("path", () => new Icon((string)null, new Size(32, 32)));
91AssertExtensions.Throws<ArgumentNullException>("path", () => new Icon((string)null, 32, 32));
145AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => new Icon((Stream)null));
146AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => new Icon((Stream)null, 32, 32));
147AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => new Icon((Stream)null, new Size(32, 32)));
245AssertExtensions.Throws<ArgumentNullException, ArgumentException>("original", null, () => new Icon((Icon)null, 32, 32));
246AssertExtensions.Throws<ArgumentNullException, ArgumentException>("original", null, () => new Icon((Icon)null, new Size(32, 32)));
275AssertExtensions.Throws<ArgumentNullException, ArgumentException>("resource", null, () => new Icon(typeof(Icon), null));
401AssertExtensions.Throws<ArgumentNullException, ArgumentException>("filePath", null, () => Icon.ExtractAssociatedIcon(null));
453Assert.Throws<ArgumentNullException>(() => icon.Save(null));
463AssertExtensions.Throws<ArgumentNullException>("outputStream", "dataStream", () => icon.Save(null));
786Assert.Throws<ArgumentNullException>(() => { Icon.ExtractIcon(null!, 0, 16); });
787Assert.Throws<ArgumentNullException>(() => { Icon.ExtractIcon(null!, 0); });
System\Drawing\ImageTests.cs (5)
505AssertExtensions.Throws<ArgumentNullException>("path", () => Image.FromFile(null));
506AssertExtensions.Throws<ArgumentNullException>("path", () => Image.FromFile(null, useEmbeddedColorManagement: true));
564AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => Image.FromStream(null));
565AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => Image.FromStream(null, useEmbeddedColorManagement: true));
566AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => Image.FromStream(null, useEmbeddedColorManagement: true, validateImageData: true));
System\Drawing\Imaging\ImageAttributesTests.cs (10)
231AssertExtensions.Throws<ArgumentNullException>("newColorMatrix", () => imageAttr.SetColorMatrix(null));
232AssertExtensions.Throws<ArgumentNullException>("newColorMatrix", () => imageAttr.SetColorMatrix(null, ColorMatrixFlag.Default));
233AssertExtensions.Throws<ArgumentNullException>("newColorMatrix", () =>
449AssertExtensions.Throws<ArgumentNullException>("newColorMatrix", () => imageAttr.SetColorMatrices(null, _grayMatrix));
450AssertExtensions.Throws<ArgumentNullException>("newColorMatrix", () => imageAttr.SetColorMatrices(null, _grayMatrix, ColorMatrixFlag.Default));
452AssertExtensions.Throws<ArgumentNullException>("newColorMatrix", () =>
1083Assert.Throws<ArgumentNullException>(() => imageAttr.SetOutputChannelColorProfile(null));
1084Assert.Throws<ArgumentNullException>(() => imageAttr.SetOutputChannelColorProfile(null, ColorAdjustType.Default));
1222AssertExtensions.ThrowsAny<ArgumentNullException, ArgumentException>(() => imageAttr.SetRemapTable(_yellowToRedColorMap, type));
1229Assert.Throws<ArgumentNullException>(() => imageAttr.SetRemapTable(null, ColorAdjustType.Default));
System\Drawing\Imaging\MetafileTests.cs (15)
69AssertExtensions.Throws<ArgumentNullException>("path", () => new Metafile((string)null));
104AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => new Metafile((Stream)null));
414AssertExtensions.Throws<ArgumentNullException>("path", () => new Metafile((string)null, referenceHdc));
415AssertExtensions.Throws<ArgumentNullException>("path", () => new Metafile((string)null, referenceHdc, EmfType.EmfOnly));
416AssertExtensions.Throws<ArgumentNullException>("path", () => new Metafile((string)null, referenceHdc, EmfType.EmfOnly, "description"));
681AssertExtensions.Throws<ArgumentNullException>("path", () => new Metafile((string)null, referenceHdc, _rectangleF));
682AssertExtensions.Throws<ArgumentNullException>("path", () =>
684AssertExtensions.Throws<ArgumentNullException>("path", () =>
686AssertExtensions.Throws<ArgumentNullException>("path", () =>
830Assert.Throws<ArgumentNullException>(() => new Metafile((Stream)null, referenceHdc, _rectangleF));
831Assert.Throws<ArgumentNullException>(() => new Metafile((Stream)null, referenceHdc, _rectangleF, MetafileFrameUnit.GdiCompatible));
832Assert.Throws<ArgumentNullException>(() =>
834Assert.Throws<ArgumentNullException>(() =>
864AssertExtensions.Throws<ArgumentNullException>("path", () => Metafile.GetMetafileHeader((string)null));
878Assert.Throws<ArgumentNullException>(() => Metafile.GetMetafileHeader((Stream)null));
System\Drawing\RegionTests.cs (21)
121AssertExtensions.Throws<ArgumentNullException>("rgnData", () => new Region((RegionData)null));
245AssertExtensions.Throws<ArgumentNullException>("path", () => new Region((GraphicsPath)null));
406AssertExtensions.Throws<ArgumentNullException>("region", () => region.Complement((Region)null));
509AssertExtensions.Throws<ArgumentNullException>("path", () => region.Complement((GraphicsPath)null));
592AssertExtensions.Throws<ArgumentNullException>("region", () => region.Equals(null, s_graphic));
599AssertExtensions.Throws<ArgumentNullException>("g", () => region.Equals(region, null));
813AssertExtensions.Throws<ArgumentNullException>("region", () => region.Exclude((Region)null));
892AssertExtensions.Throws<ArgumentNullException>("path", () => region.Exclude((GraphicsPath)null));
961AssertExtensions.Throws<ArgumentNullException>("g", () => region.GetHrgn(null));
974AssertExtensions.Throws<ArgumentNullException>("regionHandle", () => region.ReleaseHrgn(IntPtr.Zero));
981AssertExtensions.Throws<ArgumentNullException>("g", () => region.GetBounds(null));
1023AssertExtensions.Throws<ArgumentNullException>("matrix", () => region.GetRegionScans(null));
1146AssertExtensions.Throws<ArgumentNullException>("region", () => region.Intersect((Region)null));
1249AssertExtensions.Throws<ArgumentNullException>("path", () => region.Intersect((GraphicsPath)null));
1269AssertExtensions.Throws<ArgumentNullException>("g", () => region.IsEmpty(null));
1282AssertExtensions.Throws<ArgumentNullException>("g", () => region.IsInfinite(null));
1708AssertExtensions.Throws<ArgumentNullException>("region", () => region.Union((Region)null));
1788AssertExtensions.Throws<ArgumentNullException>("path", () => region.Union((GraphicsPath)null));
1876AssertExtensions.Throws<ArgumentNullException>("matrix", () => region.Transform(null));
2066AssertExtensions.Throws<ArgumentNullException>("region", () => region.Xor((Region)null));
2146AssertExtensions.Throws<ArgumentNullException>("path", () => region.Xor((GraphicsPath)null));
System\Drawing\TextureBrushTests.cs (11)
242AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush((Image)null));
243AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, WrapMode.Tile));
244AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, RectangleF.Empty));
245AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, Rectangle.Empty));
246AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, RectangleF.Empty, null));
247AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, Rectangle.Empty, null));
248AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, WrapMode.Tile, RectangleF.Empty));
249AssertExtensions.Throws<ArgumentNullException>("image", () => new TextureBrush(null, WrapMode.Tile, Rectangle.Empty));
374AssertExtensions.Throws<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null));
375AssertExtensions.Throws<ArgumentNullException>("matrix", () => brush.MultiplyTransform(null, MatrixOrder.Prepend));
598AssertExtensions.Throws<ArgumentNullException>("value", () => brush.Transform = null);
System.Formats.Asn1 (25)
System.Formats.Cbor (4)
System.Formats.Nrbf (7)
System.Formats.Tar (37)
System.IO.Compression (21)
System.IO.Compression.Brotli (7)
System.IO.Compression.ZipFile (62)
System.IO.FileSystem.DriveInfo (1)
System.IO.FileSystem.Watcher (3)
System.IO.Hashing (24)
System.IO.IsolatedStorage (8)
System.IO.MemoryMappedFiles (4)
System.IO.Packaging (84)
System.IO.Pipelines (2)
System.IO.Pipes (7)
System.IO.Ports (2)
System.Linq (43)
System.Linq.AsyncEnumerable (697)
System.Linq.Expressions (288)
System.Linq.Parallel (384)
System.Linq.Queryable (357)
System.Memory (17)
System.Memory.Data (5)
System.Net.Http (45)
System.Net.Http.Json (50)
System.Net.HttpListener (17)
System.Net.Mail (39)
System.Net.NameResolution (12)
System.Net.NetworkInformation (1)
System.Net.Ping (18)
System.Net.Primitives (30)
System.Net.Requests (19)
System.Net.Security (11)
System.Net.ServerSentEvents (2)
System.Net.Sockets (87)
System.Net.WebClient (31)
System.Net.WebProxy (2)
System.Net.WebSockets (9)
System.Net.WebSockets.Client (4)
System.ObjectModel (15)
System.Private.CoreLib (1734)
System.Private.CoreLib.Generators (1)
System.Private.DataContractSerialization (177)
System.Private.Uri (16)
System.Private.Windows.Core (15)
System.Private.Windows.Core.Tests (4)
System.Private.Windows.Core.TestUtilities (7)
System.Private.Windows.GdiPlus (1)
System.Private.Xml (395)
System.Private.Xml.Linq (139)
System.Reflection.Context (6)
System.Reflection.DispatchProxy (3)
System.Reflection.Emit (44)
System.Reflection.Metadata (96)
System.Reflection.MetadataLoadContext (23)
System.Reflection.TypeExtensions (53)
System.Resources.Extensions (20)
System.Resources.Writer (10)
System.Runtime (1)
System.Runtime.Caching (25)
System.Runtime.Numerics (2)
System.Runtime.Serialization.Formatters (38)
System.Security.Claims (86)
System.Security.Cryptography (1172)
System.Security.Cryptography.Cose (127)
System.Security.Cryptography.Pkcs (62)
System.Security.Cryptography.ProtectedData (2)
System.Security.Cryptography.Xml (82)
System.Security.Permissions (1)
System.ServiceModel.Federation (2)
System.ServiceModel.Federation.Tests (2)
System.ServiceModel.Http.Tests (6)
System.ServiceModel.NetTcp.Tests (2)
System.ServiceModel.Primitives (12)
System.ServiceModel.Primitives.Tests (23)
System.ServiceModel.Syndication (139)
System.ServiceModel.UnixDomainSocket.Tests (1)
System.Text.Encoding.CodePages (20)
System.Text.Json (378)
System\Text\Json\Serialization\JsonSerializer.Read.Pipe.cs (22)
29/// <exception cref="System.ArgumentNullException">
48ArgumentNullException.ThrowIfNull(utf8Json, nameof(utf8Json));
65/// <exception cref="System.ArgumentNullException">
78ArgumentNullException.ThrowIfNull(utf8Json, nameof(utf8Json));
79ArgumentNullException.ThrowIfNull(jsonTypeInfo, nameof(jsonTypeInfo));
95/// <exception cref="System.ArgumentNullException">
107ArgumentNullException.ThrowIfNull(utf8Json, nameof(utf8Json));
108ArgumentNullException.ThrowIfNull(jsonTypeInfo, nameof(jsonTypeInfo));
125/// <exception cref="System.ArgumentNullException">
147ArgumentNullException.ThrowIfNull(utf8Json, nameof(utf8Json));
148ArgumentNullException.ThrowIfNull(returnType, nameof(returnType));
149ArgumentNullException.ThrowIfNull(context, nameof(context));
166/// <exception cref="System.ArgumentNullException">
186ArgumentNullException.ThrowIfNull(utf8Json, nameof(utf8Json));
187ArgumentNullException.ThrowIfNull(returnType, nameof(returnType));
202/// <exception cref="System.ArgumentNullException">
224/// <exception cref="System.ArgumentNullException">
245/// <exception cref="System.ArgumentNullException">
260ArgumentNullException.ThrowIfNull(utf8Json, nameof(utf8Json));
261ArgumentNullException.ThrowIfNull(jsonTypeInfo, nameof(jsonTypeInfo));
277/// <exception cref="System.ArgumentNullException">
294ArgumentNullException.ThrowIfNull(utf8Json, nameof(utf8Json));
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions (19)
System.Text.RegularExpressions.Generator (1)
System.Threading.Channels (6)
System.Threading.RateLimiting (8)
System.Threading.Tasks.Dataflow (135)
System.Threading.Tasks.Parallel (225)
System.Transactions.Local (22)
System.Web.HttpUtility (6)
System.Windows.Controls.Ribbon (81)
System.Windows.Forms (438)
System.Windows.Forms.Design (213)
System.Windows.Forms.Design.Tests (123)
System.Windows.Forms.IntegrationTests.Common (1)
System.Windows.Forms.Primitives (4)
System.Windows.Forms.Primitives.Tests (52)
System.Windows.Forms.Primitives.TestUtilities (4)
System.Windows.Forms.Tests (600)
System\Windows\Forms\BindingContextTests.cs (15)
63Assert.Throws<ArgumentNullException>("dataSource", () => context.Add(null, source.CurrencyManager));
108Assert.Throws<ArgumentNullException>("listManager", () => context.Add(1, null));
154Assert.Throws<ArgumentNullException>("dataSource", () => context.AddCore(null, source.CurrencyManager));
161Assert.Throws<ArgumentNullException>("listManager", () => context.AddCore(1, null));
268Assert.Throws<ArgumentNullException>("dataSource", () => context.Remove(null));
301Assert.Throws<ArgumentNullException>("dataSource", () => context.RemoveCore(null));
398Assert.Throws<ArgumentNullException>("dataSource", () => context.Contains(null));
399Assert.Throws<ArgumentNullException>("dataSource", () => context.Contains(null, null));
400Assert.Throws<ArgumentNullException>("dataSource", () => context.Contains(null, string.Empty));
472Assert.Throws<ArgumentNullException>("dataSource", () => context[mockIListSource.Object]);
684Assert.Throws<ArgumentNullException>("dataSource", () => context[dataSource, "Property"]);
736Assert.Throws<ArgumentNullException>("dataSource", () => context[null]);
737Assert.Throws<ArgumentNullException>("dataSource", () => context[null, null]);
738Assert.Throws<ArgumentNullException>("dataSource", () => context[null, string.Empty]);
1017Assert.Throws<ArgumentNullException>("binding", () => BindingContext.UpdateBinding([], null));
System\Windows\Forms\ControlBindingsCollectionTests.cs (8)
230Assert.Throws<ArgumentNullException>("dataSource", () => collection.Add("propertyName", null, "dataMember"));
231Assert.Throws<ArgumentNullException>("dataSource", () => collection.Add("propertyName", null, "dataMember", true));
232Assert.Throws<ArgumentNullException>("dataSource", () => collection.Add("propertyName", null, "dataMember", true, DataSourceUpdateMode.OnPropertyChanged));
233Assert.Throws<ArgumentNullException>("dataSource", () => collection.Add("propertyName", null, "dataMember", true, DataSourceUpdateMode.OnPropertyChanged, "null"));
234Assert.Throws<ArgumentNullException>("dataSource", () => collection.Add("propertyName", null, "dataMember", true, DataSourceUpdateMode.OnPropertyChanged, "null", "formatString"));
235Assert.Throws<ArgumentNullException>("dataSource", () => collection.Add("propertyName", null, "dataMember", true, DataSourceUpdateMode.OnPropertyChanged, "null", "formatString", CultureInfo.CurrentCulture));
274Assert.Throws<ArgumentNullException>("dataBinding", () => collection.Add(null));
345Assert.Throws<ArgumentNullException>("dataBinding", () => collection.Remove(null));
System\Windows\Forms\ControlPaintTests.cs (40)
84Assert.Throws<ArgumentNullException>(() => ControlPaint.CreateHBitmap16Bit(null, Color.Red));
195Assert.Throws<ArgumentNullException>(() => ControlPaint.CreateHBitmapColorMask(null, IntPtr.Zero));
263Assert.Throws<ArgumentNullException>("bitmap", () => ControlPaint.CreateHBitmapTransparencyMask(null));
677Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder(null, new Rectangle(1, 2, 3, 4), Color.Red, style));
685Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder(null, new Rectangle(1, 2, 3, 4), Color.Red, 1, style, Color.Red, 1, style, Color.Red, 1, style, Color.Red, 1, style));
804Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder3D(null, new Rectangle(1, 2, 3, 4)));
805Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder3D(null, new Rectangle(1, 2, 3, 4), style));
806Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder3D(null, new Rectangle(1, 2, 3, 4), style, Border3DSide.All));
807Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder3D(null, 1, 2, 3, 4));
808Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder3D(null, 1, 2, 3, 4, style));
809Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawBorder3D(null, 1, 2, 3, 4, style, Border3DSide.All));
852Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawButton(null, new Rectangle(1, 2, 3, 4), state));
853Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawButton(null, 1, 2, 3, 4, state));
936Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawCaptionButton(null, new Rectangle(1, 2, 3, 4), CaptionButton.Close, state));
937Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawCaptionButton(null, 1, 2, 3, 4, CaptionButton.Close, state));
1016Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawCheckBox(null, new Rectangle(1, 2, 3, 4), state));
1017Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawCheckBox(null, 1, 2, 3, 4, state));
1097Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawComboButton(null, new Rectangle(1, 2, 3, 4), state));
1098Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawComboButton(null, 1, 2, 3, 4, state));
1162Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawContainerGrabHandle(null, new Rectangle(1, 2, 3, 4)));
1221Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawFocusRectangle(null, new Rectangle(1, 2, 3, 4)));
1222Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawFocusRectangle(null, new Rectangle(1, 2, 3, 4), Color.Red, Color.Blue));
1260Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawGrabHandle(null, new Rectangle(1, 2, 3, 4), primary, enabled));
1293Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawGrid(null, new Rectangle(1, 2, 3, 4), new Size(1, 1), Color.Red));
1343Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawImageDisabled(null, image, 0, 0, Color.Red));
1384Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawLockedFrame(null, new Rectangle(1, 2, 3, 4), primary));
1472Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawMenuGlyph(null, new Rectangle(1, 2, 3, 4), glyph));
1473Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawMenuGlyph(null, 1, 2, 3, 4, glyph));
1558Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawMixedCheckBox(null, new Rectangle(1, 2, 3, 4), state));
1559Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawMixedCheckBox(null, 1, 2, 3, 4, state));
1638Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawRadioButton(null, new Rectangle(1, 2, 3, 4), state));
1639Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawRadioButton(null, 1, 2, 3, 4, state));
1776Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawScrollButton(null, new Rectangle(1, 2, 3, 4), ScrollButton.Up, state));
1777Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawScrollButton(null, 1, 2, 3, 4, ScrollButton.Up, state));
1849Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawSelectionFrame(null, active, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), Color.Red));
1894Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawSizeGrip(null, Color.Red, new Rectangle(1, 2, 3, 4)));
1895Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawSizeGrip(null, Color.Red, 1, 2, 3, 4));
1943Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawStringDisabled(null, s, SystemFonts.MenuFont, Color.Red, new RectangleF(1, 2, 3, 4), new StringFormat()));
1979Assert.Throws<ArgumentNullException>("dc", () => ControlPaint.DrawStringDisabled(null, s, SystemFonts.MenuFont, Color.Red, new Rectangle(1, 2, 3, 4), TextFormatFlags.Default));
2007Assert.Throws<ArgumentNullException>("graphics", () => ControlPaint.DrawVisualStyleBorder(null, new Rectangle(1, 2, 3, 4)));
System\Windows\Forms\CursorTests.cs (6)
94Assert.Throws<ArgumentNullException>("stream", () => new Cursor((Stream)null));
130Assert.Throws<ArgumentNullException>("path", () => new Cursor((string)null));
167Assert.Throws<ArgumentNullException>("type", () => new Cursor((Type)null, "resource"));
176Assert.Throws<ArgumentNullException>("stream", () => new Cursor(type, resource));
400Assert.Throws<ArgumentNullException>("graphics", () => cursor.Draw(null, new Rectangle(Point.Empty, cursor.Size)));
437Assert.Throws<ArgumentNullException>("graphics", () => cursor.DrawStretched(null, new Rectangle(Point.Empty, cursor.Size)));
System\Windows\Forms\DataGridViewCellPaintingEventArgsTests.cs (6)
48Assert.Throws<ArgumentNullException>("dataGridView", () => new DataGridViewCellPaintingEventArgs(null, graphics, Rectangle.Empty, Rectangle.Empty, -2, -2, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All));
55Assert.Throws<ArgumentNullException>("graphics", () => new DataGridViewCellPaintingEventArgs(dataGridView, null, Rectangle.Empty, Rectangle.Empty, -2, -2, DataGridViewElementStates.Displayed, null, null, null, new DataGridViewCellStyle(), null, DataGridViewPaintParts.All));
64Assert.Throws<ArgumentNullException>("cellStyle", () => new DataGridViewCellPaintingEventArgs(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, -2, -2, DataGridViewElementStates.Displayed, null, null, null, null, null, DataGridViewPaintParts.All));
98Assert.Throws<ArgumentNullException>("advancedBorderStyle", () => e.Paint(new Rectangle(1, 2, 3, 4), DataGridViewPaintParts.None));
148Assert.Throws<ArgumentNullException>("advancedBorderStyle", () => e.PaintBackground(new Rectangle(1, 2, 3, 4), true));
198Assert.Throws<ArgumentNullException>("advancedBorderStyle", () => e.PaintContent(new Rectangle(1, 2, 3, 4)));
System\Windows\Forms\DataGridViewCellTests.cs (17)
3111Assert.Throws<ArgumentNullException>("dataGridViewAdvancedBorderStyleInput", () => cell.AdjustCellBorderStyle(null, controlAdvancedBorderStylePlaceholder, true, true, true, true));
3143Assert.Throws<ArgumentNullException>("dataGridViewAdvancedBorderStylePlaceholder", () => cell.AdjustCellBorderStyle(controlAdvancedBorderStyleInput, null, true, true, true, true));
3305Assert.Throws<ArgumentNullException>("advancedBorderStyle", () => cell.BorderWidths(null));
5283Assert.Throws<ArgumentNullException>("graphics", () => DataGridViewCell.MeasureTextHeight(null, "text", SystemFonts.DefaultFont, 10, TextFormatFlags.Default));
5284Assert.Throws<ArgumentNullException>("graphics", () => DataGridViewCell.MeasureTextHeight(null, "text", SystemFonts.DefaultFont, 10, TextFormatFlags.Default, out widthTruncated));
5294Assert.Throws<ArgumentNullException>("font", () => DataGridViewCell.MeasureTextHeight(graphics, "text", null, 10, TextFormatFlags.Default));
5295Assert.Throws<ArgumentNullException>("font", () => DataGridViewCell.MeasureTextHeight(graphics, "text", null, 10, TextFormatFlags.Default, out widthTruncated));
5350Assert.Throws<ArgumentNullException>("graphics", () => DataGridViewCell.MeasureTextPreferredSize(null, "text", SystemFonts.DefaultFont, 0.2f, TextFormatFlags.Default));
5358Assert.Throws<ArgumentNullException>("font", () => DataGridViewCell.MeasureTextPreferredSize(graphics, "text", null, 0.2f, TextFormatFlags.Default));
5406Assert.Throws<ArgumentNullException>("graphics", () => DataGridViewCell.MeasureTextSize(null, "text", SystemFonts.DefaultFont, TextFormatFlags.Default));
5414Assert.Throws<ArgumentNullException>("font", () => DataGridViewCell.MeasureTextSize(graphics, "text", null, TextFormatFlags.Default));
5452Assert.Throws<ArgumentNullException>("graphics", () => DataGridViewCell.MeasureTextWidth(null, "text", SystemFonts.DefaultFont, 10, TextFormatFlags.Default));
5460Assert.Throws<ArgumentNullException>("font", () => DataGridViewCell.MeasureTextWidth(graphics, "text", null, 10, TextFormatFlags.Default));
6038Assert.Throws<ArgumentNullException>("graphics", () => cell.PaintBorder(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), new DataGridViewCellStyle(), new DataGridViewAdvancedBorderStyle()));
6047Assert.Throws<ArgumentNullException>("cellStyle", () => cell.PaintBorder(graphics, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), null, new DataGridViewAdvancedBorderStyle()));
6083Assert.Throws<ArgumentNullException>("graphics", () => cell.PaintErrorIcon(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, cellValueBoundsWidth, cellValueBoundsHeight), errorText));
6164Assert.Throws<ArgumentNullException>("cellStyle", () => cell.ParseFormattedValue(1, null, new Int32Converter(), new Int32Converter()));
System\Windows\Forms\DataGridViewHeaderCellTests.cs (1)
4622Assert.Throws<ArgumentNullException>("cellStyle", () => cell.Paint(graphics, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, null, null, null, null, null, DataGridViewPaintParts.All));
System\Windows\Forms\DataGridViewRowPostPaintEventArgsTests.cs (3)
44Assert.Throws<ArgumentNullException>("dataGridView", () => new DataGridViewRowPostPaintEventArgs(null, graphics, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false));
51Assert.Throws<ArgumentNullException>("graphics", () => new DataGridViewRowPostPaintEventArgs(dataGridView, null, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false));
60Assert.Throws<ArgumentNullException>("inheritedRowStyle", () => new DataGridViewRowPostPaintEventArgs(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, null, false, false));
System\Windows\Forms\DataGridViewRowPrePaintEventArgsTests.cs (3)
45Assert.Throws<ArgumentNullException>("dataGridView", () => new DataGridViewRowPrePaintEventArgs(null, graphics, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false));
52Assert.Throws<ArgumentNullException>("graphics", () => new DataGridViewRowPrePaintEventArgs(dataGridView, null, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, new DataGridViewCellStyle(), false, false));
61Assert.Throws<ArgumentNullException>("inheritedRowStyle", () => new DataGridViewRowPrePaintEventArgs(dataGridView, graphics, Rectangle.Empty, Rectangle.Empty, -2, DataGridViewElementStates.Displayed, null, null, false, false));
System\Windows\Forms\DataGridViewRowTests.cs (24)
4113Assert.Throws<ArgumentNullException>("dataGridView", () => row.CreateCells(null));
4114Assert.Throws<ArgumentNullException>("dataGridView", () => row.CreateCells(null, Array.Empty<object>()));
4147Assert.Throws<ArgumentNullException>("values", () => row.CreateCells(control, null));
4231Assert.Throws<ArgumentNullException>("graphics", () => row.DrawFocus(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), -1, DataGridViewElementStates.None, new DataGridViewCellStyle(), true));
4247Assert.Throws<ArgumentNullException>("cellStyle", () => row.DrawFocus(graphics, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4), -1, DataGridViewElementStates.None, null, true));
4859Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, new Rectangle(1, 2, 3, 4), new Rectangle(2, 3, 4, 5), 1, DataGridViewElementStates.Frozen, true, false));
4863Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, new Rectangle(1, 2, 3, 4), new Rectangle(2, 3, 4, 5), 1, DataGridViewElementStates.Frozen, true, false));
4868Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, new Rectangle(1, 2, 3, 4), new Rectangle(2, 3, 4, 5), 1, DataGridViewElementStates.Frozen, true, false));
4929Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, new Rectangle(1, 2, 3, 4), new Rectangle(2, 3, 4, 5), 1, DataGridViewElementStates.Frozen, true, false));
4933Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, new Rectangle(1, 2, 3, 4), new Rectangle(2, 3, 4, 5), 1, DataGridViewElementStates.Frozen, true, false));
4937Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, Rectangle.Empty, new Rectangle(2, 3, 4, 5), 1, DataGridViewElementStates.Frozen, true, false));
4942Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, Rectangle.Empty, new Rectangle(2, 3, 4, 5), 1, DataGridViewElementStates.Frozen, true, false));
4957Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, Rectangle.Empty, Rectangle.Empty, 1, DataGridViewElementStates.None, true, true));
4971Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, Rectangle.Empty, new Rectangle(1, 2, 100, 100), 1, DataGridViewElementStates.None, true, true));
4985Assert.Throws<ArgumentNullException>("graphics", () => row.Paint(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 100, 100), 1, DataGridViewElementStates.None, true, true));
5252Assert.Throws<ArgumentNullException>("graphics", () => row.PaintCells(null, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All));
5266Assert.Throws<ArgumentNullException>("graphics", () => row.PaintCells(null, Rectangle.Empty, new Rectangle(1, 2, 100, 100), 1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All));
5280Assert.Throws<ArgumentNullException>("graphics", () => row.PaintCells(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 100, 100), -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All));
5294Assert.Throws<ArgumentNullException>("graphics", () => row.PaintCells(null, new Rectangle(1, 2, 1000, 10000), new Rectangle(1, 2, 1000, 1000), 1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All));
5573Assert.Throws<ArgumentNullException>("graphics", () => row.PaintHeader(null, Rectangle.Empty, Rectangle.Empty, -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All));
5588Assert.Throws<ArgumentNullException>("graphics", () => row.PaintHeader(null, Rectangle.Empty, new Rectangle(1, 2, 100, 100), -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All));
5603Assert.Throws<ArgumentNullException>("graphics", () => row.PaintHeader(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 100, 100), 1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All));
5618Assert.Throws<ArgumentNullException>("graphics", () => row.PaintHeader(null, new Rectangle(1, 2, 100, 100), new Rectangle(1, 2, 100, 100), -1, DataGridViewElementStates.None, true, true, DataGridViewPaintParts.All));
5727Assert.Throws<ArgumentNullException>("values", () => row.SetValues(null));
System\Windows\Forms\DrawItemEventArgsTests.cs (2)
67Assert.Throws<ArgumentNullException>("graphics", () => new DrawItemEventArgs(null, SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 0, DrawItemState.None));
68Assert.Throws<ArgumentNullException>("graphics", () => new DrawItemEventArgs(null, SystemFonts.DefaultFont, new Rectangle(1, 2, 3, 4), 0, DrawItemState.None, Color.Red, Color.Blue));
System\Windows\Forms\DrawListViewColumnHeaderEventArgsTests.cs (1)
42Assert.Throws<ArgumentNullException>("graphics", () => new DrawListViewColumnHeaderEventArgs(null, new Rectangle(1, 2, 3, 4), 0, new ColumnHeader(), ListViewItemStates.Default, Color.Red, Color.Blue, SystemFonts.DefaultFont));
System\Windows\Forms\DrawListViewItemEventArgsTests.cs (2)
40Assert.Throws<ArgumentNullException>("graphics", () => new DrawListViewItemEventArgs(null, new ListViewItem(), new Rectangle(1, 2, 3, 4), 0, ListViewItemStates.Default));
48Assert.Throws<ArgumentNullException>("item", () => new DrawListViewItemEventArgs(graphics, null, new Rectangle(1, 2, 3, 4), 0, ListViewItemStates.Default));
System\Windows\Forms\DrawListViewSubItemEventArgsTests.cs (3)
43Assert.Throws<ArgumentNullException>("graphics", () => new DrawListViewSubItemEventArgs(null, new Rectangle(1, 2, 3, 4), new ListViewItem(), new ListViewItem.ListViewSubItem(), -1, 0, new ColumnHeader(), ListViewItemStates.Default));
51Assert.Throws<ArgumentNullException>("item", () => new DrawListViewSubItemEventArgs(graphics, new Rectangle(1, 2, 3, 4), null, new ListViewItem.ListViewSubItem(), -1, 0, new ColumnHeader(), ListViewItemStates.Default));
61Assert.Throws<ArgumentNullException>("subItem", () => new DrawListViewSubItemEventArgs(graphics, new Rectangle(1, 2, 3, 4), new ListViewItem(), null, itemIndex, 0, new ColumnHeader(), ListViewItemStates.Default));
System\Windows\Forms\ErrorProviderTests.cs (9)
61Assert.Throws<ArgumentNullException>("parentControl", () => new ErrorProvider((ContainerControl)null));
88Assert.Throws<ArgumentNullException>("container", () => new ErrorProvider((IContainer)null));
587Assert.Throws<ArgumentNullException>("value", () => provider.Icon = null);
966Assert.Throws<ArgumentNullException>("control", () => provider.GetError(null));
984Assert.Throws<ArgumentNullException>("control", () => provider.GetIconAlignment(null));
1002Assert.Throws<ArgumentNullException>("control", () => provider.GetIconPadding(null));
1066Assert.Throws<ArgumentNullException>("control", () => provider.SetError(null, value));
1090Assert.Throws<ArgumentNullException>("control", () => provider.SetIconAlignment(null, value));
1121Assert.Throws<ArgumentNullException>("control", () => provider.SetIconPadding(null, 0));
System\Windows\Forms\HelpProviderTests.cs (10)
99Assert.Throws<ArgumentNullException>("ctl", () => provider.GetHelpKeyword(null));
113Assert.Throws<ArgumentNullException>("ctl", () => provider.GetHelpNavigator(null));
127Assert.Throws<ArgumentNullException>("ctl", () => provider.GetHelpString(null));
141Assert.Throws<ArgumentNullException>("ctl", () => provider.GetShowHelp(null));
170Assert.Throws<ArgumentNullException>("ctl", () => provider.ResetShowHelp(null));
282Assert.Throws<ArgumentNullException>("ctl", () => provider.SetHelpKeyword(null, "keyword"));
344Assert.Throws<ArgumentNullException>("ctl", () => provider.SetHelpNavigator(null, navigator));
418Assert.Throws<ArgumentNullException>("ctl", () => provider.SetHelpString(null, "keyword"));
485Assert.Throws<ArgumentNullException>("ctl", () => provider.SetShowHelp(null, true));
499Assert.Throws<ArgumentNullException>("ctl", () => provider.ShouldSerializeShowHelp(null));
System\Windows\Forms\Layout\TableLayoutSettingsTests.cs (21)
181Assert.Throws<ArgumentNullException>("control", () => settings.GetCellPosition(null));
189Assert.Throws<ArgumentNullException>("control", () => settings.GetCellPosition(null));
271Assert.Throws<ArgumentNullException>("control", () => settings.GetColumn(null));
279Assert.Throws<ArgumentNullException>("control", () => settings.GetColumn(null));
322Assert.Throws<ArgumentNullException>("control", () => settings.GetColumnSpan(null));
330Assert.Throws<ArgumentNullException>("control", () => settings.GetColumnSpan(null));
372Assert.Throws<ArgumentNullException>("control", () => settings.GetRow(null));
380Assert.Throws<ArgumentNullException>("control", () => settings.GetRow(null));
422Assert.Throws<ArgumentNullException>("control", () => settings.GetRowSpan(null));
430Assert.Throws<ArgumentNullException>("control", () => settings.GetRowSpan(null));
650Assert.Throws<ArgumentNullException>("control", () => settings.SetCellPosition(null, default));
658Assert.Throws<ArgumentNullException>("control", () => settings.SetCellPosition(null, default));
872Assert.Throws<ArgumentNullException>("control", () => settings.SetColumn(null, value));
882Assert.Throws<ArgumentNullException>("control", () => settings.SetColumn(null, value));
1103Assert.Throws<ArgumentNullException>("control", () => settings.SetColumnSpan(null, value));
1113Assert.Throws<ArgumentNullException>("control", () => settings.SetColumnSpan(null, value));
1114Assert.Throws<ArgumentNullException>("control", () => settings.GetColumnSpan(null));
1348Assert.Throws<ArgumentNullException>("control", () => settings.SetRow(null, value));
1358Assert.Throws<ArgumentNullException>("control", () => settings.SetRow(null, value));
1579Assert.Throws<ArgumentNullException>("control", () => settings.SetRowSpan(null, value));
1589Assert.Throws<ArgumentNullException>("control", () => settings.SetRowSpan(null, value));
System\Windows\Forms\ListBox.ObjectCollectionTests.cs (24)
51Assert.Throws<ArgumentNullException>("owner", () => new ListBox.ObjectCollection(null));
52Assert.Throws<ArgumentNullException>("owner", () => new ListBox.ObjectCollection(null, new ListBox.ObjectCollection(owner)));
53Assert.Throws<ArgumentNullException>("owner", () => new ListBox.ObjectCollection(null, Array.Empty<object>()));
80Assert.Throws<ArgumentNullException>("value", () => new ListBox.ObjectCollection(owner, (object[])null));
81Assert.Throws<ArgumentNullException>("value", () => new ListBox.ObjectCollection(owner, (ListBox.ObjectCollection)null));
1255Assert.Throws<ArgumentNullException>("value", () => collection[index] = null);
1270Assert.Throws<ArgumentNullException>("value", () => collection[index] = null);
2186Assert.Throws<ArgumentNullException>("item", () => collection.Add(null));
3650Assert.Throws<ArgumentNullException>("items", () => collection.AddRange((object[])null));
3651Assert.Throws<ArgumentNullException>("value", () => collection.AddRange((ListBox.ObjectCollection)null));
3659Assert.Throws<ArgumentNullException>("item", () => collection.AddRange((object[])[null]));
3980Assert.Throws<ArgumentNullException>("value", () => collection.Contains(null));
4012Assert.Throws<ArgumentNullException>("destination", () => collection.CopyTo(null, 0));
4023Assert.Throws<ArgumentNullException>("destination", () => collection.CopyTo(null, 0));
4118Assert.Throws<ArgumentNullException>("value", () => collection.IndexOf(null));
5024Assert.Throws<ArgumentNullException>("item", () => collection.Insert(0, null));
8060Assert.Throws<ArgumentNullException>("value", () => collection[index] = null);
8075Assert.Throws<ArgumentNullException>("value", () => collection[index] = null);
8991Assert.Throws<ArgumentNullException>("item", () => collection.Add(null));
9302Assert.Throws<ArgumentNullException>("value", () => collection.Contains(null));
9334Assert.Throws<ArgumentNullException>("destination", () => collection.CopyTo(null, 0));
9345Assert.Throws<ArgumentNullException>("destination", () => collection.CopyTo(null, 0));
9440Assert.Throws<ArgumentNullException>("value", () => collection.IndexOf(null));
10346Assert.Throws<ArgumentNullException>("item", () => collection.Insert(0, null));
System\Windows\Forms\ListViewItemTests.cs (8)
833Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem((ListViewItem.ListViewSubItem[])null, "imageKey"));
834Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem((ListViewItem.ListViewSubItem[])null, 1));
835Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem((ListViewItem.ListViewSubItem[])null, "imageKey", new ListViewGroup()));
836Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem((ListViewItem.ListViewSubItem[])null, 0, new ListViewGroup()));
843Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem(subItems, "imageKey"));
844Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem(subItems, 1));
845Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem(subItems, "imageKey", new ListViewGroup()));
846Assert.Throws<ArgumentNullException>("subItems", () => new ListViewItem(subItems, 1, new ListViewGroup()));
System\Windows\Forms\ListViewSubItemCollectionTests.cs (7)
25Assert.Throws<ArgumentNullException>("owner", () => new ListViewItem.ListViewSubItemCollection(null));
99Assert.Throws<ArgumentNullException>("value", () => collection[0] = null);
286Assert.Throws<ArgumentNullException>("item", () => collection.Add((ListViewItem.ListViewSubItem)null));
419Assert.Throws<ArgumentNullException>("items", () => collection.AddRange((ListViewItem.ListViewSubItem[])null));
420Assert.Throws<ArgumentNullException>("items", () => collection.AddRange((string[])null));
421Assert.Throws<ArgumentNullException>("items", () => collection.AddRange((string[])null, Color.Red, Color.Blue, SystemFonts.MenuFont));
654Assert.Throws<ArgumentNullException>("item", () => collection.Insert(1, null));
System\Windows\Forms\RichTextBoxTests.cs (35)
8433Assert.Throws<ArgumentNullException>("str", () => control.Find((string)null));
8434Assert.Throws<ArgumentNullException>("str", () => control.Find(null, RichTextBoxFinds.None));
8435Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, RichTextBoxFinds.None));
8436Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, RichTextBoxFinds.None));
8437Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 1, RichTextBoxFinds.None));
8438Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, 0, RichTextBoxFinds.None));
8439Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, 0, RichTextBoxFinds.None));
8440Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 1, 0, RichTextBoxFinds.None));
8441Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, -2, RichTextBoxFinds.None));
8451Assert.Throws<ArgumentNullException>("str", () => control.Find((string)null));
8452Assert.Throws<ArgumentNullException>("str", () => control.Find(null, RichTextBoxFinds.None));
8453Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, RichTextBoxFinds.None));
8454Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, RichTextBoxFinds.None));
8455Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 2, RichTextBoxFinds.None));
8456Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, 0, RichTextBoxFinds.None));
8457Assert.Throws<ArgumentNullException>("str", () => control.Find(null, -1, 0, RichTextBoxFinds.None));
8458Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 2, 0, RichTextBoxFinds.None));
8459Assert.Throws<ArgumentNullException>("str", () => control.Find(null, 0, -2, RichTextBoxFinds.None));
8466Assert.Throws<ArgumentNullException>("characterSet", () => control.Find((char[])null));
8467Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0));
8468Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, -1));
8469Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 1));
8470Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0, 0));
8471Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, -1, 0));
8472Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 1, 0));
8473Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0, -2));
8483Assert.Throws<ArgumentNullException>("characterSet", () => control.Find((char[])null));
8484Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0));
8485Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, -1));
8486Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 2));
8487Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0, 0));
8488Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, -1, 0));
8489Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 2, 0));
8490Assert.Throws<ArgumentNullException>("characterSet", () => control.Find(null, 0, -2));
8762Assert.Throws<ArgumentNullException>("data", () => control.LoadFile((Stream)null, RichTextBoxStreamType.RichText));
System\Windows\Forms\TabControl.TabPageCollectionTests.cs (11)
885Assert.Throws<ArgumentNullException>("value", () => collection.Add((TabPage)null));
1163Assert.Throws<ArgumentNullException>("pages", () => collection.AddRange(null));
1183Assert.Throws<ArgumentNullException>("owner", () => new TabControl.TabPageCollection(null));
1224Assert.Throws<ArgumentNullException>("destinationArray", () => iList.CopyTo(null, 0));
1278Assert.Throws<ArgumentNullException>("sourceArray", () => iList.CopyTo(array, 1));
1573Assert.Throws<ArgumentNullException>("page", () => collection.Contains(null));
1878Assert.Throws<ArgumentNullException>("page", () => collection.IndexOf(null));
2909Assert.Throws<ArgumentNullException>("tabPage", () => collection.Insert(0, (TabPage)null));
3673Assert.Throws<ArgumentNullException>("value", () => collection[0] = null);
3685Assert.Throws<ArgumentNullException>("value", () => collection[0] = null);
4693Assert.Throws<ArgumentNullException>("value", () => collection.Remove(null));
System\Windows\Forms\TableLayoutPanelTests.cs (11)
657Assert.Throws<ArgumentNullException>("control", () => control.GetCellPosition(null));
690Assert.Throws<ArgumentNullException>("control", () => control.GetColumn(null));
705Assert.Throws<ArgumentNullException>("control", () => control.GetColumnSpan(null));
943Assert.Throws<ArgumentNullException>("control", () => control.GetRow(null));
1151Assert.Throws<ArgumentNullException>("control", () => control.GetRowSpan(null));
1541Assert.Throws<ArgumentNullException>(() => control.OnPaintBackground(null));
1657Assert.Throws<ArgumentNullException>("control", () => control.SetCellPosition(null, default));
1763Assert.Throws<ArgumentNullException>("control", () => control.SetColumn(null, 1));
1875Assert.Throws<ArgumentNullException>("control", () => control.SetColumnSpan(null, value));
1990Assert.Throws<ArgumentNullException>("control", () => control.SetRow(null, 1));
2101Assert.Throws<ArgumentNullException>("control", () => control.SetRowSpan(null, value));
System\Windows\Forms\TextRendererTests.cs (4)
393Assert.Throws<ArgumentNullException>("dc", () => TextRenderer.DrawText(null, "text", SystemFonts.MenuFont, Point.Empty, Color.Red));
566Assert.Throws<ArgumentNullException>("dc", () => TextRenderer.MeasureText(null, string.Empty, SystemFonts.MenuFont));
567Assert.Throws<ArgumentNullException>("dc", () => TextRenderer.MeasureText(null, string.Empty, SystemFonts.MenuFont, new Size(300, 400)));
568Assert.Throws<ArgumentNullException>("dc", () => TextRenderer.MeasureText(null, string.Empty, SystemFonts.MenuFont, new Size(300, 400), TextFormatFlags.Default));
System\Windows\Forms\ToolStripItemTextRenderEventArgsTests.cs (2)
68Assert.Throws<ArgumentNullException>("item", () => new ToolStripItemTextRenderEventArgs(graphics, null, "", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, TextFormatFlags.Top));
69Assert.Throws<ArgumentNullException>("item", () => new ToolStripItemTextRenderEventArgs(graphics, null, "", new Rectangle(1, 2, 3, 4), Color.Red, SystemFonts.DefaultFont, ContentAlignment.TopLeft));
System\Windows\Forms\ToolStripRendererTests.cs (11)
25Assert.Throws<ArgumentNullException>("normalImage", () => ToolStripRenderer.CreateDisabledImage(null));
74Assert.Throws<ArgumentNullException>("e", () => renderer.DrawArrow(null));
234Assert.Throws<ArgumentNullException>("e", () => renderer.DrawItemCheck(null));
267Assert.Throws<ArgumentNullException>("e", () => renderer.DrawItemImage(null));
342Assert.Throws<ArgumentNullException>("e", () => renderer.DrawItemText(null));
515Assert.Throws<ArgumentNullException>("e", () => renderer.DrawStatusStripSizingGrip(null));
741Assert.Throws<ArgumentNullException>("e", () => renderer.OnRenderArrow(null));
816Assert.Throws<ArgumentNullException>("e", () => renderer.OnRenderItemCheck(null));
836Assert.Throws<ArgumentNullException>("e", () => renderer.OnRenderItemImage(null));
858Assert.Throws<ArgumentNullException>("e", () => renderer.OnRenderItemText(null));
935Assert.Throws<ArgumentNullException>("e", () => renderer.OnRenderStatusStripSizingGrip(null));
System\Windows\Forms\TreeNodeTests.cs (4)
236Assert.Throws<ArgumentNullException>("nodes", () => new TreeNode("text", null));
237Assert.Throws<ArgumentNullException>("nodes", () => new TreeNode("text", 0, 0, null));
243Assert.Throws<ArgumentNullException>("node", () => new TreeNode("text", [null]));
244Assert.Throws<ArgumentNullException>("node", () => new TreeNode("text", 0, 0, [null]));
System\Windows\Forms\VisualStyles\VisualStyleRendererTests.cs (16)
41Assert.Throws<ArgumentNullException>("className", () => new VisualStyleRenderer(null, 0, 0));
116Assert.Throws<ArgumentNullException>("element", () => VisualStyleRenderer.IsElementDefined(null));
182Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawBackground(null, new Rectangle(1, 2, 3, 4)));
183Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawBackground(null, new Rectangle(1, 2, 3, 4), new Rectangle(1, 2, 3, 4)));
217Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawEdge(null, new Rectangle(1, 2, 3, 4), Edges.Top, EdgeStyle.Bump, EdgeEffects.FillInterior));
297Assert.Throws<ArgumentNullException>("g", () => renderer.DrawImage(null, new Rectangle(1, 2, 3, 4), image));
298Assert.Throws<ArgumentNullException>("g", () => renderer.DrawImage(null, new Rectangle(1, 2, 3, 4), imageList, 0));
308Assert.Throws<ArgumentNullException>("image", () => renderer.DrawImage(graphics, new Rectangle(1, 2, 3, 4), null));
318Assert.Throws<ArgumentNullException>("imageList", () => renderer.DrawImage(graphics, new Rectangle(1, 2, 3, 4), null, 0));
395Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawParentBackground(null, new Rectangle(1, 2, 3, 4), childControl));
493Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawText(null, new Rectangle(1, 2, 3, 4), "text"));
494Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawText(null, new Rectangle(1, 2, 3, 4), "text", true));
495Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawText(null, new Rectangle(1, 2, 3, 4), "text", false));
496Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawText(null, new Rectangle(1, 2, 3, 4), "text", true, TextFormatFlags.Default));
497Assert.Throws<ArgumentNullException>("dc", () => renderer.DrawText(null, new Rectangle(1, 2, 3, 4), "text", false, TextFormatFlags.Default));
551Assert.Throws<ArgumentNullException>("element", () => renderer.SetParameters(null));
System.Windows.Forms.UI.IntegrationTests (2)
System.Windows.Input.Manipulations (2)
System.Xaml (135)
System.Xaml.Tests (162)
System\Xaml\Schema\XamlTypeNameTests.cs (11)
78Assert.Throws<ArgumentNullException>("xamlType", () => new XamlTypeName(null));
225Assert.Throws<ArgumentNullException>("typeNameList", () => XamlTypeName.ToString(null, new CustomNamespacePrefixLookup()));
231Assert.Throws<ArgumentNullException>("prefixLookup", () => XamlTypeName.ToString(Array.Empty<XamlTypeName>(), null));
317Assert.Throws<ArgumentNullException>("typeName", () => XamlTypeName.Parse(null, new CustomXamlNamespaceResolver()));
320Assert.Throws<ArgumentNullException>("typeName", () => XamlTypeName.TryParse(null, new CustomXamlNamespaceResolver(), out result));
327Assert.Throws<ArgumentNullException>("namespaceResolver", () => XamlTypeName.Parse("typeName", null));
330Assert.Throws<ArgumentNullException>("namespaceResolver", () => XamlTypeName.TryParse("typeName", null, out result));
440Assert.Throws<ArgumentNullException>("typeNameList", () => XamlTypeName.ParseList(null, new CustomXamlNamespaceResolver()));
443Assert.Throws<ArgumentNullException>("typeNameList", () => XamlTypeName.TryParseList(null, new CustomXamlNamespaceResolver(), out result));
450Assert.Throws<ArgumentNullException>("namespaceResolver", () => XamlTypeName.ParseList("typeNameList", null));
453Assert.Throws<ArgumentNullException>("namespaceResolver", () => XamlTypeName.TryParseList("typeNameList", null, out result));
System\Xaml\XamlDirectiveTests.cs (3)
42Assert.Throws<ArgumentNullException>("xamlType", () => new XamlDirective(new string[] { "namespace"}, "name", null, null, AllowedMemberLocations.Any));
49Assert.Throws<ArgumentNullException>("xamlNamespaces", () => new XamlDirective(null, "name", type, null, AllowedMemberLocations.Any));
76Assert.Throws<ArgumentNullException>("xamlNamespace", () => new XamlDirective(null, "name"));
System\Xaml\XamlMemberTests.cs (30)
37Assert.Throws<ArgumentNullException>("name", () => new XamlMember(null, type, false));
43Assert.Throws<ArgumentNullException>("declaringType", () => new XamlMember("name", null, false));
98Assert.Throws<ArgumentNullException>("propertyInfo", () => new XamlMember((PropertyInfo)null!, new XamlSchemaContext()));
99Assert.Throws<ArgumentNullException>("propertyInfo", () => new XamlMember((PropertyInfo)null!, new XamlSchemaContext(), XamlMemberInvoker.UnknownInvoker));
154Assert.Throws<ArgumentNullException>("eventInfo", () => new XamlMember((EventInfo)null!, new XamlSchemaContext()));
155Assert.Throws<ArgumentNullException>("eventInfo", () => new XamlMember((EventInfo)null!, new XamlSchemaContext(), XamlMemberInvoker.UnknownInvoker));
215Assert.Throws<ArgumentNullException>("attachablePropertyName", () => new XamlMember(null, getter, null, new XamlSchemaContext()));
216Assert.Throws<ArgumentNullException>("attachablePropertyName", () => new XamlMember(null, getter, null, new XamlSchemaContext(), XamlMemberInvoker.UnknownInvoker));
222Assert.Throws<ArgumentNullException>(() => new XamlMember("name", null, null, new XamlSchemaContext()));
223Assert.Throws<ArgumentNullException>(() => new XamlMember("name", null, null, new XamlSchemaContext(), XamlMemberInvoker.UnknownInvoker));
300Assert.Throws<ArgumentNullException>("attachableEventName", () => new XamlMember(null, adder, new XamlSchemaContext()));
301Assert.Throws<ArgumentNullException>("attachableEventName", () => new XamlMember(null, adder, new XamlSchemaContext(), XamlMemberInvoker.UnknownInvoker));
307Assert.Throws<ArgumentNullException>("adder", () => new XamlMember("name", null, new XamlSchemaContext()));
308Assert.Throws<ArgumentNullException>("adder", () => new XamlMember("name", null, new XamlSchemaContext(), XamlMemberInvoker.UnknownInvoker));
326Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(propertyInfo, null));
327Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(eventInfo, null));
328Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(propertyInfo, null, XamlMemberInvoker.UnknownInvoker));
329Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(eventInfo, null, XamlMemberInvoker.UnknownInvoker));
330Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(propertyInfo.Name, propertyInfo.GetGetMethod(), propertyInfo.GetSetMethod(), null));
331Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(propertyInfo.Name, propertyInfo.GetGetMethod(), propertyInfo.GetSetMethod(), null, XamlMemberInvoker.UnknownInvoker));
332Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(eventInfo.Name, eventInfo.GetAddMethod(), null));
333Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlMember(eventInfo.Name, eventInfo.GetAddMethod(), null, XamlMemberInvoker.UnknownInvoker));
535Assert.Throws<ArgumentNullException>("typeName", () => member.LookupDeferringLoaderEntry());
536Assert.Throws<ArgumentNullException>("typeName", () => member.DeferringLoader);
687Assert.Throws<ArgumentNullException>("key", () => member.LookupDependsOnEntry());
688Assert.Throws<ArgumentNullException>("key", () => member.DependsOn);
1823Assert.Throws<ArgumentNullException>("typeName", () => member.LookupTypeConverterEntry());
1824Assert.Throws<ArgumentNullException>("typeName", () => member.TypeConverter);
2172Assert.Throws<ArgumentNullException>("typeName", () => member.LookupValueSerializerEntry());
2173Assert.Throws<ArgumentNullException>("typeName", () => member.ValueSerializer);
System\Xaml\XamlServicesTests.cs (15)
16Assert.Throws<ArgumentNullException>("xaml", () => XamlServices.Parse(null));
22Assert.Throws<ArgumentNullException>("fileName", () => XamlServices.Load((string)null!));
28Assert.Throws<ArgumentNullException>("stream", () => XamlServices.Load((Stream)null!));
34Assert.Throws<ArgumentNullException>("textReader", () => XamlServices.Load((TextReader)null!));
40Assert.Throws<ArgumentNullException>("xmlReader", () => XamlServices.Load((XmlReader)null!));
46Assert.Throws<ArgumentNullException>("xamlReader", () => XamlServices.Load((XamlReader)null!));
52Assert.Throws<ArgumentNullException>("xamlReader", () => XamlServices.Transform((XamlReader)null!, new XamlObjectWriter(new XamlSchemaContext())));
53Assert.Throws<ArgumentNullException>("xamlReader", () => XamlServices.Transform((XamlReader)null!, new XamlObjectWriter(new XamlSchemaContext()), false));
59Assert.Throws<ArgumentNullException>("xamlWriter", () => XamlServices.Transform(new XamlObjectReader(1), null));
60Assert.Throws<ArgumentNullException>("xamlWriter", () => XamlServices.Transform(new XamlObjectReader(1), null, false));
66Assert.Throws<ArgumentNullException>("fileName", () => XamlServices.Save((string)null!, 1));
78Assert.Throws<ArgumentNullException>("stream", () => XamlServices.Save((Stream)null!, 1));
84Assert.Throws<ArgumentNullException>("writer", () => XamlServices.Save((TextWriter)null!, 1));
90Assert.Throws<ArgumentNullException>("writer", () => XamlServices.Save((XmlWriter)null!, 1));
96Assert.Throws<ArgumentNullException>("writer", () => XamlServices.Save((XamlWriter)null!, 1));
System\Xaml\XamlTypeTests.cs (26)
46Assert.Throws<ArgumentNullException>("unknownTypeNamespace", () => new XamlType(null, "unknownTypeName", Array.Empty<XamlType>(), new XamlSchemaContext()));
52Assert.Throws<ArgumentNullException>("unknownTypeName", () => new XamlType("unknownTypeNamespace", null, Array.Empty<XamlType>(), new XamlSchemaContext()));
76Assert.Throws<ArgumentNullException>("typeName", () => new SubXamlType(null!, Array.Empty<XamlType>(), new XamlSchemaContext()));
130Assert.Throws<ArgumentNullException>("underlyingType", () => new XamlType(null, new XamlSchemaContext()));
131Assert.Throws<ArgumentNullException>("underlyingType", () => new XamlType(null, new XamlSchemaContext(), XamlTypeInvoker.UnknownInvoker));
145Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlType("unknownTypeNamespace", "unknownTypeName", Array.Empty<XamlType>(), null));
146Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlType(typeof(int), null));
147Assert.Throws<ArgumentNullException>("schemaContext", () => new XamlType(typeof(int), null, XamlTypeInvoker.UnknownInvoker));
148Assert.Throws<ArgumentNullException>("schemaContext", () => new SubXamlType("typeName", Array.Empty<XamlType>(), null));
622Assert.Throws<ArgumentNullException>("key", () => type.LookupAliasedPropertyEntry(null!));
623Assert.Throws<ArgumentNullException>("key", () => type.GetAliasedProperty(null));
1437Assert.Throws<ArgumentNullException>("type", () => type.LookupAllowedContentTypesEntry());
1438Assert.Throws<ArgumentNullException>("type", () => type.AllowedContentTypes);
1688Assert.Throws<ArgumentNullException>("key", () => type.GetAttachableMember(null));
1696Assert.Throws<ArgumentNullException>("key", () => type.GetAttachableMember(null));
2225Assert.Throws<ArgumentNullException>("type", () => type.LookupContentWrappersEntry());
2226Assert.Throws<ArgumentNullException>("type", () => type.ContentWrappers);
2494Assert.Throws<ArgumentNullException>("typeName", () => type.LookupDeferringLoaderEntry());
2495Assert.Throws<ArgumentNullException>("typeName", () => type.DeferringLoader);
3659Assert.Throws<ArgumentNullException>("name", () => type.LookupMemberEntry(null!, false));
3660Assert.Throws<ArgumentNullException>("key", () => type.GetMember(null));
3668Assert.Throws<ArgumentNullException>("key", () => type.GetMember(null));
4388Assert.Throws<ArgumentNullException>("typeName", () => type.LookupTypeConverterEntry());
4389Assert.Throws<ArgumentNullException>("typeName", () => type.TypeConverter);
4794Assert.Throws<ArgumentNullException>("typeName", () => type.LookupValueSerializerEntry());
4795Assert.Throws<ArgumentNullException>("typeName", () => type.ValueSerializer);
Templates.Blazor.WebAssembly.Auth.Tests (2)
Templates.Blazor.WebAssembly.Tests (2)
Templates.Mvc.Tests (2)
Templates.Tests (2)
Test.Utilities (31)
Text.Analyzers (46)
UIAutomationClient (67)
UIAutomationClientSideProviders (1)
UIAutomationProvider (8)
UIAutomationTypes (4)
WindowsBase.Tests (174)
System\Collections\Specialized\CollectionChangedEventManagerTests.cs (7)
177Assert.Throws<ArgumentNullException>("handler", () => CollectionChangedEventManager.AddHandler(null, null));
178Assert.Throws<ArgumentNullException>("handler", () => CollectionChangedEventManager.AddHandler(source, null));
341Assert.Throws<ArgumentNullException>("source", () => CollectionChangedEventManager.AddListener(null, listener));
348Assert.Throws<ArgumentNullException>("listener", () => CollectionChangedEventManager.AddListener(source, null));
443Assert.Throws<ArgumentNullException>("handler", () => CollectionChangedEventManager.RemoveHandler(null, null));
444Assert.Throws<ArgumentNullException>("handler", () => CollectionChangedEventManager.RemoveHandler(source, null));
537Assert.Throws<ArgumentNullException>("listener", () => CollectionChangedEventManager.RemoveListener(source, null));
System\ComponentModel\CurrentChangedEventManagerTests.cs (7)
190Assert.Throws<ArgumentNullException>("handler", () => CurrentChangedEventManager.AddHandler(null, null));
191Assert.Throws<ArgumentNullException>("handler", () => CurrentChangedEventManager.AddHandler(source, null));
354Assert.Throws<ArgumentNullException>("source", () => CurrentChangedEventManager.AddListener(null, listener));
361Assert.Throws<ArgumentNullException>("listener", () => CurrentChangedEventManager.AddListener(source, null));
464Assert.Throws<ArgumentNullException>("handler", () => CurrentChangedEventManager.RemoveHandler(null, null));
465Assert.Throws<ArgumentNullException>("handler", () => CurrentChangedEventManager.RemoveHandler(source, null));
557Assert.Throws<ArgumentNullException>("listener", () => CurrentChangedEventManager.RemoveListener(source, null));
System\ComponentModel\CurrentChangingEventManagerTests.cs (7)
181Assert.Throws<ArgumentNullException>("handler", () => CurrentChangingEventManager.AddHandler(null, null));
182Assert.Throws<ArgumentNullException>("handler", () => CurrentChangingEventManager.AddHandler(source, null));
345Assert.Throws<ArgumentNullException>("source", () => CurrentChangingEventManager.AddListener(null, listener));
352Assert.Throws<ArgumentNullException>("listener", () => CurrentChangingEventManager.AddListener(source, null));
447Assert.Throws<ArgumentNullException>("handler", () => CurrentChangingEventManager.RemoveHandler(null, null));
448Assert.Throws<ArgumentNullException>("handler", () => CurrentChangingEventManager.RemoveHandler(source, null));
539Assert.Throws<ArgumentNullException>("listener", () => CurrentChangingEventManager.RemoveListener(source, null));
System\ComponentModel\PropertyChangedEventManagerTests.cs (9)
408Assert.Throws<ArgumentNullException>("handler", () => PropertyChangedEventManager.AddHandler(source, null, "propertyName"));
418Assert.Throws<ArgumentNullException>("key", () => PropertyChangedEventManager.AddHandler(source, handler, null));
823Assert.Throws<ArgumentNullException>("source", () => PropertyChangedEventManager.AddListener(null, listener, "propertyName"));
826Assert.Throws<ArgumentNullException>("source", () => PropertyChangedEventManager.AddListener(null, listener, "propertyName"));
833Assert.Throws<ArgumentNullException>("listener", () => PropertyChangedEventManager.AddListener(source, null, "propertyName"));
1016Assert.Throws<ArgumentNullException>("key", () => PropertyChangedEventManager.RemoveHandler(source, handler, null));
1022Assert.Throws<ArgumentNullException>("key", () => PropertyChangedEventManager.RemoveHandler(source, handler, null));
1031Assert.Throws<ArgumentNullException>("handler", () => PropertyChangedEventManager.RemoveHandler(source, null, "propertyName"));
1248Assert.Throws<ArgumentNullException>("listener", () => PropertyChangedEventManager.RemoveListener(source, null, "propertyName"));
System\IO\Packaging\PackageDigitalSignatureManagerTests.cs (9)
43Assert.Throws<ArgumentNullException>("package", () => new PackageDigitalSignatureManager(null));
63Assert.Throws<ArgumentNullException>("certificate", () => PackageDigitalSignatureManager.VerifyCertificate(null));
128Assert.Throws<ArgumentNullException>("value", () => manager.HashAlgorithm = null);
190Assert.Throws<ArgumentNullException>("value", () => manager.TimeFormat = null);
233Assert.Throws<ArgumentNullException>("certificate", () => manager.Countersign(null));
234Assert.Throws<ArgumentNullException>("certificate", () => manager.Countersign(null, Array.Empty<Uri>()));
246Assert.Throws<ArgumentNullException>("signatures", () => manager.Countersign(c, null));
262Assert.Throws<ArgumentNullException>("signatureUri", () => manager.GetSignature(null));
319Assert.Throws<ArgumentNullException>("signatureUri", () => manager.RemoveSignature(null));
System\Security\RightsManagement\SecureEnvironmentTests.cs (5)
32Assert.Throws<ArgumentNullException>("applicationManifest", () => SecureEnvironment.Create(null!, AuthenticationType.Windows, UserActivationMode.Permanent));
33Assert.Throws<ArgumentNullException>("applicationManifest", () => SecureEnvironment.Create(null!, new ContentUser("name", AuthenticationType.Windows)));
74Assert.Throws<ArgumentNullException>("user", () => SecureEnvironment.Create("manifest", null!));
145Assert.Throws<ArgumentNullException>("user", () => SecureEnvironment.IsUserActivated(null!));
183Assert.Throws<ArgumentNullException>("user", () => SecureEnvironment.RemoveActivatedUser(null!));
System\Windows\DependencyPropertyTests.cs (28)
216Assert.Throws<ArgumentNullException>("name", () => DependencyProperty.Register(null, typeof(int), typeof(DependencyPropertyTests)));
228Assert.Throws<ArgumentNullException>("propertyType", () => DependencyProperty.Register(MethodBase.GetCurrentMethod()!.Name, null!, typeof(DependencyPropertyTests)));
229Assert.Throws<ArgumentNullException>("propertyType", () => DependencyProperty.Register(MethodBase.GetCurrentMethod()!.Name, null!, typeof(DependencyPropertyTests), new PropertyMetadata()));
230Assert.Throws<ArgumentNullException>("propertyType", () => DependencyProperty.Register(MethodBase.GetCurrentMethod()!.Name, null!, typeof(DependencyPropertyTests), new PropertyMetadata(), value => true));
256Assert.Throws<ArgumentNullException>("ownerType", () => DependencyProperty.Register(MethodBase.GetCurrentMethod()!.Name, typeof(int), null!));
257Assert.Throws<ArgumentNullException>("ownerType", () => DependencyProperty.Register(MethodBase.GetCurrentMethod()!.Name, typeof(int), null!, new PropertyMetadata()));
258Assert.Throws<ArgumentNullException>("ownerType", () => DependencyProperty.Register(MethodBase.GetCurrentMethod()!.Name, typeof(int), null!, new PropertyMetadata(), value => true));
529Assert.Throws<ArgumentNullException>("name", () => DependencyProperty.RegisterAttached(null, typeof(int), typeof(DependencyPropertyTests)));
530Assert.Throws<ArgumentNullException>("name", () => DependencyProperty.RegisterAttached(null, typeof(int), typeof(DependencyPropertyTests), new PropertyMetadata()));
531Assert.Throws<ArgumentNullException>("name", () => DependencyProperty.RegisterAttached(null, typeof(int), typeof(DependencyPropertyTests), new PropertyMetadata(), value => true));
545Assert.Throws<ArgumentNullException>("propertyType", () => DependencyProperty.RegisterAttached(MethodBase.GetCurrentMethod()!.Name, null!, typeof(DependencyPropertyTests)));
546Assert.Throws<ArgumentNullException>("propertyType", () => DependencyProperty.RegisterAttached(MethodBase.GetCurrentMethod()!.Name, null!, typeof(DependencyPropertyTests), new PropertyMetadata()));
547Assert.Throws<ArgumentNullException>("propertyType", () => DependencyProperty.RegisterAttached(MethodBase.GetCurrentMethod()!.Name, null!, typeof(DependencyPropertyTests), new PropertyMetadata(), value => true));
573Assert.Throws<ArgumentNullException>("ownerType", () => DependencyProperty.RegisterAttached(MethodBase.GetCurrentMethod()!.Name, typeof(int), null!));
574Assert.Throws<ArgumentNullException>("ownerType", () => DependencyProperty.RegisterAttached(MethodBase.GetCurrentMethod()!.Name, typeof(int), null!, new PropertyMetadata()));
575Assert.Throws<ArgumentNullException>("ownerType", () => DependencyProperty.RegisterAttached(MethodBase.GetCurrentMethod()!.Name, typeof(int), null!, new PropertyMetadata(), value => true));
815Assert.Throws<ArgumentNullException>("name", () => DependencyProperty.RegisterReadOnly(null, typeof(int), typeof(DependencyObject), new PropertyMetadata()));
816Assert.Throws<ArgumentNullException>("name", () => DependencyProperty.RegisterReadOnly(null, typeof(int), typeof(DependencyObject), new PropertyMetadata(), value => true));
829Assert.Throws<ArgumentNullException>("propertyType", () => DependencyProperty.RegisterReadOnly(MethodBase.GetCurrentMethod()!.Name, null!, typeof(DependencyProperty), new PropertyMetadata()));
830Assert.Throws<ArgumentNullException>("propertyType", () => DependencyProperty.RegisterReadOnly(MethodBase.GetCurrentMethod()!.Name, null!, typeof(DependencyProperty), new PropertyMetadata(), value => true));
855Assert.Throws<ArgumentNullException>("ownerType", () => DependencyProperty.RegisterReadOnly(MethodBase.GetCurrentMethod()!.Name, typeof(int), null!, new PropertyMetadata()));
856Assert.Throws<ArgumentNullException>("ownerType", () => DependencyProperty.RegisterReadOnly(MethodBase.GetCurrentMethod()!.Name, typeof(int), null!, new PropertyMetadata(), value => true));
1110Assert.Throws<ArgumentNullException>("name", () => DependencyProperty.RegisterAttachedReadOnly(null, typeof(int), typeof(DependencyPropertyTests), new PropertyMetadata()));
1111Assert.Throws<ArgumentNullException>("name", () => DependencyProperty.RegisterAttachedReadOnly(null, typeof(int), typeof(DependencyPropertyTests), new PropertyMetadata(), value => true));
1124Assert.Throws<ArgumentNullException>("propertyType", () => DependencyProperty.RegisterAttachedReadOnly(MethodBase.GetCurrentMethod()!.Name, null!, typeof(DependencyPropertyTests), new PropertyMetadata()));
1125Assert.Throws<ArgumentNullException>("propertyType", () => DependencyProperty.RegisterAttachedReadOnly(MethodBase.GetCurrentMethod()!.Name, null!, typeof(DependencyPropertyTests), new PropertyMetadata(), value => true));
1150Assert.Throws<ArgumentNullException>("ownerType", () => DependencyProperty.RegisterAttachedReadOnly(MethodBase.GetCurrentMethod()!.Name, typeof(int), null!, new PropertyMetadata()));
1151Assert.Throws<ArgumentNullException>("ownerType", () => DependencyProperty.RegisterAttachedReadOnly(MethodBase.GetCurrentMethod()!.Name, typeof(int), null!, new PropertyMetadata(), value => true));
System\Windows\Input\KeyConverterTests.cs (3)
223Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(value, null!));
224Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(null, null, Key.None, null!));
225Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, Key.None, null!));
System\Windows\Input\ModifierKeysConverterTests.cs (3)
189Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(value, null!));
190Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(null, null, Key.None, null!));
191Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, Key.None, null!));
System\Windows\Int32RectConverterTests.cs (3)
99Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(value, null!));
100Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(null, null, new Int32Rect(), null!));
101Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, new Int32Rect(), null!));
System\Windows\Media\MatrixConverterTests.cs (3)
99Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(value, null!));
100Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(null, null, new Matrix(), null!));
101Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, new Matrix(), null!));
System\Windows\NameScopeTests.cs (13)
35Assert.Throws<ArgumentNullException>("dependencyObject", () => NameScope.GetNameScope(null));
62Assert.Throws<ArgumentNullException>("dependencyObject", () => NameScope.SetNameScope(null, nameScope));
114Assert.Throws<ArgumentNullException>("key", () => nameScope[null]);
182Assert.Throws<ArgumentNullException>("key", () => nameScope.Add(null, scopedElement));
208Assert.Throws<ArgumentNullException>("value", () => nameScope["name"] = null);
303Assert.Throws<ArgumentNullException>(() => nameScope.Add(null, scopedElement));
329Assert.Throws<ArgumentNullException>("scopedElement", () => nameScope.Add("name", null!));
673Assert.Throws<ArgumentNullException>("key", () => nameScope.ContainsKey(null!));
900Assert.Throws<ArgumentNullException>("name", () => nameScope.RegisterName(null, scopedElement));
926Assert.Throws<ArgumentNullException>("scopedElement", () => nameScope.RegisterName("name", null!));
958Assert.Throws<ArgumentNullException>("key", () => nameScope.Remove(null));
1122Assert.Throws<ArgumentNullException>("key", () => nameScope.TryGetValue(null, out object value));
1145Assert.Throws<ArgumentNullException>("name", () => nameScope.UnregisterName(null));
System\Windows\PointConverterTests.cs (3)
99Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(value, null!));
100Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(null, null, new Point(), null!));
101Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, new Point(), null!));
System\Windows\RectConverterTests.cs (3)
99Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(value, null!));
100Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(null, null, new Rect(), null!));
101Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, new Rect(), null!));
System\Windows\SizeConverterTests.cs (3)
99Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(value, null!));
100Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(null, null, new Size(), null!));
101Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, new Size(), null!));
System\Windows\Threading\DispatcherTimerTests.cs (3)
108Assert.Throws<ArgumentNullException>("dispatcher", () => new DispatcherTimer(DispatcherPriority.Normal, null));
109Assert.Throws<ArgumentNullException>("dispatcher", () => new DispatcherTimer(TimeSpan.Zero, DispatcherPriority.Normal, (s, e) => {}, null));
130Assert.Throws<ArgumentNullException>("callback", () => new DispatcherTimer(TimeSpan.Zero, DispatcherPriority.Normal, null, Dispatcher.CurrentDispatcher));
System\Windows\VectorConverterTests.cs (3)
99Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(value, null!));
100Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(null, null, new Vector(), null!));
101Assert.Throws<ArgumentNullException>("destinationType", () => converter.ConvertTo(new CustomTypeDescriptorContext(), CultureInfo.InvariantCulture, new Vector(), null!));
System\Windows\WeakEventManagerTests.cs (6)
750Assert.Throws<ArgumentNullException>("key", () => SubWeakEventManager.GetCurrentManager(null!));
1225Assert.Throws<ArgumentNullException>("handler", () => manager.ProtectedAddHandler(source, null!));
1591Assert.Throws<ArgumentNullException>("listener", () => manager.ProtectedAddListener(source, null!));
2129Assert.Throws<ArgumentNullException>("handler", () => manager.ProtectedRemoveHandler(source, null!));
2554Assert.Throws<ArgumentNullException>("listener", () => manager.ProtectedRemoveListener(source, null!));
2921Assert.Throws<ArgumentNullException>("key", () => SubWeakEventManager.SetCurrentManager(null!, new SubWeakEventManager()));
xunit.assert (11)