195 references to True
InMemory.FunctionalTests (12)
ChunkedRequestTests.cs (8)
25Assert.True(request.CanHaveBody()); 42Assert.True(request.CanHaveBody()); 61Assert.True(request.CanHaveBody()); 178Assert.True(request.CanHaveBody()); 234Assert.True(request.CanHaveBody()); 362Assert.True(request.CanHaveBody()); 665Assert.True(request.CanHaveBody()); 709Assert.True(request.CanHaveBody());
Http2\Http2StreamTests.cs (2)
186Assert.True(context.Request.CanHaveBody()); 237Assert.True(context.Request.CanHaveBody());
MaxRequestBodySizeTests.cs (1)
33Assert.True(context.Request.CanHaveBody());
RequestTests.cs (1)
2044Assert.True(request.CanHaveBody());
Microsoft.Analyzers.Local.Tests (1)
Json\JsonValueTest.cs (1)
247Assert.True((bool?)new JsonValue(true));
Microsoft.AspNetCore.Antiforgery.Test (1)
AntiforgeryMiddlewareTest.cs (1)
27Assert.True(httpContext.Features.Get<IAntiforgeryValidationFeature>()?.IsValid);
Microsoft.AspNetCore.Authentication.Core.Test (2)
AuthenticationPropertiesTests.cs (2)
228Assert.True(props.AllowRefresh); 292Assert.True(props.GetBool("foo"));
Microsoft.AspNetCore.Authentication.Test (1)
OAuthChallengePropertiesTest.cs (1)
139Assert.True(properties.IncludeGrantedScopes);
Microsoft.AspNetCore.Http.Extensions.Tests (7)
RequestDelegateFactoryTests.cs (2)
122Assert.True(httpContext.Items["invoked"] as bool?); 145Assert.True(httpContext.Items["invoked"] as bool?);
RequestDelegateGenerator\RequestDelegateCreationTests.BindAsync.cs (2)
248Assert.True(httpContext.Items["invoked"] as bool?); 304Assert.True(httpContext.Items["invoked"] as bool?);
RequestDelegateGenerator\RequestDelegateCreationTests.Filters.cs (3)
38Assert.True(httpContext.Items["filterInvoked"] as bool?); 71Assert.True(httpContext.Items["invoked"] as bool?); 72Assert.True(httpContext.Items["filterInvoked"] as bool?);
Microsoft.AspNetCore.Mvc.Core.Test (5)
ApplicationModels\ApiBehaviorApplicationModelProviderTest.cs (2)
75Assert.True(actionModel.ApiExplorer.IsVisible); 118Assert.True(actionModel.ApiExplorer.IsVisible);
ApplicationModels\ApiVisibilityConventionTest.cs (1)
21Assert.True(action.ApiExplorer.IsVisible);
ModelBinding\Metadata\HasValidatorsValidationMetadataProviderTest.cs (2)
76Assert.True(context.ValidationMetadata.HasValidators); 126Assert.True(context.ValidationMetadata.HasValidators);
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (10)
DataAnnotationsMetadataProviderTest.cs (10)
163Assert.True(context.BindingMetadata.IsReadOnly); 1119Assert.True(context.ValidationMetadata.IsRequired); 1163Assert.True(context.ValidationMetadata.IsRequired); 1188Assert.True(context.ValidationMetadata.IsRequired); 1239Assert.True(context.ValidationMetadata.IsRequired); 1258Assert.True(context.ValidationMetadata.IsRequired); 1318Assert.True(context.ValidationMetadata.IsRequired); 1337Assert.True(context.ValidationMetadata.IsRequired); 1356Assert.True(context.ValidationMetadata.IsRequired); 1417Assert.True(context.ValidationMetadata.IsRequired);
Microsoft.AspNetCore.Mvc.IntegrationTests (6)
ValidationIntegrationTests.cs (3)
2102Assert.True(modelMetadata.HasValidators); 2173Assert.True(modelMetadata.HasValidators); 2392Assert.True(modelMetadata.HasValidators);
ValidationWithRecordIntegrationTests.cs (3)
1893Assert.True(modelMetadata.HasValidators); 1964Assert.True(modelMetadata.HasValidators); 2180Assert.True(modelMetadata.HasValidators);
Microsoft.AspNetCore.Mvc.Razor.Test (1)
RazorPageTest.cs (1)
558Assert.True(actual);
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (9)
Http2Tests.cs (2)
169Assert.True(httpContext.Request.CanHaveBody()); 233Assert.True(httpContext.Request.CanHaveBody());
RequestBodyLimitTests.cs (2)
51Assert.True(httpContext.Request.CanHaveBody()); 118Assert.True(httpContext.Request.CanHaveBody());
RequestBodyTests.cs (4)
29Assert.True(httpContext.Request.CanHaveBody()); 49Assert.True(httpContext.Request.CanHaveBody()); 71Assert.True(httpContext.Request.CanHaveBody()); 89Assert.True(httpContext.Request.CanHaveBody());
ResponseHeaderTests.cs (1)
154Assert.True(response.Headers.TransferEncodingChunked);
Microsoft.AspNetCore.TestHost.Tests (4)
ClientHandlerTests.cs (4)
132Assert.True(context.Request.CanHaveBody()); 165Assert.True(context.Request.CanHaveBody()); 182Assert.True(context.Request.CanHaveBody()); 331Assert.True(postHasStarted);
Microsoft.Build.Engine.UnitTests (3)
BackEnd\BuildResult_Tests.cs (3)
41Assert.True(result1.ResultsByTarget?.ContainsKey("foo")); // test comparer 46Assert.True(result1.ResultsByTarget?.ContainsKey("foo")); // test comparer 47Assert.True(result1.ResultsByTarget?.ContainsKey("bar"));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
CodeGen\CodeGenLocalFunctionTests.cs (1)
5854Assert.True(importData.ThrowOnUnmappableCharacter);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (45)
Attributes\AttributeTests_WellKnownAttributes.cs (44)
10504Assert.True(comp.HasLocalsInit("C.M_init", realIL: true)); 10506Assert.True(comp.HasLocalsInit("C.M_init", realIL: false)); 10636Assert.True(verifier.HasLocalsInit("C.M2", realIL: true)); 10792Assert.True(comp.HasLocalsInit("C.M")); 10956Assert.True(verifier.HasLocalsInit("C.M")); 10957Assert.True(verifier.HasLocalsInit("C.<M>g__localNoAttribute|0_0")); // localNoAttribute 10958Assert.True(verifier.HasLocalsInit("C.<>c.<M>b__0_1")); // lambda 10998Assert.True(verifier.HasLocalsInit("C.M")); 10999Assert.True(verifier.HasLocalsInit("C.<M>g__localNoAttribute|0_0")); // localNoAttribute 11040Assert.True(verifier.HasLocalsInit("C.M")); 11082Assert.True(verifier.HasLocalsInit("C.M")); 11083Assert.True(verifier.HasLocalsInit("C.<>c.<M>b__0_0")); // lambda 11084Assert.True(verifier.HasLocalsInit("C.<M>g__localNoAttribute|0_1")); // localNoAttribute 11124Assert.True(verifier.HasLocalsInit("C.M")); 11125Assert.True(verifier.HasLocalsInit("C.<>c.<M>b__0_0")); // lambda 11166Assert.True(verifier.HasLocalsInit("C.M")); 11220Assert.True(verifier.HasLocalsInit("C.PropNoAttribute.get")); 11221Assert.True(verifier.HasLocalsInit("C.<get_PropNoAttribute>g__local1|3_0")); 11310Assert.True(verifier.HasLocalsInit("C.EventNoAttribute.add")); 11311Assert.True(verifier.HasLocalsInit("C.<add_EventNoAttribute>g__local1|4_0")); 11499Assert.True(verifier.HasLocalsInit("<top-level-statements-entry-point>")); 11500Assert.True(verifier.HasLocalsInit("Program.<<Main>$>g__local|0_0")); 11617Assert.True(comp.HasLocalsInit("C.<M_init>d__1.System.Collections.IEnumerator.MoveNext")); 11619Assert.True(comp.HasLocalsInit("C.<M_init>d__1.System.Collections.Generic.IEnumerable<object>.GetEnumerator")); 11699Assert.True(comp.HasLocalsInit("C.<M_init>d__1.System.Runtime.CompilerServices.IAsyncStateMachine.MoveNext")); 11814Assert.True(comp_init.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>.Equals")); 11815Assert.True(comp_init.HasLocalsInit("<>f__AnonymousType0<<Value>j__TPar>.ToString")); 11935Assert.True(comp.HasLocalsInit("C_init.M")); 11988Assert.True(comp.HasLocalsInit("C.P_init.get")); 11990Assert.True(comp.HasLocalsInit("C.P_init.set")); 12060Assert.True(comp.HasLocalsInit("C.P1.set")); 12061Assert.True(comp.HasLocalsInit("C.P2.get")); 12228Assert.True(comp.HasLocalsInit("C_init.P.get")); 12230Assert.True(comp.HasLocalsInit("C_init.P.set")); 12421Assert.True(comp.HasLocalsInit("C_init.P.get")); 12423Assert.True(comp.HasLocalsInit("C_init.P.set")); 12425Assert.True(comp.HasLocalsInit("C_init.M")); 12427Assert.True(comp.HasLocalsInit("C_init.C2.M2")); 12429Assert.True(comp.HasLocalsInit("C_init.E.add")); 12430Assert.True(comp.HasLocalsInit("C_init.E.remove")); 12631Assert.True(comp.HasLocalsInit("C_init.C.M")); 12747Assert.True(comp.HasLocalsInit("C.M")); 12923Assert.True(verifier.HasLocalsInit("B.M2")); 12996Assert.True(verifier.HasLocalsInit("ClassNoAttributeWithLocal..ctor"));
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
729Assert.True(comp.Options.DelaySign);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (67)
Semantics\NullableReferenceTypesTests.cs (66)
97662Assert.True(t2.ReferenceTypeConstraintIsNullable); 97716Assert.True(t2.ReferenceTypeConstraintIsNullable); 97769Assert.True(t2.ReferenceTypeConstraintIsNullable); 97810Assert.True(t1.ReferenceTypeConstraintIsNullable); 97823Assert.True(t2.ReferenceTypeConstraintIsNullable); 98444Assert.True(t22.ReferenceTypeConstraintIsNullable); 98496Assert.True(t22.ReferenceTypeConstraintIsNullable); 98502Assert.True(t2.ReferenceTypeConstraintIsNullable); 98635Assert.True(t22.ReferenceTypeConstraintIsNullable); 98742Assert.True(t22.ReferenceTypeConstraintIsNullable); 98811Assert.True(t22.ReferenceTypeConstraintIsNullable); 98883Assert.True(t22.ReferenceTypeConstraintIsNullable); 98949Assert.True(t22.ReferenceTypeConstraintIsNullable); 98990Assert.True(t22.ReferenceTypeConstraintIsNullable); 99024Assert.True(t2.ReferenceTypeConstraintIsNullable); 99049Assert.True(t2.ReferenceTypeConstraintIsNullable); 99092Assert.True(t2.ReferenceTypeConstraintIsNullable); 99323Assert.True(t22.ReferenceTypeConstraintIsNullable); 100095Assert.True(t11.IsNotNullable); 100107Assert.True(t44.IsNotNullable); 100222Assert.True(t222.IsNotNullable); 100226Assert.True(t333.IsNotNullable); 100303Assert.True(t1.IsNotNullable); 100342Assert.True(t1.IsNotNullable); 100424Assert.True(t1.IsNotNullable); 100444Assert.True(t1.IsNotNullable); 100500Assert.True(t1.IsNotNullable); 100508Assert.True(t2.IsNotNullable); 100543Assert.True(t1.IsNotNullable); 100550Assert.True(t2.IsNotNullable); 100588Assert.True(t1.IsNotNullable); 100595Assert.True(t2.IsNotNullable); 100677Assert.True(at1.IsNotNullable); 100772Assert.True(at1.IsNotNullable); 100860Assert.True(at1.IsNotNullable); 100921Assert.True(t1.IsNotNullable); 100946Assert.True(t1.IsNotNullable); 100970Assert.True(t1.IsNotNullable); 100997Assert.True(t1.IsNotNullable); 101046Assert.True(at1.IsNotNullable); 101128Assert.True(at1.IsNotNullable); 102035Assert.True(tf1.IsNotNullable); 102062Assert.True(tf1.IsNotNullable); 102312Assert.True(tf1.IsNotNullable); 102339Assert.True(tf1.IsNotNullable); 102367Assert.True(tf1.IsNotNullable); 102395Assert.True(tf1.IsNotNullable); 102591Assert.True(tf1.IsNotNullable); 102617Assert.True(tf1.IsNotNullable); 102859Assert.True(tf1.IsNotNullable); 102886Assert.True(tf1.IsNotNullable); 102913Assert.True(tf1.IsNotNullable); 102940Assert.True(tf1.IsNotNullable); 103191Assert.True(tf1.IsNotNullable); 103240Assert.True(tf1.IsNotNullable); 103265Assert.True(tf1.IsNotNullable); 103315Assert.True(tf1.IsNotNullable); 103367Assert.True(tf1.IsNotNullable); 103393Assert.True(tf1.IsNotNullable); 104838Assert.True(t22.ReferenceTypeConstraintIsNullable); 104852Assert.True(t2.ReferenceTypeConstraintIsNullable); 104922Assert.True(t22.ReferenceTypeConstraintIsNullable); 104999Assert.True(t22.ReferenceTypeConstraintIsNullable); 137022Assert.True(t.ReferenceTypeConstraintIsNullable); 137163Assert.True(t.ReferenceTypeConstraintIsNullable); 137211Assert.True(t.ReferenceTypeConstraintIsNullable);
Semantics\TopLevelStatementsTests.cs (1)
6208Assert.True(importData.ThrowOnUnmappableCharacter);
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
EditAndContinue\EditAndContinueLanguageServiceTests.cs (1)
146Assert.True(inBreakState);
Microsoft.CodeAnalysis.Features.UnitTests (1)
EditAndContinue\RemoteEditAndContinueServiceTests.cs (1)
159Assert.True(inBreakState);
Microsoft.CodeAnalysis.Workspaces.UnitTests (7)
Options\DocumentOptionSetTests.cs (5)
134Assert.True((bool?)set.GetOption(new OptionKey(CSharpFormattingOptions.NewLinesForBracesInTypes))); 135Assert.True((bool?)set.GetOption(new OptionKey(CSharpFormattingOptions.NewLinesForBracesInMethods))); 142Assert.True((bool?)updatedSet.GetOption(new OptionKey(CSharpFormattingOptions.NewLinesForBracesInTypes))); 143Assert.True((bool?)updatedSet.GetOption(new OptionKey(CSharpFormattingOptions.NewLinesForBracesInMethods))); 146Assert.True((bool?)updatedSet.GetOption(new OptionKey(CSharpFormattingOptions.NewLinesForBracesInProperties)));
WorkspaceServiceTests\GlobalOptionServiceTests.cs (2)
217Assert.True((bool?)optionSet.GetOption(key)); 236Assert.True((bool?)optionSet.GetOption(trueKey));
Microsoft.Data.Analysis.Tests (5)
DataFrameTests.BinaryOperations.cs (4)
228Assert.True(equalsResult[0]); 232Assert.True(equalsToScalarResult[0]); 237Assert.True(notEqualsResult[4]); 241Assert.True(notEqualsToScalarResult[1]);
DataFrameTests.cs (1)
942Assert.True(bigInts[i]);
Microsoft.DotNet.XUnitAssert.Tests (1)
BooleanAssertsTests.cs (1)
80 var ex = Record.Exception(() => Assert.True(null));
Microsoft.ML.AutoML.Tests (2)
DatasetDimensionsTests.cs (2)
58Assert.True(dimensions[1].HasMissing); 89Assert.True(dimensions[1].HasMissing);
ServerComparison.FunctionalTests (1)
ResponseTests.cs (1)
160Assert.True(response.Headers.TransferEncodingChunked);
System.Windows.Forms.Tests (1)
System\Windows\Forms\AccessibleObjects\Form.FormAccessibleObjectTests.cs (1)
51Assert.True(actualValue);
VBCSCompiler.UnitTests (1)
CompilerServerApiTest.cs (1)
106Assert.True(wasServerMutexOpen);