22052 references to False
Aspire.Azure.Security.KeyVault.Tests (2)
Aspire.Dashboard.Components.Tests (13)
Aspire.Dashboard.Tests (59)
BrowserLinkOutgoingPeerResolverTests.cs (9)
18Assert.False(TryResolvePeerName(resolver, [], out _));
28Assert.False(TryResolvePeerName(resolver, [KeyValuePair.Create("http.url", "")], out _));
38Assert.False(TryResolvePeerName(resolver, [KeyValuePair.Create<string, string>("http.url", null!)], out _));
50Assert.False(TryResolvePeerName(resolver, [KeyValuePair.Create("http.url", "/6eed7c2dedc14419901b813e8fe87a86/getScriptTag")], out _));
60Assert.False(TryResolvePeerName(resolver, [KeyValuePair.Create("http.url", "http://dummy:59267/6eed7c2dedc14419901b813e8fe87a86/getScriptTag")], out _));
70Assert.False(TryResolvePeerName(resolver, [KeyValuePair.Create("http.url", "http://localhost:59267/getScriptTag")], out _));
80Assert.False(TryResolvePeerName(resolver, [KeyValuePair.Create("http.url", "ht$tp://localhost:59267/6eed7c2dedc14419901b813e8fe87a86/getScriptTag")], out _));
90Assert.False(TryResolvePeerName(resolver, [KeyValuePair.Create("http.url", "http://localhost:59267/")], out _));
100Assert.False(TryResolvePeerName(resolver, [KeyValuePair.Create("http.url", "http://localhost:59267/not-a-guid/getScriptTag")], out _));
TelemetryRepositoryTests\LogTests.cs (6)
259Assert.False(unviewedCounts2.TryGetValue(new ApplicationKey("TestService", "1"), out _));
268Assert.False(unviewedCounts3.TryGetValue(new ApplicationKey("TestService", "1"), out _));
269Assert.False(unviewedCounts3.TryGetValue(new ApplicationKey("TestService", "2"), out _));
320Assert.False(unviewedCounts.TryGetValue(new ApplicationKey("TestService", "1"), out _));
321Assert.False(unviewedCounts.TryGetValue(new ApplicationKey("TestService", "2"), out _));
372Assert.False(unviewedCounts.TryGetValue(new ApplicationKey("TestService", "1"), out _));
Aspire.Elastic.Clients.Elasticsearch.Tests (2)
Aspire.Hosting.Azure.Tests (6)
Aspire.Hosting.Elasticsearch.Tests (5)
Aspire.Hosting.Garnet.Tests (2)
Aspire.Hosting.Kafka.Tests (2)
Aspire.Hosting.Keycloak.Tests (3)
Aspire.Hosting.Milvus.Tests (3)
Aspire.Hosting.MongoDB.Tests (2)
Aspire.Hosting.MySql.Tests (4)
Aspire.Hosting.Nats.Tests (4)
Aspire.Hosting.Oracle.Tests (4)
Aspire.Hosting.PostgreSQL.Tests (6)
Aspire.Hosting.Qdrant.Tests (6)
Aspire.Hosting.RabbitMQ.Tests (2)
Aspire.Hosting.Redis.Tests (5)
Aspire.Hosting.SqlServer.Tests (2)
Aspire.Hosting.Tests (54)
Aspire.Hosting.Valkey.Tests (2)
Aspire.Microsoft.Azure.Cosmos.Tests (1)
Aspire.Microsoft.Data.SqlClient.Tests (2)
Aspire.MySqlConnector.Tests (3)
Aspire.NATS.Net.Tests (2)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (4)
Aspire.Npgsql.Tests (3)
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (4)
Aspire.Qdrant.Client.Tests (1)
Aspire.RabbitMQ.Client.Tests (1)
Aspire.Workload.Tests (1)
ConfigurationSchemaGenerator.Tests (1)
Contract.Message.IntegrationTests (2)
Diagnostics.EFCore.FunctionalTests (1)
dotnet-svcutil.xmlserializer.IntegrationTests (1)
IIS.FunctionalTests (13)
IIS.LongTests (9)
IIS.NewHandler.FunctionalTests (9)
IIS.NewShim.FunctionalTests (9)
IIS.ShadowCopy.Tests (2)
IIS.Tests (1)
IISExpress.FunctionalTests (16)
InMemory.FunctionalTests (97)
InProcessWebSite (2)
InteractiveHost.UnitTests (3)
Interop.FunctionalTests (4)
Microsoft.Analyzers.Local.Tests (35)
Microsoft.AspNetCore.Analyzers.Test (11)
Microsoft.AspNetCore.Antiforgery.Test (23)
Microsoft.AspNetCore.App.Analyzers.Test (2)
Microsoft.AspNetCore.AsyncState.Tests (1)
Microsoft.AspNetCore.Authentication.Core.Test (12)
Microsoft.AspNetCore.Authentication.Negotiate.Test (5)
Microsoft.AspNetCore.Authentication.Test (35)
Microsoft.AspNetCore.Authorization.Test (50)
DefaultAuthorizationServiceTests.cs (26)
110Assert.False(allowed.Succeeded);
137Assert.False(allowed.Succeeded);
188Assert.False(allowed.Succeeded);
217Assert.False(allowed.Succeeded);
239Assert.False(allowed.Succeeded);
260Assert.False(allowed.Succeeded);
279Assert.False(allowed.Succeeded);
293Assert.False(allowed.Succeeded);
308Assert.False(allowed.Succeeded);
456Assert.False(allowed.Succeeded);
476Assert.False(allowed.Succeeded);
504Assert.False(allowed.Succeeded);
619Assert.False(allowed.Succeeded);
652Assert.False(allowed.Succeeded);
769Assert.False(allowed.Succeeded);
796Assert.False(allowed.Succeeded);
900Assert.False((await authorizationService.AuthorizeAsync(user, 1, Operations.Edit)).Succeeded);
922Assert.False((await authorizationService.AuthorizeAsync(user, 1, Operations.Edit)).Succeeded);
938Assert.False((await authorizationService.AuthorizeAsync(user, new ExpenseReport(), Operations.Delete)).Succeeded);
939Assert.False((await authorizationService.AuthorizeAsync(user, new ExpenseReport(), Operations.Create)).Succeeded);
954Assert.False((await authorizationService.AuthorizeAsync(user, null, Operations.Edit)).Succeeded);
1031Assert.False(allowed.Succeeded);
1068Assert.False((await authorizationService.AuthorizeAsync(user, "0")).Succeeded);
1071Assert.False((await authorizationService.AuthorizeAsync(user, "3")).Succeeded);
1128Assert.False((await authorizationService.AuthorizeAsync(null, "Success")).Succeeded);
1147Assert.False((await authorizationService.AuthorizeAsync(null, "Success")).Succeeded);
Microsoft.AspNetCore.Components.Authorization.Tests (2)
Microsoft.AspNetCore.Components.Endpoints.Tests (15)
Microsoft.AspNetCore.Components.Forms.Tests (22)
Microsoft.AspNetCore.Components.Server.Tests (26)
Circuits\ServerComponentDeserializerTest.cs (12)
163Assert.False(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors));
177Assert.False(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors));
189Assert.False(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors));
205Assert.False(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors));
220Assert.False(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors));
235Assert.False(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors));
270Assert.False(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors));
287Assert.False(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors));
302Assert.False(serverComponentDeserializer.TryDeserializeComponentDescriptorCollection(markers, out var descriptors));
376Assert.False(serverComponentDeserializer.TryDeserializeWebRootComponentDescriptor(markers[0], out _));
391Assert.False(serverComponentDeserializer.TryDeserializeWebRootComponentDescriptor(firstInvocationMarkers[0], out _));
422Assert.False(result);
Microsoft.AspNetCore.Components.Tests (86)
Microsoft.AspNetCore.Components.Web.Tests (2)
Microsoft.AspNetCore.Components.WebAssembly.Server.Tests (4)
Microsoft.AspNetCore.ConcurrencyLimiter.Tests (20)
Microsoft.AspNetCore.CookiePolicy.Test (41)
Microsoft.AspNetCore.Cors.Test (34)
Microsoft.AspNetCore.Cryptography.Internal.Tests (5)
Microsoft.AspNetCore.DataProtection.Tests (48)
Microsoft.AspNetCore.DeveloperCertificates.XPlat.Tests (2)
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (13)
Microsoft.AspNetCore.Diagnostics.Tests (7)
Microsoft.AspNetCore.FunctionalTests (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (8)
Microsoft.AspNetCore.Grpc.Swagger.Tests (1)
Microsoft.AspNetCore.HeaderParsing.Tests (59)
Microsoft.AspNetCore.HeaderPropagation.Tests (1)
Microsoft.AspNetCore.HostFiltering.Tests (2)
Microsoft.AspNetCore.Hosting.FunctionalTests (1)
Microsoft.AspNetCore.Hosting.Tests (44)
Microsoft.AspNetCore.Http.Abstractions.Tests (43)
Microsoft.AspNetCore.Http.Connections.Tests (44)
Microsoft.AspNetCore.Http.Extensions.Tests (64)
Microsoft.AspNetCore.Http.Results.Tests (44)
Microsoft.AspNetCore.Http.Tests (16)
Microsoft.AspNetCore.HttpLogging.Tests (6)
Microsoft.AspNetCore.HttpOverrides.Tests (14)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (15)
UserStoreEncryptPersonalDataTest.cs (10)
231Assert.False(FindInk(connection, "PhoneNumber", guid));
232Assert.False(FindInk(connection, "Email", guid));
233Assert.False(FindInk(connection, "UserName", guid));
234Assert.False(FindInk(connection, "PersonalData1", guid));
235Assert.False(FindInk(connection, "PersonalData2", guid));
236Assert.False(FindAuthenticatorKeyInk(connection, guid));
237Assert.False(FindTokenInk(connection, guid, "loginProvider", "token"));
240Assert.False(FindInk(connection, "NonPersonalData1", guid));
241Assert.False(FindInk(connection, "NonPersonalData2", guid));
242Assert.False(FindInk(connection, "SafePersonalData", guid));
Microsoft.AspNetCore.Identity.FunctionalTests (20)
Microsoft.AspNetCore.Identity.Specification.Tests (72)
UserManagerSpecificationTests.cs (59)
331Assert.False(await manager.CheckPasswordAsync(user, "password"));
560Assert.False(await manager.HasPasswordAsync(user));
561Assert.False(await manager.CheckPasswordAsync(user, "whatever"));
602Assert.False(await manager.HasPasswordAsync(user));
675Assert.False(await manager.HasPasswordAsync(user));
694Assert.False(await manager.CheckPasswordAsync(user, password));
956Assert.False(await manager.IsEmailConfirmedAsync(user));
1002Assert.False(await manager.CheckPasswordAsync(user, password));
1073Assert.False(await manager.VerifyUserTokenAsync(user, "Static", "test2", token));
1076Assert.False(await manager.VerifyUserTokenAsync(user, "Static", "test", token + "a"));
1079Assert.False(await manager.VerifyUserTokenAsync(user2, "Static", "test", token));
1094Assert.False(await manager.IsEmailConfirmedAsync(user));
1102Assert.False(await manager.IsEmailConfirmedAsync(user));
1116Assert.False(await manager.IsEmailConfirmedAsync(user));
1119Assert.False(await manager.IsEmailConfirmedAsync(user));
1132Assert.False(await manager.IsEmailConfirmedAsync(user));
1139Assert.False(await manager.IsEmailConfirmedAsync(user));
1157Assert.False(await mgr.IsLockedOutAsync(user));
1179Assert.False(await mgr.IsLockedOutAsync(user));
1181Assert.False(await mgr.IsLockedOutAsync(user));
1182Assert.False(await mgr.GetLockoutEndDateAsync(user) > DateTimeOffset.UtcNow.AddMinutes(55));
1204Assert.False(await mgr.IsLockedOutAsync(user));
1206Assert.False(await mgr.IsLockedOutAsync(user));
1207Assert.False(await mgr.GetLockoutEndDateAsync(user) > DateTimeOffset.UtcNow.AddMinutes(55));
1211Assert.False(await mgr.IsLockedOutAsync(user));
1212Assert.False(await mgr.GetLockoutEndDateAsync(user) > DateTimeOffset.UtcNow.AddMinutes(55));
1214Assert.False(await mgr.IsLockedOutAsync(user));
1215Assert.False(await mgr.GetLockoutEndDateAsync(user) > DateTimeOffset.UtcNow.AddMinutes(55));
1232Assert.False(await mgr.GetLockoutEnabledAsync(user));
1235Assert.False(await mgr.IsLockedOutAsync(user));
1237Assert.False(await mgr.IsLockedOutAsync(user));
1238Assert.False(await mgr.GetLockoutEndDateAsync(user) > DateTimeOffset.UtcNow.AddMinutes(55));
1259Assert.False(await mgr.IsLockedOutAsync(user));
1274Assert.False(await mgr.GetLockoutEnabledAsync(user));
1278Assert.False(await mgr.IsLockedOutAsync(user));
1292Assert.False(await mgr.IsLockedOutAsync(user));
1307Assert.False(await mgr.IsLockedOutAsync(user));
1370Assert.False(await manager.IsPhoneNumberConfirmedAsync(user));
1403Assert.False(await manager.IsPhoneNumberConfirmedAsync(user));
1408Assert.False(await manager.IsPhoneNumberConfirmedAsync(user));
1437Assert.False(await manager.IsPhoneNumberConfirmedAsync(user));
1455Assert.False(await manager.IsPhoneNumberConfirmedAsync(user));
1460Assert.False(await manager.IsPhoneNumberConfirmedAsync(user));
1484Assert.False(await manager.VerifyChangePhoneNumberTokenAsync(user, "bogus", num1));
1485Assert.False(await manager.VerifyChangePhoneNumberTokenAsync(user, "bogus", num2));
1502Assert.False(await manager.IsEmailConfirmedAsync(user));
1524Assert.False(await manager.IsEmailConfirmedAsync(user));
1551Assert.False(await manager.IsEmailConfirmedAsync(user));
1573Assert.False(await manager.IsEmailConfirmedAsync(user));
1580Assert.False(await manager.IsEmailConfirmedAsync(user));
1597Assert.False(await manager.IsEmailConfirmedAsync(user));
1602Assert.False(await manager.IsEmailConfirmedAsync(user));
1620Assert.False(await manager.IsEmailConfirmedAsync(user));
1626Assert.False(await manager.IsEmailConfirmedAsync(user));
1657Assert.False(await manager.VerifyTwoFactorTokenAsync(user, factorId, token));
1811Assert.False(factors.Any());
1854Assert.False(await manager.VerifyTwoFactorTokenAsync(user, factorId, token));
1870Assert.False(await manager.VerifyTwoFactorTokenAsync(user, "Email", token));
1884Assert.False(await manager.VerifyTwoFactorTokenAsync(user, "Phone", "bogus"));
Microsoft.AspNetCore.Identity.Test (27)
Microsoft.AspNetCore.InternalTesting.Tests (25)
Microsoft.AspNetCore.JsonPatch.Tests (28)
Microsoft.AspNetCore.Mvc.Abstractions.Test (18)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (42)
Microsoft.AspNetCore.Mvc.Core.Test (389)
Microsoft.AspNetCore.Mvc.Core.TestCommon (6)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (17)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (38)
Microsoft.AspNetCore.Mvc.FunctionalTests (27)
Microsoft.AspNetCore.Mvc.IntegrationTests (138)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (32)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (7)
Microsoft.AspNetCore.Mvc.Razor.Test (12)
Microsoft.AspNetCore.Mvc.RazorPages.Test (110)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (38)
Microsoft.AspNetCore.Mvc.Test (15)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (41)
Microsoft.AspNetCore.OpenApi.Tests (107)
Comparers\OpenApiSchemaComparerTests.cs (39)
151Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
155Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
159Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
163Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
167Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
171Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
175Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
179Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
183Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
187Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
191Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
195Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
199Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
203Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
207Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
211Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
215Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
219Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
223Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
227Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
231Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
235Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
239Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
243Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
247Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
251Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
255Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
259Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
263Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
267Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
271Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
275Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
279Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
283Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
287Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
291Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
295Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
299Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
303Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
Extensions\OpenApiSchemaExtensionsTests.cs (43)
62Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
67Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
72Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
77Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
82Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
87Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
92Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
97Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
102Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
107Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
112Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
117Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
122Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
127Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
132Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
137Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
142Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
147Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
152Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
157Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
162Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
167Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
172Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
177Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
182Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
187Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
192Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
197Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
202Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
207Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
212Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
217Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
222Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
227Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
232Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
237Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
242Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
247Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
252Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
259Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
290Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
309Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
332Assert.False(OpenApiSchemaComparer.Instance.Equals(originalSchema, modifiedSchema));
Microsoft.AspNetCore.OutputCaching.Tests (31)
Microsoft.AspNetCore.Owin.Tests (5)
Microsoft.AspNetCore.RateLimiting.Tests (12)
Microsoft.AspNetCore.Razor.Test (12)
Microsoft.AspNetCore.ResponseCaching.Tests (32)
Microsoft.AspNetCore.ResponseCompression.Tests (11)
Microsoft.AspNetCore.Rewrite.Tests (2)
Microsoft.AspNetCore.Routing.FunctionalTests (10)
Microsoft.AspNetCore.Routing.Tests (147)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (88)
Microsoft.AspNetCore.Server.HttpSys.Tests (1)
Microsoft.AspNetCore.Server.IISIntegration.Tests (5)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (147)
HttpParserTests.cs (11)
60Assert.False(ParseRequestLine(parser, requestHandler, buffer, out var consumed, out var examined));
71Assert.False(ParseRequestLine(parser, requestHandler, buffer, out var consumed, out var examined));
237Assert.False(parser.ParseHeaders(requestHandler, ref reader));
264Assert.False(parser.ParseHeaders(requestHandler, ref reader));
465Assert.False(parser.ParseHeaders(requestHandler, ref reader1));
572Assert.False(result);
662Assert.False(result);
676Assert.False(result);
748Assert.False(result);
773Assert.False(parser.ParseHeaders(requestHandler, ref reader));
825Assert.False(parser.ParseHeaders(requestHandler, ref reader));
HttpRequestHeadersTests.cs (45)
26Assert.False(headers.IsReadOnly);
72Assert.False(headers.TryGetValue("host", out value));
73Assert.False(headers.TryGetValue("custom", out value));
74Assert.False(headers.TryGetValue("Content-Length", out value));
78Assert.False(headers.TryGetValue("custom", out value));
79Assert.False(headers.TryGetValue("Content-Length", out value));
84Assert.False(headers.TryGetValue("Content-Length", out value));
241Assert.False(headers.ContainsKey("host"));
242Assert.False(headers.ContainsKey("custom"));
243Assert.False(headers.ContainsKey("Content-Length"));
244Assert.False(headers.Contains(kv1));
245Assert.False(headers.Contains(kv2));
246Assert.False(headers.Contains(kv3));
250Assert.False(headers.ContainsKey("custom"));
251Assert.False(headers.ContainsKey("Content-Length"));
253Assert.False(headers.Contains(kv2));
254Assert.False(headers.Contains(kv3));
255Assert.False(headers.Contains(kv1b));
256Assert.False(headers.Contains(kv2b));
257Assert.False(headers.Contains(kv3b));
262Assert.False(headers.ContainsKey("Content-Length"));
265Assert.False(headers.Contains(kv3));
266Assert.False(headers.Contains(kv1b));
267Assert.False(headers.Contains(kv2b));
268Assert.False(headers.Contains(kv3b));
277Assert.False(headers.Contains(kv1b));
278Assert.False(headers.Contains(kv2b));
279Assert.False(headers.Contains(kv3b));
288Assert.False(headers.TryGetValue("host", out value));
289Assert.False(headers.TryGetValue("custom", out value));
290Assert.False(headers.TryGetValue("Content-Length", out value));
324Assert.False(headers.TryGetValue("host", out value));
325Assert.False(headers.TryGetValue("custom", out value));
326Assert.False(headers.TryGetValue("Content-Length", out value));
344Assert.False(headers.Remove("host"));
347Assert.False(headers.TryGetValue("host", out value));
351Assert.False(headers.Remove("custom"));
354Assert.False(headers.TryGetValue("host", out value));
355Assert.False(headers.TryGetValue("custom", out value));
359Assert.False(headers.Remove("Content-Length"));
362Assert.False(headers.TryGetValue("host", out value));
363Assert.False(headers.TryGetValue("custom", out value));
364Assert.False(headers.TryGetValue("Content-Length", out value));
567Assert.False(nextSpan.SequenceEqual(Encoding.ASCII.GetBytes(headerValueUtf16Latin1CrossOver)));
612Assert.False(latinValueSpan.SequenceEqual(Encoding.ASCII.GetBytes(headerValueUtf16Latin1CrossOver)));
Microsoft.AspNetCore.Server.Kestrel.Tests (12)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (10)
Microsoft.AspNetCore.Session.Tests (12)
Microsoft.AspNetCore.Shared.Tests (57)
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (8)
Microsoft.AspNetCore.SignalR.Client.Tests (30)
Microsoft.AspNetCore.SignalR.Common.Tests (3)
Microsoft.AspNetCore.SignalR.Specification.Tests (1)
Microsoft.AspNetCore.SignalR.StackExchangeRedis.Tests (3)
Microsoft.AspNetCore.SignalR.Tests (43)
Microsoft.AspNetCore.StaticFiles.Tests (10)
Microsoft.AspNetCore.TestHost.Tests (18)
Microsoft.AspNetCore.Testing.Tests (2)
Microsoft.AspNetCore.Tests (5)
Microsoft.AspNetCore.WebSockets.Tests (9)
Microsoft.AspNetCore.WebUtilities.Tests (24)
Microsoft.Build.BuildCheck.UnitTests (97)
Microsoft.Build.CommandLine.UnitTests (28)
CommandLineSwitches_Tests.cs (28)
266Assert.False(multipleParametersAllowed);
271Assert.False(CommandLineSwitches.IsParameterizedSwitch(String.Empty, out parameterizedSwitch, out duplicateSwitchErrorMessage, out multipleParametersAllowed, out missingParametersErrorMessage, out unquoteParameters, out emptyParametersAllowed));
274Assert.False(multipleParametersAllowed);
276Assert.False(unquoteParameters);
764Assert.False(switches.IsParameterlessSwitchSet(CommandLineSwitches.ParameterlessSwitch.Version));
765Assert.False(switches[CommandLineSwitches.ParameterlessSwitch.Version]);
807Assert.False(switches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Target));
816Assert.False(switches.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.Target, "/t:\"", "\"", false, true, false));
829Assert.False(switches.SetParameterizedSwitch(CommandLineSwitches.ParameterizedSwitch.Target, "/t:A,\"\";B", "A,\"\";B", true, true, false));
850Assert.False(switches.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Logger));
910Assert.False(switchesLeft.HaveErrors());
911Assert.False(switchesRight.HaveErrors());
915Assert.False(switchesLeft.HaveErrors());
916Assert.False(switchesRight.HaveErrors());
921Assert.False(switchesRight.HaveErrors());
926Assert.False(switchesRight.HaveErrors());
945Assert.False(switchesLeft.HaveErrors());
946Assert.False(switchesRight.HaveErrors());
971Assert.False(switchesLeft.IsParameterlessSwitchSet(CommandLineSwitches.ParameterlessSwitch.NoConsoleLogger));
977Assert.False(switchesRight1.IsParameterlessSwitchSet(CommandLineSwitches.ParameterlessSwitch.Help));
995Assert.False(switchesRight2.IsParameterlessSwitchSet(CommandLineSwitches.ParameterlessSwitch.Help));
1008Assert.False(switchesLeft.HaveErrors());
1019Assert.False(switchesLeft.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Target));
1025Assert.False(switchesRight.IsParameterizedSwitchSet(CommandLineSwitches.ParameterizedSwitch.Project));
1212Assert.False(switches.HaveAnySwitchesBeenSet());
1218Assert.False(switches.HaveAnySwitchesBeenSet());
1243Assert.False(nodeReuse);
1569Assert.False(helpMessageLines[i].StartsWith(" "));
Microsoft.Build.Engine.OM.UnitTests (120)
Microsoft.Build.Engine.UnitTests (278)
AssemblyNameEx_Tests.cs (30)
403Assert.False(extension.HasProcessorArchitectureInFusionName);
422Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare));
423Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName));
448Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare));
449Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Version));
458Assert.False(assemblyNameToMatchVersion.PartialNameCompare(assemblyToCompare));
459Assert.False(assemblyNameToMatchVersion.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Version));
461Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare));
462Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Version));
492Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare));
493Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Culture));
502Assert.False(assemblyNameToMatchCulture.PartialNameCompare(assemblyToCompare));
503Assert.False(assemblyNameToMatchCulture.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Culture));
505Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare));
506Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Culture));
536Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare));
537Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.PublicKeyToken));
546Assert.False(assemblyNameToMatchPublicToken.PartialNameCompare(assemblyToCompare));
547Assert.False(assemblyNameToMatchPublicToken.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.PublicKeyToken));
549Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare));
550Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.PublicKeyToken));
579Assert.False(assemblyToCompare.PartialNameCompare(assemblyNameToNotMatch, PartialComparisonFlags.SimpleName, true));
581Assert.False(assemblyToCompare.PartialNameCompare(assemblyMatchNoRetargetable));
582Assert.False(assemblyToCompare.PartialNameCompare(assemblyMatchNoRetargetable, PartialComparisonFlags.SimpleName, true));
585Assert.False(assemblyMatchNoRetargetable.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName, true));
589Assert.False(assemblyNameToMatchRetargetable.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName, true));
599Assert.False(match);
624Assert.False(AssemblyNameComparer.GenericComparer.Equals(a, d));
626Assert.False(AssemblyNameComparer.GenericComparerConsiderRetargetable.Equals(a, b));
628Assert.False(AssemblyNameComparer.GenericComparerConsiderRetargetable.Equals(a, d));
BackEnd\AssemblyTaskFactory_Tests.cs (10)
143Assert.False(_taskFactory.TaskNameCreatableByFactory("NotInAssembly", null, String.Empty, null, ElementLocation.Create(".", 1, 1)));
154Assert.False(_taskFactory.TaskNameCreatableByFactory(String.Empty, null, String.Empty, null, ElementLocation.Create(".", 1, 1)));
165Assert.False(_taskFactory.TaskNameCreatableByFactory(null, null, String.Empty, null, ElementLocation.Create(".", 1, 1)));
205Assert.False(_taskFactory.TaskNameCreatableByFactory("TaskToTestFactories", taskIdentityParameters, String.Empty, null, ElementLocation.Create(".", 1, 1)));
236Assert.False(foundNotExpectedParameter);
285Assert.False(createdTask is TaskHostTask);
316Assert.False(createdTask is TaskHostTask);
349Assert.False(createdTask is TaskHostTask);
382Assert.False(createdTask is TaskHostTask);
417Assert.False(createdTask is TaskHostTask);
Definition\ItemDefinitionGroup_Tests.cs (6)
110Assert.False(ItemContainsMetadata(p, "Compile", "a.cs", "Third", "3rd"));
437Assert.False(p.ItemDefinitions.ContainsKey("Compile"));
439Assert.False(ItemContainsMetadata(p, "Compile", "a.cs", "First", "1st"));
491Assert.False(p.ItemDefinitions.ContainsKey("Compile"));
493Assert.False(ItemContainsMetadata(p, "Compile", "a.cs", "First", "1st"));
547Assert.False(ItemContainsMetadata(p, "Compile", "a.cs", "First", "1st"));
XmakeAttributes_Tests.cs (16)
19Assert.False(XMakeAttributes.IsSpecialTaskAttribute("NotAnAttribute"));
30Assert.False(XMakeAttributes.IsBadlyCasedSpecialTaskAttribute("NotAnAttribute"));
31Assert.False(XMakeAttributes.IsBadlyCasedSpecialTaskAttribute(XMakeAttributes.include));
32Assert.False(XMakeAttributes.IsBadlyCasedSpecialTaskAttribute(XMakeAttributes.continueOnError));
33Assert.False(XMakeAttributes.IsBadlyCasedSpecialTaskAttribute(XMakeAttributes.condition));
34Assert.False(XMakeAttributes.IsBadlyCasedSpecialTaskAttribute(XMakeAttributes.msbuildArchitecture));
35Assert.False(XMakeAttributes.IsBadlyCasedSpecialTaskAttribute(XMakeAttributes.msbuildRuntime));
45Assert.False(XMakeAttributes.IsNonBatchingTargetAttribute("NotAnAttribute"));
65Assert.False(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.MSBuildRuntimeValues.currentRuntime, XMakeAttributes.MSBuildRuntimeValues.clr2));
67Assert.False(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.MSBuildRuntimeValues.clr4, XMakeAttributes.MSBuildRuntimeValues.clr2));
68Assert.False(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.MSBuildRuntimeValues.clr4, XMakeAttributes.MSBuildRuntimeValues.net));
69Assert.False(XMakeAttributes.RuntimeValuesMatch(XMakeAttributes.MSBuildRuntimeValues.clr2, XMakeAttributes.MSBuildRuntimeValues.net));
140Assert.False(XMakeAttributes.ArchitectureValuesMatch(XMakeAttributes.MSBuildArchitectureValues.currentArchitecture, notCurrentArchitecture));
141Assert.False(XMakeAttributes.ArchitectureValuesMatch(XMakeAttributes.MSBuildArchitectureValues.x64, XMakeAttributes.MSBuildArchitectureValues.x86));
163Assert.False(XMakeAttributes.TryMergeArchitectureValues(XMakeAttributes.MSBuildArchitectureValues.currentArchitecture, notCurrentArchitecture, out mergedArchitecture));
164Assert.False(XMakeAttributes.TryMergeArchitectureValues(XMakeAttributes.MSBuildArchitectureValues.x64, XMakeAttributes.MSBuildArchitectureValues.x86, out mergedArchitecture));
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (12)
Microsoft.Build.Tasks.UnitTests (203)
AssemblyNameEx_Tests.cs (30)
403Assert.False(extension.HasProcessorArchitectureInFusionName);
422Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare));
423Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName));
448Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare));
449Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Version));
458Assert.False(assemblyNameToMatchVersion.PartialNameCompare(assemblyToCompare));
459Assert.False(assemblyNameToMatchVersion.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Version));
461Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare));
462Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Version));
492Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare));
493Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Culture));
502Assert.False(assemblyNameToMatchCulture.PartialNameCompare(assemblyToCompare));
503Assert.False(assemblyNameToMatchCulture.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Culture));
505Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare));
506Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.Culture));
536Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare));
537Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.PublicKeyToken));
546Assert.False(assemblyNameToMatchPublicToken.PartialNameCompare(assemblyToCompare));
547Assert.False(assemblyNameToMatchPublicToken.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.PublicKeyToken));
549Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare));
550Assert.False(assemblyNameToNotMatch.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName | PartialComparisonFlags.PublicKeyToken));
579Assert.False(assemblyToCompare.PartialNameCompare(assemblyNameToNotMatch, PartialComparisonFlags.SimpleName, true));
581Assert.False(assemblyToCompare.PartialNameCompare(assemblyMatchNoRetargetable));
582Assert.False(assemblyToCompare.PartialNameCompare(assemblyMatchNoRetargetable, PartialComparisonFlags.SimpleName, true));
585Assert.False(assemblyMatchNoRetargetable.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName, true));
589Assert.False(assemblyNameToMatchRetargetable.PartialNameCompare(assemblyToCompare, PartialComparisonFlags.SimpleName, true));
599Assert.False(match);
624Assert.False(AssemblyNameComparer.GenericComparer.Equals(a, d));
626Assert.False(AssemblyNameComparer.GenericComparerConsiderRetargetable.Equals(a, b));
628Assert.False(AssemblyNameComparer.GenericComparerConsiderRetargetable.Equals(a, d));
Microsoft.Build.UnitTests.Shared (3)
Microsoft.Build.Utilities.UnitTests (9)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (83)
CommandLineTests.cs (82)
508Assert.False(args.IsScriptRunner);
945Assert.False(desc.IsPublic);
952Assert.False(desc.IsPublic);
976Assert.False(desc.IsPublic);
984Assert.False(desc.IsPublic);
1095Assert.False(desc.IsPublic);
1111Assert.False(desc.IsPublic);
1129Assert.False(parsedArgs.DisplayHelp);
1136Assert.False(parsedArgs.DisplayHelp);
1143Assert.False(parsedArgs.DisplayHelp);
1150Assert.False(parsedArgs.DisplayHelp);
1481Assert.False(parsedArgs.DisplayHelp);
1486Assert.False(parsedArgs.DisplayHelp);
1492Assert.False(parsedArgs.SourceFiles.Any());
1497Assert.False(parsedArgs.SourceFiles.Any());
1502Assert.False(parsedArgs.SourceFiles.Any());
1518Assert.False(parsedArgs.SourceFiles.Any());
1523Assert.False(parsedArgs.SourceFiles.Any());
1527Assert.False(parsedArgs.DisplayHelp);
1535Assert.False(parsedArgs.DisplayHelp);
1540Assert.False(parsedArgs.DisplayHelp);
1548Assert.False(parsedArgs.DisplayHelp);
1549Assert.False(parsedArgs.SourceFiles.Any());
1553Assert.False(parsedArgs.DisplayHelp);
1558Assert.False(parsedArgs.DisplayHelp);
1563Assert.False(parsedArgs.DisplayHelp);
1570Assert.False(parsedArgs.DisplayHelp);
1575Assert.False(parsedArgs.DisplayHelp);
1580Assert.False(parsedArgs.DisplayHelp);
1903Assert.False(parsedArgs.Errors.Any());
1908Assert.False(parsedArgs.Errors.Any());
1915Assert.False(parsedArgs.Errors.Any());
1965Assert.False(parsedArgs.CompilationOptions.DebugPlusMode);
1966Assert.False(parsedArgs.EmitPdb);
1967Assert.False(parsedArgs.EmitPdbFile);
1972Assert.False(parsedArgs.CompilationOptions.DebugPlusMode);
1973Assert.False(parsedArgs.EmitPdb);
1974Assert.False(parsedArgs.EmitPdbFile);
1979Assert.False(parsedArgs.CompilationOptions.DebugPlusMode);
1993Assert.False(parsedArgs.CompilationOptions.DebugPlusMode);
1994Assert.False(parsedArgs.EmitPdb);
1995Assert.False(parsedArgs.EmitPdbFile);
2000Assert.False(parsedArgs.CompilationOptions.DebugPlusMode);
2006Assert.False(parsedArgs.CompilationOptions.DebugPlusMode);
2013Assert.False(parsedArgs.CompilationOptions.DebugPlusMode);
2019Assert.False(parsedArgs.CompilationOptions.DebugPlusMode);
2026Assert.False(parsedArgs.CompilationOptions.DebugPlusMode);
2033Assert.False(parsedArgs.CompilationOptions.DebugPlusMode);
2039Assert.False(parsedArgs.CompilationOptions.DebugPlusMode);
2045Assert.False(parsedArgs.CompilationOptions.DebugPlusMode);
2051Assert.False(parsedArgs.CompilationOptions.DebugPlusMode);
2052Assert.False(parsedArgs.EmitPdb);
2057Assert.False(parsedArgs.CompilationOptions.DebugPlusMode);
2075Assert.False(parsedArgs.CompilationOptions.DebugPlusMode);
2076Assert.False(parsedArgs.EmitPdb);
2098Assert.False(parsedArgs.EmitPdbFile);
2103Assert.False(parsedArgs.EmitPdbFile);
2614Assert.False(parsedArgs.CompilationOptions.Deterministic);
2626Assert.False(parsedArgs.CompilationOptions.Deterministic);
4523Assert.False(parsedArgs.Errors.Any());
4527Assert.False(parsedArgs.Errors.Any());
4576Assert.False(parsedArgs.Errors.Any());
4814Assert.False(parsedArgs.Errors.Any());
4817Assert.False(parsedArgs.Errors.Any());
4820Assert.False(parsedArgs.Errors.Any());
4832Assert.False(parsedArgs.Errors.Any());
5618Assert.False((bool)parsedArgs.CompilationOptions.DelaySign);
10531Assert.False(hostOutputRan);
11875Assert.False(File.Exists(dll));
11878Assert.False(File.Exists(refDll));
11938Assert.False(File.Exists(pdb));
14694Assert.False(globalOptions.TryGetValue("key2", out _));
14695Assert.False(globalOptions.TryGetValue("key3", out _));
14696Assert.False(globalOptions.TryGetValue("key4", out _));
14697Assert.False(globalOptions.TryGetValue("key5", out _));
14698Assert.False(globalOptions.TryGetValue("key6", out _));
14699Assert.False(globalOptions.TryGetValue("key7", out _));
14705Assert.False(classOptions.TryGetValue("key2", out _));
14706Assert.False(classOptions.TryGetValue("key3", out _));
14709Assert.False(classOptions.TryGetValue("key5", out _));
14710Assert.False(classOptions.TryGetValue("key6", out _));
14711Assert.False(classOptions.TryGetValue("key7", out _));
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (19)
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (215)
CodeGen\CodeGenTupleTest.cs (100)
495Assert.False(((NamedTypeSymbol)typeArg).IsSerializable);
850Assert.False(((NamedTypeSymbol)tooFewNames.Type).IsSerializable);
3355Assert.False(mTuple.IsImplicitlyDeclared);
3358Assert.False(mTuple.TupleData.UnderlyingDefinitionToMemberMap.Any());
3375Assert.False(mFirst.IsImplicitlyDeclared);
3648Assert.False(item.CorrespondingTupleField.IsExplicitlyNamedTupleElement);
3695Assert.False(yType.TupleElements[0].CorrespondingTupleField.IsExplicitlyNamedTupleElement);
3698Assert.False(yType.TupleElements[1].IsExplicitlyNamedTupleElement);
3703Assert.False(yType.TupleElements[2].CorrespondingTupleField.IsExplicitlyNamedTupleElement);
4514Assert.False(namedTuple.IsDefinition);
4520Assert.False(namedTuple.Equals(namedTuple.TupleUnderlyingType, TypeCompareKind.ConsiderEverything));
5831Assert.False(vt8.IsTupleType);
6158Assert.False(vt2.IsDefinition);
6226Assert.False(ns.IsGlobalNamespace);
6234Assert.False(ns.IsGlobalNamespace);
6242Assert.False(ns.IsGlobalNamespace);
6253Assert.False(ns.IsGlobalNamespace);
6508Assert.False(tuple9WithoutNames.IsDefinition);
6529Assert.False(tuple9WithNames.IsDefinition);
6618Assert.False(tuple1.Equals(tuple3));
6621Assert.False(tuple1.Equals(tuple4));
6815Assert.False(tuple1.Equals(tuple2, SymbolEqualityComparer.IncludeNullability));
6850Assert.False(TypeEquals(tuple1, tuple2, TypeCompareKind.IgnoreTupleNames));
6884Assert.False(tuple1.Equals(tuple2, SymbolEqualityComparer.IncludeNullability));
6919Assert.False(TypeEquals(tuple1, tuple2, TypeCompareKind.IgnoreTupleNames));
6936Assert.False(stringType.IsTupleType);
11155Assert.False(m1Tuple.IsImplicitlyDeclared);
11160Assert.False(m1Tuple.IsDefinition);
11209Assert.False(m1Tuple.IsComImport);
11227Assert.False(m1Tuple.Equals(m2Tuple));
11228Assert.False(m1Tuple.Equals(m6Tuple));
11229Assert.False(m6Tuple.Equals(m2Tuple));
11262Assert.False(m2Item1.IsDefinition);
11270Assert.False(m2Tuple.IsDefinition);
11300Assert.False(m2a2.IsImplicitlyDeclared);
11303Assert.False(m6Tuple.IsDefinition);
11419Assert.False(m1Tuple.IsImplicitlyDeclared);
11498Assert.False(m1Tuple.IsComImport);
11521Assert.False(m1Tuple.Equals(m2Tuple));
11522Assert.False(m1Tuple.Equals(m6Tuple));
11523Assert.False(m6Tuple.Equals(m2Tuple));
11585Assert.False(m2i2.IsImplicitlyDeclared);
11604Assert.False(members[i].Equals(members[j]));
11605Assert.False(members[j].Equals(members[i]));
11661Assert.False(members1[i].Equals(members2[j]));
11668Assert.False(tuple2.Equals(tuple1));
11673Assert.False(members2.Any(u => u.Equals(m)));
11674Assert.False(members2.Any(u => m.Equals(u)));
11999Assert.False(m4h4.IsImplicitlyDeclared);
12228Assert.False(m5Item8.IsImplicitlyDeclared);
12617Assert.False(m8Item1.IsImplicitlyDeclared);
12778Assert.False(m1Tuple.Equals(m2Tuple));
12779Assert.False(m1Tuple.Equals(m6Tuple));
12780Assert.False(m6Tuple.Equals(m2Tuple));
12847Assert.False(m2a2.IsImplicitlyDeclared);
13451Assert.False(sym.IsVirtualTupleField);
13469Assert.False(sym.IsVirtualTupleField);
13599Assert.False(t1.Equals(t3));
13607Assert.False(t5.Equals(t3));
13618Assert.False(t1.Equals(t6));
13625Assert.False(t1.Equals(t8));
13630Assert.False(t6.Equals(t8));
13651Assert.False(t1.Equals(t3));
13659Assert.False(t5.Equals(t3));
13672Assert.False(t1.Equals(t6));
13680Assert.False(t1.Equals(t8));
13685Assert.False(t6.Equals(t8));
13704Assert.False(t1.Equals(t11));
13708Assert.False(t1.Equals(t11));
13710Assert.False(t11.Equals(t1));
13761Assert.False(t1.Equals(t12));
13765Assert.False(t1.TupleUnderlyingType.Equals(t12.TupleUnderlyingType));
13767Assert.False(t12.TupleUnderlyingType.Equals(t1.TupleUnderlyingType));
13770Assert.False(t1.Equals(t12));
13772Assert.False(t12.Equals(t1));
13838Assert.False(t1.Equals(t3));
13846Assert.False(t5.Equals(t3));
13857Assert.False(t1.Equals(t6));
13864Assert.False(t1.Equals(t8));
13869Assert.False(t6.Equals(t8));
14005Assert.False(typeInfo.Type.IsTupleType);
14232Assert.False(m1Tuple.IsTupleType);
14237Assert.False(m1Tuple.IsTupleType);
14271Assert.False(f1Tuple.IsTupleType);
14285Assert.False(p1Tuple.IsTupleType);
14299Assert.False(m3TupleArray.ElementType.IsTupleType);
14317Assert.False(m4TupleList.TypeArguments[0].IsTupleType);
14426Assert.False(e1Tuple.IsTupleType);
14443Assert.False(m5TuplePointer.PointedAtType.IsTupleType);
14460Assert.False(v1Tuple.IsTupleType);
27479Assert.False(type.Equals(underlyingType, TypeCompareKind.ConsiderEverything));
27502Assert.False(type.Equals(underlyingType, SymbolEqualityComparer.Default));
27503Assert.False(type.Equals(underlyingType, SymbolEqualityComparer.ConsiderEverything));
27928Assert.False(field.HasComplete(CompletionPart.All));
27929Assert.False(underlyingField.HasComplete(CompletionPart.All));
28010Assert.False(field.IsExplicitlyNamedTupleElement);
28332Assert.False(namedType.IsTupleType);
28410Assert.All(fields, f => Assert.False(f.HasUseSiteError));
28568Assert.False(field.IsTupleElement());
28569Assert.False(field.IsDefaultTupleElement);
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (9)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (361)
Semantics\OutVarTests.cs (39)
178Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any());
386Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any());
423Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any());
461Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any());
499Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any());
537Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any());
575Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any());
622Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any());
659Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any());
697Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any());
737Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any());
776Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any());
816Assert.False(compilation.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<DeclarationExpressionSyntax>().Any());
970Assert.False(((ILocalSymbol)symbol).IsFixed);
1059Assert.False(conversion.Exists);
1156Assert.False(model.LookupSymbols(reference.SpanStart, name: reference.Identifier.ValueText).Any());
1157Assert.False(model.LookupNames(reference.SpanStart).Contains(reference.Identifier.ValueText));
2472Assert.False(GetOutVarDeclarations(tree, "x3").Any());
2473Assert.False(GetOutVarDeclarations(tree, "x4").Any());
2474Assert.False(GetOutVarDeclarations(tree, "x5").Any());
2475Assert.False(GetOutVarDeclarations(tree, "x6").Any());
17832Assert.False(GetOutVarDeclarations(tree).Any());
17893Assert.False(GetOutVarDeclarations(tree).Any());
18821Assert.False(mm.TestOnlyTryGetBoundNodesFromMap(constructorDeclaration).IsEmpty);
18822Assert.False(mm.TestOnlyTryGetBoundNodesFromMap(constructorDeclaration.Initializer).IsEmpty);
18823Assert.False(mm.TestOnlyTryGetBoundNodesFromMap(constructorDeclaration.Body).IsEmpty);
18824Assert.False(mm.TestOnlyTryGetBoundNodesFromMap(constructorDeclaration.ExpressionBody).IsEmpty);
22704Assert.False(model.LookupSymbols(decl.SpanStart, name: identifierText).Any());
22706Assert.False(model.LookupNames(decl.SpanStart).Contains(identifierText));
22719Assert.False(model.LookupSymbols(reference.SpanStart, name: reference.Identifier.ValueText).Any());
23056Assert.False(GetOutVarDeclarations(tree, "x3").Any());
32799Assert.False(dataFlow.VariablesDeclared.Contains(symbol, ReferenceEqualityComparer.Instance));
32800Assert.False(dataFlow.AlwaysAssigned.Contains(symbol, ReferenceEqualityComparer.Instance));
32801Assert.False(dataFlow.WrittenInside.Contains(symbol, ReferenceEqualityComparer.Instance));
32802Assert.False(dataFlow.DataFlowsIn.Contains(symbol, ReferenceEqualityComparer.Instance));
32803Assert.False(dataFlow.ReadInside.Contains(symbol, ReferenceEqualityComparer.Instance));
32804Assert.False(dataFlow.DataFlowsOut.Contains(symbol, ReferenceEqualityComparer.Instance));
32805Assert.False(dataFlow.ReadOutside.Contains(symbol, ReferenceEqualityComparer.Instance));
32806Assert.False(dataFlow.WrittenOutside.Contains(symbol, ReferenceEqualityComparer.Instance));
Semantics\PatternMatchingTestBase.cs (13)
218Assert.False(model.LookupSymbols(reference.SpanStart, name: reference.Identifier.ValueText).Any());
219Assert.False(model.LookupNames(reference.SpanStart).Contains(reference.Identifier.ValueText));
335Assert.False(dataFlow.VariablesDeclared.Contains(symbol, ReferenceEqualityComparer.Instance));
336Assert.False(dataFlow.AlwaysAssigned.Contains(symbol, ReferenceEqualityComparer.Instance));
337Assert.False(dataFlow.WrittenInside.Contains(symbol, ReferenceEqualityComparer.Instance));
338Assert.False(dataFlow.DataFlowsIn.Contains(symbol, ReferenceEqualityComparer.Instance));
339Assert.False(dataFlow.ReadInside.Contains(symbol, ReferenceEqualityComparer.Instance));
340Assert.False(dataFlow.DataFlowsOut.Contains(symbol, ReferenceEqualityComparer.Instance));
341Assert.False(dataFlow.ReadOutside.Contains(symbol, ReferenceEqualityComparer.Instance));
342Assert.False(dataFlow.WrittenOutside.Contains(symbol, ReferenceEqualityComparer.Instance));
377Assert.False(model.LookupSymbols(designation.SpanStart, name: identifierText).Any());
379Assert.False(model.LookupNames(designation.SpanStart).Contains(identifierText));
420Assert.False(model.LookupSymbols(reference.SpanStart, name: reference.Identifier.ValueText).Any());
Semantics\PrimaryConstructorTests.cs (20)
2165Assert.False(model.TryGetSpeculativeSemanticModel(baseWithargs.ArgumentList.OpenParenToken.SpanStart, speculativeBaseInitializer, out _));
2173Assert.False(model.TryGetSpeculativeSemanticModel(tree.GetRoot().DescendantNodes().OfType<ReturnStatementSyntax>().Single().SpanStart,
2177Assert.False(model.TryGetSpeculativeSemanticModel(otherBasePosition, speculativePrimaryInitializer, out _));
2241Assert.False(model.TryGetSpeculativeSemanticModel(baseWithargs.ArgumentList.OpenParenToken.SpanStart, speculativePrimaryInitializer, out _));
2317Assert.False(model.TryGetSpeculativeSemanticModel(baseWithargs.ArgumentList.OpenParenToken.SpanStart, speculativeBaseInitializer, out _));
2325Assert.False(model.TryGetSpeculativeSemanticModel(tree.GetRoot().DescendantNodes().OfType<ReturnStatementSyntax>().Single().SpanStart,
2329Assert.False(model.TryGetSpeculativeSemanticModel(otherBasePosition, speculativePrimaryInitializer, out _));
2331Assert.False(model.TryGetSpeculativeSemanticModel(baseWithargs.SpanStart, speculativePrimaryInitializer, out _));
2332Assert.False(model.TryGetSpeculativeSemanticModel(baseWithargs.ArgumentList.OpenParenToken.SpanStart, speculativePrimaryInitializer, out _));
2380Assert.False(model.TryGetSpeculativeSemanticModel(baseWithargs.ArgumentList.OpenParenToken.SpanStart, speculativePrimaryInitializer, out _));
2481Assert.False(model.TryGetSpeculativeSemanticModel(baseWithargs.ArgumentList.OpenParenToken.SpanStart, speculativeBase, out _));
2487Assert.False(model.TryGetSpeculativeSemanticModel(baseWithoutargs.ArgumentList.OpenParenToken.SpanStart, speculativeBase, out _));
2492Assert.False(model.TryGetSpeculativeSemanticModel(baseWithoutParens.SpanStart + 2, speculativeBase, out _));
3282Assert.False(i.HasPrimaryConstructor);
3324Assert.False(e.HasPrimaryConstructor);
3356Assert.False(c.HasPrimaryConstructor);
3584Assert.False(c1.AnyMemberHasAttributes);
3629Assert.False(c.AnyMemberHasAttributes);
3651Assert.False(c.AnyMemberHasAttributes);
7841Assert.False(isRecord);
Semantics\RecordTests.cs (27)
20381Assert.False(op.IsAbstract);
20382Assert.False(op.IsVirtual);
20383Assert.False(op.IsOverride);
20384Assert.False(op.IsSealed);
20391Assert.False(op.IsAbstract);
20392Assert.False(op.IsVirtual);
20393Assert.False(op.IsOverride);
20394Assert.False(op.IsSealed);
20500Assert.False(op.IsAbstract);
20501Assert.False(op.IsVirtual);
20502Assert.False(op.IsOverride);
20503Assert.False(op.IsSealed);
20510Assert.False(op.IsAbstract);
20511Assert.False(op.IsVirtual);
20512Assert.False(op.IsOverride);
20513Assert.False(op.IsSealed);
22322Assert.False(model.TryGetSpeculativeSemanticModel(baseWithargs.ArgumentList.OpenParenToken.SpanStart, speculativeBaseInitializer, out _));
22330Assert.False(model.TryGetSpeculativeSemanticModel(tree.GetRoot().DescendantNodes().OfType<ReturnStatementSyntax>().Single().SpanStart,
22334Assert.False(model.TryGetSpeculativeSemanticModel(otherBasePosition, speculativePrimaryInitializer, out _));
22398Assert.False(model.TryGetSpeculativeSemanticModel(baseWithargs.ArgumentList.OpenParenToken.SpanStart, speculativePrimaryInitializer, out _));
22474Assert.False(model.TryGetSpeculativeSemanticModel(baseWithargs.ArgumentList.OpenParenToken.SpanStart, speculativeBaseInitializer, out _));
22482Assert.False(model.TryGetSpeculativeSemanticModel(tree.GetRoot().DescendantNodes().OfType<ReturnStatementSyntax>().Single().SpanStart,
22486Assert.False(model.TryGetSpeculativeSemanticModel(otherBasePosition, speculativePrimaryInitializer, out _));
22488Assert.False(model.TryGetSpeculativeSemanticModel(baseWithargs.SpanStart, speculativePrimaryInitializer, out _));
22489Assert.False(model.TryGetSpeculativeSemanticModel(baseWithargs.ArgumentList.OpenParenToken.SpanStart, speculativePrimaryInitializer, out _));
22537Assert.False(model.TryGetSpeculativeSemanticModel(baseWithargs.ArgumentList.OpenParenToken.SpanStart, speculativePrimaryInitializer, out _));
30211Assert.False(compA.SupportsRuntimeCapability(RuntimeCapability.CovariantReturnsOfClasses));
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (543)
Semantics\AccessCheckTests.cs (45)
777Assert.False(Symbol.IsSymbolAccessible(privField.GetSymbol(), classB.GetSymbol()));
778Assert.False(compilation.IsSymbolAccessibleWithin(privField, classB));
779Assert.False(Symbol.IsSymbolAccessible(karrayType.GetSymbol(), classB.GetSymbol()));
780Assert.False(compilation.IsSymbolAccessibleWithin(karrayType, classB));
783Assert.False(Symbol.IsSymbolAccessible(kptrType.GetSymbol(), classB.GetSymbol()));
784Assert.False(compilation.IsSymbolAccessibleWithin(kptrType, classB));
787Assert.False(Symbol.IsSymbolAccessible(kinreturnfuncptrType.GetSymbol(), classB.GetSymbol()));
788Assert.False(compilation.IsSymbolAccessibleWithin(kinreturnfuncptrType, classB));
789Assert.False(Symbol.IsSymbolAccessible(kinparamfuncptr1Type.GetSymbol(), classB.GetSymbol()));
790Assert.False(compilation.IsSymbolAccessibleWithin(kinparamfuncptr1Type, classB));
791Assert.False(Symbol.IsSymbolAccessible(kinparamfuncptr2Type.GetSymbol(), classB.GetSymbol()));
792Assert.False(compilation.IsSymbolAccessibleWithin(kinparamfuncptr2Type, classB));
795Assert.False(Symbol.IsSymbolAccessible(kdiscard.GetSymbol(), classB.GetSymbol()));
796Assert.False(compilation.IsSymbolAccessibleWithin(kdiscard, classB));
799Assert.False(Symbol.IsSymbolAccessible(kenumType.GetSymbol(), classB.GetSymbol()));
800Assert.False(compilation.IsSymbolAccessibleWithin(kenumType, classB));
811Assert.False(Symbol.IsSymbolAccessible(protField.GetSymbol(), classB.GetSymbol()));
812Assert.False(compilation.IsSymbolAccessibleWithin(protField, classB));
813Assert.False(Symbol.IsSymbolAccessible(protField.GetSymbol(), classB.GetSymbol(), classADerived.GetSymbol()));
814Assert.False(compilation.IsSymbolAccessibleWithin(protField, classB, classADerived));
819Assert.False(Symbol.IsSymbolAccessible(protField.GetSymbol(), classADerived.GetSymbol(), classADerived2.GetSymbol()));
820Assert.False(compilation.IsSymbolAccessibleWithin(protField, classADerived, classADerived2));
828Assert.False(Symbol.IsSymbolAccessible(karrayType.GetSymbol(), sourceAssem.GetSymbol()));
829Assert.False(compilation.IsSymbolAccessibleWithin(karrayType, sourceAssem));
834Assert.False(Symbol.IsSymbolAccessible(kptrType.GetSymbol(), sourceAssem.GetSymbol()));
835Assert.False(compilation.IsSymbolAccessibleWithin(kptrType, sourceAssem));
836Assert.False(Symbol.IsSymbolAccessible(kinreturnfuncptrType.GetSymbol(), sourceAssem.GetSymbol()));
837Assert.False(compilation.IsSymbolAccessibleWithin(kinreturnfuncptrType, sourceAssem));
838Assert.False(Symbol.IsSymbolAccessible(kinparamfuncptr1Type.GetSymbol(), sourceAssem.GetSymbol()));
839Assert.False(compilation.IsSymbolAccessibleWithin(kinparamfuncptr1Type, sourceAssem));
840Assert.False(Symbol.IsSymbolAccessible(kinparamfuncptr2Type.GetSymbol(), sourceAssem.GetSymbol()));
841Assert.False(compilation.IsSymbolAccessibleWithin(kinparamfuncptr2Type, sourceAssem));
844Assert.False(Symbol.IsSymbolAccessible(kdiscard.GetSymbol(), sourceAssem.GetSymbol()));
845Assert.False(compilation.IsSymbolAccessibleWithin(kdiscard, sourceAssem));
846Assert.False(Symbol.IsSymbolAccessible(classA.GetSymbol(), mscorlibAssem.GetSymbol()));
847Assert.False(compilation.IsSymbolAccessibleWithin(classA, mscorlibAssem));
848Assert.False(Symbol.IsSymbolAccessible(aliasA.GetSymbol(), mscorlibAssem.GetSymbol()));
849Assert.False(compilation.IsSymbolAccessibleWithin(aliasA, mscorlibAssem));
916Assert.False(compilation1.IsSymbolAccessibleWithin(Outer_Pointer.Type, Other));
919Assert.False(compilation1.IsSymbolAccessibleWithin(Private, Other));
920Assert.False(compilation1.IsSymbolAccessibleWithin(Private, sourceAssem));
921Assert.False(compilation1.IsSymbolAccessibleWithin(Outer_Inner_Field, Other));
922Assert.False(compilation1.IsSymbolAccessibleWithin(Outer_Protected, Derived, Outer));
924Assert.False(compilation1.IsSymbolAccessibleWithin(Outer_PrivateProtected, Derived, Outer));
928Assert.False(compilation1.IsSymbolAccessibleWithin(Outer_Protected, sourceAssem));
Semantics\NullableReferenceTypesTests.cs (56)
5763Assert.False(((CSharpSyntaxTree)source1).IsGeneratedCode(null, cancellationToken: default));
5777Assert.False(((CSharpSyntaxTree)source2).IsGeneratedCode(null, cancellationToken: default));
5790Assert.False(((CSharpSyntaxTree)source3).IsGeneratedCode(null, cancellationToken: default));
5802Assert.False(((CSharpSyntaxTree)source4).IsGeneratedCode(null, cancellationToken: default));
12334Assert.False(member.TypeWithAnnotations.Equals(member.OverriddenEvent.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions));
12695Assert.False(impl.TypeWithAnnotations.Equals(member.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions));
12788Assert.False(impl.TypeWithAnnotations.Equals(member.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions));
12885Assert.False(member.TypeWithAnnotations.Equals(member.OverriddenProperty.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions));
13036Assert.False(impl.TypeWithAnnotations.Equals(member.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions));
13127Assert.False(impl.TypeWithAnnotations.Equals(member.TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions));
13208Assert.False(member.ReturnTypeWithAnnotations.Equals(member.OverriddenMethod.ConstructIfGeneric(member.TypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t))).ReturnTypeWithAnnotations,
13327Assert.False(implementing.ReturnTypeWithAnnotations.Equals(implemented.ReturnTypeWithAnnotations,
13414Assert.False(implementing.ReturnTypeWithAnnotations.Equals(implemented.ReturnTypeWithAnnotations,
13688Assert.False(m1.Parameters[0].TypeWithAnnotations.Equals(m1.OverriddenMethod.ConstructIfGeneric(m1.TypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t))).Parameters[0].TypeWithAnnotations,
14028Assert.False(member.ReturnTypeWithAnnotations.Equals(member.OverriddenMethod.ConstructIfGeneric(member.TypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t))).ReturnTypeWithAnnotations,
14135Assert.False(member.Parameters[0].TypeWithAnnotations.Equals(member.OverriddenMethod.ConstructIfGeneric(member.TypeParameters.SelectAsArray(t => TypeWithAnnotations.Create(t))).Parameters[0].TypeWithAnnotations,
16504Assert.False(implementing.Parameters[0].TypeWithAnnotations.Equals(implemented.Parameters[0].TypeWithAnnotations,
16635Assert.False(member.Parameters[0].TypeWithAnnotations.Equals(member.OverriddenProperty.Parameters[0].TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions));
16720Assert.False(implementing.Parameters[0].TypeWithAnnotations.Equals(implemented.Parameters[0].TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions));
16805Assert.False(implementing.Parameters[0].TypeWithAnnotations.Equals(implemented.Parameters[0].TypeWithAnnotations, TypeCompareKind.AllIgnoreOptions & ~TypeCompareKind.AllNullableIgnoreOptions));
17734Assert.False(implementing.Parameters[0].TypeWithAnnotations.Equals(implemented.Parameters[0].TypeWithAnnotations,
17802Assert.False(implementing.ReturnTypeWithAnnotations.Equals(implemented.ReturnTypeWithAnnotations,
17881Assert.False(m1Impl.Parameters[i].TypeWithAnnotations.Equals(m1Def.Parameters[i].TypeWithAnnotations,
98488Assert.False(t11.IsReferenceType);
100302Assert.False(t1.IsReferenceType);
100340Assert.False(t1.IsReferenceType);
100384Assert.False(t1.IsReferenceType);
100391Assert.False(t2.IsReferenceType);
100423Assert.False(t1.IsReferenceType);
100443Assert.False(t1.IsReferenceType);
100676Assert.False(at1.IsReferenceType);
100706Assert.False(tf1.IsReferenceType);
103214Assert.False(tf1.HasNotNullConstraint);
103288Assert.False(tf1.HasNotNullConstraint);
103339Assert.False(tf1.HasNotNullConstraint);
113147Assert.False(method1.Equals(method2, SymbolEqualityComparer.IncludeNullability.CompareKind));
113148Assert.False(method2.Equals(method1, SymbolEqualityComparer.IncludeNullability.CompareKind));
115881Assert.False(cDefinition.Equals(c4, TypeCompareKind.ConsiderEverything));
115882Assert.False(cDefinition.Equals(c4, TypeCompareKind.CLRSignatureCompareOptions));
115889Assert.False(iDefinition.Equals(i4, TypeCompareKind.ConsiderEverything));
115890Assert.False(iDefinition.Equals(i4, TypeCompareKind.CLRSignatureCompareOptions));
115899Assert.False(c.Equals(c2, SymbolEqualityComparer.ConsiderEverything.CompareKind));
144333Assert.False(IsNullableAnalysisEnabled(comp, "C.M"));
157590Assert.False(field2.Equals(field3, SymbolEqualityComparer.IncludeNullability));
157592Assert.False(field3.Equals(field2, SymbolEqualityComparer.IncludeNullability));
157596Assert.False(field1.Equals(field2, SymbolEqualityComparer.IncludeNullability));
157598Assert.False(field2.Equals(field1, SymbolEqualityComparer.IncludeNullability));
157634Assert.False(method2.IsDefinition);
157641Assert.False(method2.Equals(method3, SymbolEqualityComparer.Default));
157642Assert.False(method2.Equals(method3, SymbolEqualityComparer.IncludeNullability));
157643Assert.False(method3.Equals(method2, SymbolEqualityComparer.Default));
157644Assert.False(method3.Equals(method2, SymbolEqualityComparer.IncludeNullability));
157647Assert.False(method1.Equals(method2, SymbolEqualityComparer.Default));
157648Assert.False(method1.Equals(method2, SymbolEqualityComparer.IncludeNullability));
157649Assert.False(method2.Equals(method1, SymbolEqualityComparer.Default));
157650Assert.False(method2.Equals(method1, SymbolEqualityComparer.IncludeNullability));
Utilities\ValueSetTests.cs (26)
359Assert.False(neg.Any(GreaterThan, double.MaxValue));
367Assert.False(mi.Any(GreaterThan, 0.0));
369Assert.False(mi.Any(GreaterThanOrEqual, 0.0));
373Assert.False(i.Any(LessThan, 0.0));
375Assert.False(i.Any(LessThanOrEqual, 0.0));
388Assert.False(intersect.Any(Equal, "c"));
582Assert.False(ForDecimal.Related(LessThan, d).Any(Equal, d));
584Assert.False(ForDecimal.Related(GreaterThan, d).Any(Equal, d));
632Assert.False(s1.Any(Equal, value));
634Assert.False(s2.Any(LessThan, value));
636Assert.False(s1.Any(GreaterThanOrEqual, value));
643Assert.False(s1.Any(Equal, value));
645Assert.False(s2.Any(GreaterThan, value));
647Assert.False(s1.Any(LessThanOrEqual, value));
723Assert.False(s1.Any(LessThan, i));
724Assert.False(s1.Any(LessThan, i - 1));
727Assert.False(s1.Any(LessThanOrEqual, i - 1));
728Assert.False(s1.Any(GreaterThan, i + 1));
729Assert.False(s1.Any(GreaterThan, i));
731Assert.False(s1.Any(GreaterThanOrEqual, i + 1));
745Assert.False(s1.Any(LessThan, j));
746Assert.False(s1.Any(LessThan, j - 1));
749Assert.False(s1.Any(LessThanOrEqual, j - 1));
750Assert.False(s1.Any(GreaterThan, j + 1));
751Assert.False(s1.Any(GreaterThan, j));
753Assert.False(s1.Any(GreaterThanOrEqual, j + 1));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2551)
SymbolDisplay\SymbolDisplayTests.cs (15)
5047Assert.False(type is Symbol);
5048Assert.False(method is Symbol);
5049Assert.False(property is Symbol);
5050Assert.False(field is Symbol);
5051Assert.False(@event is Symbol);
5052Assert.False(@delegate is Symbol);
5053Assert.False(error is Symbol);
5316Assert.False(new FormattedSymbol(sA, f1).Equals((object)sA));
5317Assert.False(new FormattedSymbol(sA, f1).Equals(null));
5320Assert.False(new FormattedSymbol(sA, f1).Equals(new FormattedSymbol(sA, f2)));
5321Assert.False(new FormattedSymbol(sA, f1).Equals(new FormattedSymbol(sB, f1)));
5322Assert.False(new FormattedSymbol(sA, f1).Equals(new FormattedSymbol(sB, f2)));
5324Assert.False(new FormattedSymbol(sC, f1).Equals(new FormattedSymbol(sC.Construct(sA), f1)));
5327Assert.False(new FormattedSymbol(sA, new SymbolDisplayFormat()).Equals(new FormattedSymbol(sA, new SymbolDisplayFormat())));
6855Assert.False(local.IsRef);
Symbols\CompilationCreationTests.cs (17)
2619Assert.False(HasSingleTypeOfKind(c, TypeKind.Struct, "System.Int32"));
2622Assert.False(HasSingleTypeOfKind(c, TypeKind.Class, "System.Linq.Enumerable"));
2625Assert.False(HasSingleTypeOfKind(c, TypeKind.Class, "System.Uri"));
2627Assert.False(HasSingleTypeOfKind(c, TypeKind.Class, "System.Linq.Enumerable"));
2630Assert.False(HasSingleTypeOfKind(c, TypeKind.Class, "System.Uri"));
2633Assert.False(HasSingleTypeOfKind(c, TypeKind.Struct, "System.Int32"));
3009Assert.False(compilation.SupportsRuntimeCapability(RuntimeCapability.ByRefFields));
3010Assert.False(compilation.SupportsRuntimeCapability(RuntimeCapability.CovariantReturnsOfClasses));
3011Assert.False(compilation.SupportsRuntimeCapability(RuntimeCapability.NumericIntPtr));
3012Assert.False(compilation.SupportsRuntimeCapability(RuntimeCapability.UnmanagedSignatureCallingConvention));
3013Assert.False(compilation.SupportsRuntimeCapability(RuntimeCapability.VirtualStaticsInInterfaces));
3014Assert.False(compilation.SupportsRuntimeCapability(RuntimeCapability.DefaultImplementationsOfInterfaces));
3017Assert.False(compilation.SupportsRuntimeCapability(RuntimeCapability.ByRefFields));
3019Assert.False(compilation.SupportsRuntimeCapability(RuntimeCapability.NumericIntPtr));
3021Assert.False(compilation.SupportsRuntimeCapability(RuntimeCapability.VirtualStaticsInInterfaces));
3025Assert.False(compilation.SupportsRuntimeCapability(RuntimeCapability.ByRefFields));
3027Assert.False(compilation.SupportsRuntimeCapability(RuntimeCapability.NumericIntPtr));
Symbols\FunctionPointerTypeSymbolTests.cs (18)
915Assert.False(ret1.Equals(ret2, TypeCompareKind.ConsiderEverything));
916Assert.False(ret1.Equals(ret2, TypeCompareKind.AllNullableIgnoreOptions));
952Assert.False(s1.Equals(s2, TypeCompareKind.ConsiderEverything));
953Assert.False(s1.Equals(s2, TypeCompareKind.AllNullableIgnoreOptions));
1063Assert.False(param1.Type.Equals(param2.Type, TypeCompareKind.ConsiderEverything));
2026Assert.False(ptr1.NoRef.Equals(ptr2.ByRef, TypeCompareKind.IgnoreCustomModifiersAndArraySizesAndLowerBounds));
2027Assert.False(ptr1.NoRef.Equals(ptr2.ByRef, TypeCompareKind.ConsiderEverything));
2028Assert.False(ptr1.ByRef.Equals(ptr2.NoRef, TypeCompareKind.IgnoreCustomModifiersAndArraySizesAndLowerBounds));
2029Assert.False(ptr1.ByRef.Equals(ptr2.NoRef, TypeCompareKind.ConsiderEverything));
2096Assert.False(ptr1.NoRef.Equals(ptr2.ByRef, TypeCompareKind.IgnoreCustomModifiersAndArraySizesAndLowerBounds));
2097Assert.False(ptr1.NoRef.Equals(ptr2.ByRef, TypeCompareKind.ConsiderEverything));
2098Assert.False(ptr1.ByRef.Equals(ptr2.NoRef, TypeCompareKind.IgnoreCustomModifiersAndArraySizesAndLowerBounds));
2099Assert.False(ptr1.ByRef.Equals(ptr2.NoRef, TypeCompareKind.ConsiderEverything));
2152Assert.False(ptr1.NoRef.Equals(ptr2.ByRef, TypeCompareKind.IgnoreCustomModifiersAndArraySizesAndLowerBounds));
2153Assert.False(ptr1.NoRef.Equals(ptr2.ByRef, TypeCompareKind.ConsiderEverything));
2154Assert.False(ptr1.ByRef.Equals(ptr2.NoRef, TypeCompareKind.IgnoreCustomModifiersAndArraySizesAndLowerBounds));
2155Assert.False(ptr1.ByRef.Equals(ptr2.NoRef, TypeCompareKind.ConsiderEverything));
2165Assert.False(ptr1.ByRef.Equals(ptr2.ByRef, TypeCompareKind.ConsiderEverything));
Symbols\SymbolDistinguisherTests.cs (2)
702Assert.False(AreEqual(new SymbolDistinguisher(compilation, sA, sB), new SymbolDistinguisher(compilation, sA, sC)));
703Assert.False(AreEqual(new SymbolDistinguisher(compilation, sA, sB), new SymbolDistinguisher(compilation, sC, sB)));
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (581)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (44)
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (153)
Extensions\EnumerableExtensionTests.cs (7)
56Assert.False(Enumerable(false).All());
57Assert.False(Enumerable(false, false).All());
58Assert.False(Enumerable(true, false).All());
59Assert.False(Enumerable(false, true).All());
91Assert.False(seq.SequenceEqual(new int[] { 1, 2, 3, 4 }, equality));
92Assert.False(seq.SequenceEqual(new int[] { 1, 2 }, equality));
95Assert.False(seq.SequenceEqual(new int[] { 1, 2, 6 }, equality));
Utilities\SymbolEquivalenceComparerTests.cs (94)
90Assert.False(SymbolEquivalenceComparer.Instance.Equals(intField1.Type, intArrayField1.Type));
91Assert.False(SymbolEquivalenceComparer.Instance.Equals(intArrayField1.Type, stringArrayField1.Type));
92Assert.False(SymbolEquivalenceComparer.Instance.Equals(stringArrayField1.Type, intArrayArrayField1.Type));
93Assert.False(SymbolEquivalenceComparer.Instance.Equals(intArrayArrayField1.Type, intArrayRank2Field1.Type));
94Assert.False(SymbolEquivalenceComparer.Instance.Equals(intArrayRank2Field1.Type, int32Field1.Type));
147Assert.False(SymbolEquivalenceComparer.Instance.Equals(csharpIntField1.Type, vbIntArrayField1.Type));
148Assert.False(SymbolEquivalenceComparer.Instance.Equals(vbIntArrayField1.Type, csharpStringArrayField1.Type));
149Assert.False(SymbolEquivalenceComparer.Instance.Equals(csharpStringArrayField1.Type, vbIntArrayArrayField1.Type));
150Assert.False(SymbolEquivalenceComparer.Instance.Equals(vbIntArrayArrayField1.Type, csharpIntArrayRank2Field1.Type));
151Assert.False(SymbolEquivalenceComparer.Instance.Equals(csharpIntArrayRank2Field1.Type, vbInt32Field1.Type));
155Assert.False(SymbolEquivalenceComparer.Instance.Equals(vbIntField1.Type, csharpIntArrayField1.Type));
156Assert.False(SymbolEquivalenceComparer.Instance.Equals(csharpIntArrayField1.Type, vbStringArrayField1.Type));
157Assert.False(SymbolEquivalenceComparer.Instance.Equals(vbStringArrayField1.Type, csharpIntArrayArrayField1.Type));
158Assert.False(SymbolEquivalenceComparer.Instance.Equals(csharpIntArrayArrayField1.Type, vbIntArrayRank2Field1.Type));
159Assert.False(SymbolEquivalenceComparer.Instance.Equals(vbIntArrayRank2Field1.Type, csharpInt32Field1.Type));
212Assert.False(SymbolEquivalenceComparer.Instance.Equals(field2_v1, field2_v2));
214Assert.False(SymbolEquivalenceComparer.Instance.Equals(field4_v1, field4_v2));
260Assert.False(SymbolEquivalenceComparer.Instance.Equals(field2_v1, field2_v2));
262Assert.False(SymbolEquivalenceComparer.Instance.Equals(field4_v1, field4_v2));
298Assert.False(SymbolEquivalenceComparer.Instance.Equals(goo, goo_intInstantiation1));
299Assert.False(SymbolEquivalenceComparer.Instance.Equals(goo, goo_intInstantiation2));
300Assert.False(SymbolEquivalenceComparer.Instance.Equals(goo, goo_stringInstantiation));
301Assert.False(SymbolEquivalenceComparer.Instance.Equals(goo_intInstantiation1, goo_stringInstantiation));
334Assert.False(SymbolEquivalenceComparer.Instance.Equals(method_v1, method_v2));
359Assert.False(SymbolEquivalenceComparer.Instance.Equals(method_v1, method_v2));
384Assert.False(SymbolEquivalenceComparer.Instance.Equals(method_v1, method_v2));
409Assert.False(SymbolEquivalenceComparer.Instance.Equals(method_v1, method_v2));
540Assert.False(SymbolEquivalenceComparer.Instance.Equals(method_v1, method_v2));
592Assert.False(SymbolEquivalenceComparer.Instance.Equals(method_v1, method_v2));
632Assert.False(SymbolEquivalenceComparer.Instance.Equals(csharpGooMethod, csharpBarMethod));
633Assert.False(SymbolEquivalenceComparer.Instance.Equals(csharpGooMethod, vbQuuxMethod));
635Assert.False(SymbolEquivalenceComparer.Instance.Equals(csharpBarMethod, csharpGooMethod));
636Assert.False(SymbolEquivalenceComparer.Instance.Equals(csharpBarMethod, vbGooMethod));
637Assert.False(SymbolEquivalenceComparer.Instance.Equals(csharpBarMethod, vbQuuxMethod));
677Assert.False(SymbolEquivalenceComparer.Instance.Equals(csharpGooMethod, csharpBarMethod));
678Assert.False(SymbolEquivalenceComparer.Instance.Equals(csharpGooMethod, vbBarMethod));
680Assert.False(SymbolEquivalenceComparer.Instance.Equals(csharpBarMethod, csharpGooMethod));
681Assert.False(SymbolEquivalenceComparer.Instance.Equals(csharpBarMethod, vbGooMethod));
682Assert.False(SymbolEquivalenceComparer.Instance.Equals(csharpBarMethod, vbBarMethod));
701Assert.False(SymbolEquivalenceComparer.Instance.Equals(field1_v1, field2_v1));
702Assert.False(SymbolEquivalenceComparer.Instance.Equals(field2_v1, field1_v1));
763Assert.False(SymbolEquivalenceComparer.Instance.Equals(method_v1, method_v2));
764Assert.False(SymbolEquivalenceComparer.Instance.Equals(method_v2, method_v1));
831Assert.False(SymbolEquivalenceComparer.Instance.Equals(method_v1, method_v2));
832Assert.False(SymbolEquivalenceComparer.Instance.Equals(method_v2, method_v1));
884Assert.False(SymbolEquivalenceComparer.Instance.Equals(outer1, inner1));
885Assert.False(SymbolEquivalenceComparer.Instance.Equals(inner1, outerType1));
886Assert.False(SymbolEquivalenceComparer.Instance.Equals(outerType1, innerType1));
887Assert.False(SymbolEquivalenceComparer.Instance.Equals(innerType1, outer1));
948Assert.False(SymbolEquivalenceComparer.Instance.Equals(type1_v1, type2_v1));
949Assert.False(SymbolEquivalenceComparer.Instance.Equals(type2_v1, type1_v1));
973Assert.False(SymbolEquivalenceComparer.Instance.Equals(type1_v1, type1_v2));
974Assert.False(SymbolEquivalenceComparer.Instance.Equals(type1_v2, type1_v1));
998Assert.False(SymbolEquivalenceComparer.Instance.Equals(type1_v1, type1_v2));
999Assert.False(SymbolEquivalenceComparer.Instance.Equals(type1_v2, type1_v1));
1023Assert.False(SymbolEquivalenceComparer.Instance.Equals(type1_v1, type1_v2));
1024Assert.False(SymbolEquivalenceComparer.Instance.Equals(type1_v2, type1_v1));
1056Assert.False(SymbolEquivalenceComparer.Instance.Equals(type1_v1, type1_v2));
1057Assert.False(SymbolEquivalenceComparer.Instance.Equals(type1_v2, type1_v1));
1121Assert.False(trueComp.Equals(method_v1, method_v2));
1122Assert.False(trueComp.Equals(method_v2, method_v1));
1158Assert.False(SymbolEquivalenceComparer.Instance.Equals(method_v1, method_v2));
1188Assert.False(SymbolEquivalenceComparer.Instance.Equals(method_v1, method_v2));
1250Assert.False(SymbolEquivalenceComparer.TupleNamesMustMatchInstance.Equals(method_v1, method_v2));
1281Assert.False(SymbolEquivalenceComparer.TupleNamesMustMatchInstance.Equals(method_v1, method_v2));
1312Assert.False(SymbolEquivalenceComparer.Instance.Equals(method_v1, method_v2));
1365Assert.False(notIgnoreComparer.Equals(a1, a2));
1366Assert.False(notIgnoreComparer.Equals(b1, b2));
1367Assert.False(notIgnoreComparer.Equals(c1, c2));
1368Assert.False(notIgnoreComparer.Equals(d1, d2));
1492Assert.False(notIgnoreComparer.Equals(a1, a2));
1493Assert.False(notIgnoreComparer.Equals(b1, b2));
1494Assert.False(notIgnoreComparer.Equals(c1, c2));
1495Assert.False(notIgnoreComparer.Equals(d1, d2));
1555Assert.False(notIgnoreComparer.Equals(a1, a2));
1556Assert.False(notIgnoreComparer.Equals(b1, b2));
1557Assert.False(notIgnoreComparer.Equals(c1, c2));
1558Assert.False(notIgnoreComparer.Equals(d1, d2));
1725Assert.False(SymbolEquivalenceComparer.Instance.Equals(namespace1, namespace2));
1761Assert.False(SymbolEquivalenceComparer.Instance.Equals(ta1, tb1));
1762Assert.False(identityComparer.Equals(ta1, tb1));
1767Assert.False(identityComparer.Equals(tb1, tb2));
1844Assert.False(identityComparer.Equals(f1[0], f2[1]));
1845Assert.False(identityComparer.Equals(f1[0], f2[2]));
1846Assert.False(identityComparer.Equals(f1[0], f2[3]));
1848Assert.False(identityComparer.Equals(f1[1], f2[0]));
1850Assert.False(identityComparer.Equals(f1[1], f2[2]));
1851Assert.False(identityComparer.Equals(f1[1], f2[3]));
1853Assert.False(identityComparer.Equals(f1[2], f2[0]));
1854Assert.False(identityComparer.Equals(f1[2], f2[1]));
1856Assert.False(identityComparer.Equals(f1[2], f2[3]));
1858Assert.False(identityComparer.Equals(f1[3], f2[0]));
1859Assert.False(identityComparer.Equals(f1[3], f2[1]));
1860Assert.False(identityComparer.Equals(f1[3], f2[2]));
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Microsoft.CodeAnalysis.Features.UnitTests (8)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (19)
Microsoft.CodeAnalysis.LanguageServer.UnitTests (1)
Microsoft.CodeAnalysis.Scripting.TestUtilities (1)
Microsoft.CodeAnalysis.Scripting.UnitTests (6)
Microsoft.CodeAnalysis.Test.Utilities (29)
Microsoft.CodeAnalysis.UnitTests (572)
Collections\ImmutableDictionaryTestBase.nonnetstandard.cs (12)
70Assert.False(Empty<int, int>().Equals(null));
71Assert.False(Empty<int, int>().Equals("hi"));
73Assert.False(Empty<int, int>().Add(3, 2).Equals(Empty<int, int>().Add(3, 2)));
74Assert.False(Empty<int, int>().Add(3, 2).Equals(Empty<int, int>().Add(3, 1)));
75Assert.False(Empty<int, int>().Add(5, 1).Equals(Empty<int, int>().Add(3, 1)));
76Assert.False(Empty<int, int>().Add(3, 1).Add(5, 1).Equals(Empty<int, int>().Add(3, 1)));
77Assert.False(Empty<int, int>().Add(3, 1).Equals(Empty<int, int>().Add(3, 1).Add(5, 1)));
82Assert.False(Empty<int, int>().Add(3, 1).ToReadOnlyDictionary().Equals(Empty<int, int>()));
83Assert.False(Empty<int, int>().Equals(Empty<int, int>().Add(3, 1).ToReadOnlyDictionary()));
84Assert.False(Empty<int, int>().ToReadOnlyDictionary().Equals(Empty<int, int>().Add(3, 1).ToReadOnlyDictionary()));
133Assert.False(map.ContainsKey(key));
266Assert.False(manualEnum.MoveNext());
FileSystem\PathUtilitiesTests.cs (32)
183Assert.False(
187Assert.False(
189Assert.False(
196Assert.False(
200Assert.False(
202Assert.False(
209Assert.False(
213Assert.False(
215Assert.False(
218Assert.False(
220Assert.False(
222Assert.False(
224Assert.False(
226Assert.False(
228Assert.False(
235Assert.False(
239Assert.False(
241Assert.False(
244Assert.False(
246Assert.False(
248Assert.False(
250Assert.False(
252Assert.False(
254Assert.False(
288Assert.False(PathUtilities.IsSameDirectoryOrChildOf(@"C:\", @"C:\ABCD"));
289Assert.False(PathUtilities.IsSameDirectoryOrChildOf(@"C:\ABC", @"C:\ABCD"));
290Assert.False(PathUtilities.IsSameDirectoryOrChildOf(@"C:\ABCDE", @"C:\ABCD"));
292Assert.False(PathUtilities.IsSameDirectoryOrChildOf(@"C:\A\B\C", @"C:\A\B\C\D"));
301Assert.False(PathUtilities.IsSameDirectoryOrChildOf(@"C:\a\B\C", @"C:\A\B", StringComparison.Ordinal));
302Assert.False(PathUtilities.IsSameDirectoryOrChildOf(@"C:\A\b\C", @"C:\A\B", StringComparison.Ordinal));
311Assert.False(PathUtilities.IsSameDirectoryOrChildOf(@"/a/B/C", @"/A/B", StringComparison.Ordinal));
312Assert.False(PathUtilities.IsSameDirectoryOrChildOf(@"/A/b/C", @"/A/B", StringComparison.Ordinal));
InternalUtilities\EnumerableExtensionsTests.cs (5)
21Assert.False(EnumerableExtensions.SequenceEqual(new[] { 1 }, null, comparer));
22Assert.False(EnumerableExtensions.SequenceEqual(null, new[] { 1 }, comparer));
25Assert.False(EnumerableExtensions.SequenceEqual(new int[0], new[] { 1 }, comparer));
26Assert.False(EnumerableExtensions.SequenceEqual(new[] { 1 }, new int[0], comparer));
27Assert.False(EnumerableExtensions.SequenceEqual(new[] { 1, 2, 3 }, new[] { 1, 3, 2 }, comparer));
InternalUtilities\OneOrManyTests.cs (36)
81Assert.False(OneOrMany.Create(1).Contains(0));
83Assert.False(OneOrMany.Create(ImmutableArray<int>.Empty).Contains(0));
86Assert.False(OneOrMany.Create(ImmutableArray.Create(1)).Contains(0));
90Assert.False(OneOrMany.Create(ImmutableArray.Create(1, 2)).Contains(0));
176Assert.False(OneOrMany<int>.Empty.Any());
184Assert.False(OneOrMany<int>.Empty.Any(_ => false));
185Assert.False(OneOrMany<int>.Empty.Any(_ => true));
187Assert.False(OneOrMany.Create(1).Any(i => i > 1));
190Assert.False(OneOrMany.Create(1, 2).Any(i => i < 0));
197Assert.False(OneOrMany<int>.Empty.Any((_, _) => false, 0));
198Assert.False(OneOrMany<int>.Empty.Any((_, _) => true, 0));
200Assert.False(OneOrMany.Create(1).Any((i, a) => i > a, 1));
203Assert.False(OneOrMany.Create(1, 2).Any((i, a) => i < a, 0));
224Assert.False(OneOrMany<int>.Empty.SequenceEqual(OneOrMany.Create(1)));
225Assert.False(OneOrMany<int>.Empty.SequenceEqual(OneOrMany.Create(1, 2)));
226Assert.False(OneOrMany.Create(1).SequenceEqual(OneOrMany<int>.Empty));
227Assert.False(OneOrMany.Create(1, 2).SequenceEqual(OneOrMany<int>.Empty));
229Assert.False(OneOrMany.Create(1).SequenceEqual(OneOrMany.Create(2)));
231Assert.False(OneOrMany.Create(1, 2).SequenceEqual(OneOrMany.Create(1, 0)));
233Assert.False(OneOrMany.Create(1, 2).SequenceEqual(OneOrMany.Create(ImmutableArray.Create(1, 2, 3))));
237Assert.False(OneOrMany<int>.Empty.SequenceEqual(new[] { 1 }));
238Assert.False(OneOrMany<int>.Empty.SequenceEqual(new[] { 1, 2 }));
240Assert.False(OneOrMany.Create(1).SequenceEqual(new[] { 2 }));
242Assert.False(OneOrMany.Create(1, 2).SequenceEqual(new[] { 1, 0 }));
243Assert.False(OneOrMany.Create(1, 2).SequenceEqual(new[] { 1, 2, 3 }));
246Assert.False(new[] { 1 }.SequenceEqual(OneOrMany<int>.Empty));
247Assert.False(new[] { 1, 2 }.SequenceEqual(OneOrMany<int>.Empty));
249Assert.False(new[] { 1 }.SequenceEqual(OneOrMany.Create(2)));
251Assert.False(new[] { 1, 2 }.SequenceEqual(OneOrMany.Create(1, 0)));
252Assert.False(new[] { 1, 2 }.SequenceEqual(OneOrMany.Create(ImmutableArray.Create(1, 2, 3))));
255Assert.False(ImmutableArray.Create(1).SequenceEqual(OneOrMany<int>.Empty));
256Assert.False(ImmutableArray.Create(1, 2).SequenceEqual(OneOrMany<int>.Empty));
258Assert.False(ImmutableArray.Create(1).SequenceEqual(OneOrMany.Create(2)));
260Assert.False(ImmutableArray.Create(1, 2).SequenceEqual(OneOrMany.Create(1, 0)));
261Assert.False(ImmutableArray.Create(1, 2).SequenceEqual(OneOrMany.Create(ImmutableArray.Create(1, 2, 3))));
270Assert.False(OneOrMany.Create(1, 2).SequenceEqual(new[] { 0, 1 }, comparer));
MetadataReferences\AssemblyIdentityMapTests.cs (4)
39Assert.False(map.Contains(new AssemblyIdentity("a", new Version(1, 1, 0, 0)), allowHigherVersion: false));
40Assert.False(map.TryGetValue(new AssemblyIdentity("a", new Version(1, 1, 0, 0)), out value, allowHigherVersion: false));
43Assert.False(map.Contains(new AssemblyIdentity("b", new Version(1, 1, 0, 0)), allowHigherVersion: true));
44Assert.False(map.Contains(new AssemblyIdentity("b", new Version(1, 1, 0, 0)), allowHigherVersion: false));
StringTableTests.cs (20)
104Assert.False(TestTextEqualsASCII("a", ""));
105Assert.False(TestTextEqualsASCII("", "a"));
107Assert.False(TestTextEqualsASCII("a", "ab"));
108Assert.False(TestTextEqualsASCII("ab", "a"));
109Assert.False(TestTextEqualsASCII("abc", "a"));
110Assert.False(TestTextEqualsASCII("abcd", "a"));
111Assert.False(TestTextEqualsASCII("abcde", "a"));
112Assert.False(TestTextEqualsASCII("abcdef", "a"));
113Assert.False(TestTextEqualsASCII("abcdefg", "a"));
114Assert.False(TestTextEqualsASCII("abcdefgh", "a"));
115Assert.False(TestTextEqualsASCII("a", "ab"));
116Assert.False(TestTextEqualsASCII("a", "abc"));
117Assert.False(TestTextEqualsASCII("a", "abcd"));
118Assert.False(TestTextEqualsASCII("a", "abcde"));
119Assert.False(TestTextEqualsASCII("a", "abcdef"));
120Assert.False(TestTextEqualsASCII("a", "abcdefg"));
121Assert.False(TestTextEqualsASCII("a", "abcdefgh"));
122Assert.False(TestTextEqualsASCII("\u1234", "a"));
123Assert.False(TestTextEqualsASCII("\ud800", "xx"));
124Assert.False(TestTextEqualsASCII("\uffff", ""));
Text\TextSpanTest.cs (28)
105Assert.False(span.IsEmpty);
133Assert.False(span.Contains(30));
134Assert.False(span.Contains(11));
135Assert.False(span.Contains(-1));
147Assert.False(span_05_15.Contains(span_00_03));
148Assert.False(span_00_03.Contains(span_05_15));
157Assert.False(span_05_15.Contains(span_03_10));
158Assert.False(span_03_10.Contains(span_05_15));
165Assert.False(new TextSpan(2, 5).Contains(new TextSpan(0, 0)));
166Assert.False(new TextSpan(2, 5).Contains(new TextSpan(10, 0)));
185Assert.False(new TextSpan(0, 0).Contains(new TextSpan(2, 5)));
186Assert.False(new TextSpan(10, 0).Contains(new TextSpan(2, 5)));
189Assert.False(new TextSpan(3, 0).Contains(new TextSpan(2, 5)));
192Assert.False(new TextSpan(2, 0).Contains(new TextSpan(2, 5)));
195Assert.False(new TextSpan(7, 0).Contains(new TextSpan(2, 5)));
222Assert.False(span1.Equals(span2));
223Assert.False(span1.Equals(span3));
224Assert.False(span2.Equals(span3));
239Assert.False(span1.OverlapsWith(span2));
240Assert.False(span2.OverlapsWith(span1));
251Assert.False(span1.OverlapsWith(span2));
252Assert.False(span2.OverlapsWith(span1));
275Assert.False(span1.OverlapsWith(span2));
276Assert.False(span2.OverlapsWith(span1));
287Assert.False(span1.OverlapsWith(span2));
288Assert.False(span2.OverlapsWith(span1));
311Assert.False(span1.IntersectsWith(span2));
312Assert.False(span2.IntersectsWith(span1));
VersionHelperTests.cs (46)
100Assert.False(VersionHelper.TryParseAssemblyVersion("1.234.56.7.*", allowWildcard: true, version: out version));
102Assert.False(VersionHelper.TryParseAssemblyVersion("1.234.56.7.1", allowWildcard: true, version: out version));
104Assert.False(VersionHelper.TryParseAssemblyVersion("*", allowWildcard: true, version: out version));
106Assert.False(VersionHelper.TryParseAssemblyVersion("1.2. *", allowWildcard: true, version: out version));
108Assert.False(VersionHelper.TryParseAssemblyVersion("1.2.* ", allowWildcard: true, version: out version));
110Assert.False(VersionHelper.TryParseAssemblyVersion("1.*", allowWildcard: true, version: out version));
112Assert.False(VersionHelper.TryParseAssemblyVersion("1.1.*.*", allowWildcard: true, version: out version));
114Assert.False(VersionHelper.TryParseAssemblyVersion("", allowWildcard: true, version: out version));
116Assert.False(VersionHelper.TryParseAssemblyVersion(" ", allowWildcard: true, version: out version));
118Assert.False(VersionHelper.TryParseAssemblyVersion(null, allowWildcard: true, version: out version));
120Assert.False(VersionHelper.TryParseAssemblyVersion("a", allowWildcard: true, version: out version));
122Assert.False(VersionHelper.TryParseAssemblyVersion("********", allowWildcard: true, version: out version));
124Assert.False(VersionHelper.TryParseAssemblyVersion("...", allowWildcard: true, version: out version));
126Assert.False(VersionHelper.TryParseAssemblyVersion(".a.b.", allowWildcard: true, version: out version));
128Assert.False(VersionHelper.TryParseAssemblyVersion(".0.1.", allowWildcard: true, version: out version));
130Assert.False(VersionHelper.TryParseAssemblyVersion("65535.65535.65535.65535", allowWildcard: true, version: out version));
132Assert.False(VersionHelper.TryParseAssemblyVersion("65535.65535.65535.65535", allowWildcard: false, version: out version));
134Assert.False(VersionHelper.TryParseAssemblyVersion(" 1.2.3.4", allowWildcard: true, version: out version));
136Assert.False(VersionHelper.TryParseAssemblyVersion("1 .2.3.4", allowWildcard: true, version: out version));
138Assert.False(VersionHelper.TryParseAssemblyVersion("1.2.3.4 ", allowWildcard: true, version: out version));
140Assert.False(VersionHelper.TryParseAssemblyVersion("1.2.3. 4", allowWildcard: true, version: out version));
142Assert.False(VersionHelper.TryParseAssemblyVersion("1.2. 3.4", allowWildcard: true, version: out version));
146Assert.False(VersionHelper.TryParseAssemblyVersion("\uFF11.\uFF10.\uFF10.\uFF10", allowWildcard: true, version: out version));
155Assert.False(VersionHelper.TryParse("", out version));
157Assert.False(VersionHelper.TryParse(null, out version));
159Assert.False(VersionHelper.TryParse("a", out version));
161Assert.False(VersionHelper.TryParse("********", out version));
163Assert.False(VersionHelper.TryParse("...", out version));
165Assert.False(VersionHelper.TryParse(".a.b.", out version));
167Assert.False(VersionHelper.TryParse(".1.2.", out version));
169Assert.False(VersionHelper.TryParse("1.234.56.7.8", out version));
171Assert.False(VersionHelper.TryParse("*", out version));
173Assert.False(VersionHelper.TryParse("-1.2.3.4", out version));
177Assert.False(VersionHelper.TryParse("\uFF11.\uFF10.\uFF10.\uFF10", out version));
186Assert.False(VersionHelper.TryParse("1.2. 3", out version));
188Assert.False(VersionHelper.TryParse("1.2.3 ", out version));
190Assert.False(VersionHelper.TryParse("1.a", out version));
192Assert.False(VersionHelper.TryParse("1.2.a.b", out version));
194Assert.False(VersionHelper.TryParse("1.-2.3.4", out version));
196Assert.False(VersionHelper.TryParse("1..1.2", out version));
198Assert.False(VersionHelper.TryParse("1.1.65536", out version));
200Assert.False(VersionHelper.TryParse("1.1.1.10000000", out version));
202Assert.False(VersionHelper.TryParse("1.1.18446744073709551617999999999999999999999999900001.1", out version));
204Assert.False(VersionHelper.TryParse("1.1.18446744073709551617999999999999999999999999900001garbage.1", out version));
206Assert.False(VersionHelper.TryParse("1.1.18446744073709551617999999999999999999999999900001.23garbage", out version));
208Assert.False(VersionHelper.TryParse("65536.2.65536.1", out version));
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (40)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (5)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (41)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (4)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (12)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (7)
Microsoft.CodeAnalysis.Workspaces.UnitTests (125)
UtilityTest\SpellCheckerTests.cs (12)
17Assert.False(WordSimilarityChecker.AreSimilar("variabledeclaratorsyntax", "variabledeclaratorsyntaxextensions"));
20Assert.False(WordSimilarityChecker.AreSimilar("expressionsyntax", "expressionsyntaxextensions"));
23Assert.False(WordSimilarityChecker.AreSimilar("expressionsyntax", "expressionsyntaxgeneratorvisitor"));
30Assert.False(WordSimilarityChecker.AreSimilar("propertyblocksyntax", "ipropertysymbol"));
31Assert.False(WordSimilarityChecker.AreSimilar("propertyblocksyntax", "ipropertysymbolextensions"));
32Assert.False(WordSimilarityChecker.AreSimilar("propertyblocksyntax", "typeblocksyntaxextensions"));
34Assert.False(WordSimilarityChecker.AreSimilar("fielddeclarationsyntax", "declarationinfo"));
35Assert.False(WordSimilarityChecker.AreSimilar("fielddeclarationsyntax", "declarationcomputer"));
36Assert.False(WordSimilarityChecker.AreSimilar("fielddeclarationsyntax", "filelinepositionspan"));
38Assert.False(WordSimilarityChecker.AreSimilar("variabledeclaratorsyntax", "visualbasicdeclarationcomputer"));
39Assert.False(WordSimilarityChecker.AreSimilar("variabledeclaratorsyntax", "ilineseparatorservice"));
41Assert.False(WordSimilarityChecker.AreSimilar("expressionsyntax", "awaitexpressioninfo"));
Microsoft.Data.Analysis.Tests (31)
Microsoft.DotNet.Arcade.Sdk.Tests (5)
Microsoft.DotNet.Build.Tasks.Feed.Tests (1)
Microsoft.DotNet.Build.Tasks.Workloads.Tests (1)
Microsoft.DotNet.Open.Api.Tools.Tests (3)
Microsoft.DotNet.VersionTools.Tests (4)
Microsoft.DotNet.XUnitAssert.Tests (5)
Microsoft.Extensions.ApiDescription.Client.Tests (11)
Microsoft.Extensions.ApiDescription.Tool.Tests (10)
Microsoft.Extensions.AsyncState.Tests (7)
Microsoft.Extensions.Caching.Hybrid.Tests (7)
Microsoft.Extensions.Compliance.Abstractions.Tests (6)
Microsoft.Extensions.Compliance.Testing.Tests (5)
Microsoft.Extensions.Diagnostics.HealthChecks.Tests (23)
Microsoft.Extensions.Diagnostics.Probes.Tests (10)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (4)
Microsoft.Extensions.Diagnostics.Testing.Tests (9)
Microsoft.Extensions.FileProviders.Embedded.Tests (23)
Microsoft.Extensions.Hosting.Testing.Tests (2)
Microsoft.Extensions.Http.Diagnostics.Tests (7)
Microsoft.Extensions.Http.Polly.Tests (1)
Microsoft.Extensions.Http.Resilience.Tests (5)
Microsoft.Extensions.SecretManager.Tools.Tests (1)
Microsoft.Extensions.ServiceDiscovery.Tests (1)
Microsoft.Extensions.Telemetry.Abstractions.Tests (13)
Microsoft.Extensions.Telemetry.Tests (35)
Microsoft.Extensions.TimeProvider.Testing.Tests (13)
Microsoft.Gen.ContextualOptions.Generated.Tests (1)
Microsoft.Gen.ContextualOptions.Unit.Tests (5)
Microsoft.Gen.Logging.Unit.Tests (3)
Microsoft.Gen.MetricsReports.Unit.Tests (1)
Microsoft.JSInterop.Tests (20)
Microsoft.ML.AutoML.Tests (48)
MetricsAgentsTests.cs (20)
37Assert.False(IsPerfectModel(metrics, BinaryClassificationMetric.Accuracy));
38Assert.False(IsPerfectModel(metrics, BinaryClassificationMetric.AreaUnderRocCurve));
39Assert.False(IsPerfectModel(metrics, BinaryClassificationMetric.AreaUnderPrecisionRecallCurve));
40Assert.False(IsPerfectModel(metrics, BinaryClassificationMetric.F1Score));
41Assert.False(IsPerfectModel(metrics, BinaryClassificationMetric.NegativePrecision));
42Assert.False(IsPerfectModel(metrics, BinaryClassificationMetric.NegativeRecall));
43Assert.False(IsPerfectModel(metrics, BinaryClassificationMetric.PositivePrecision));
44Assert.False(IsPerfectModel(metrics, BinaryClassificationMetric.PositiveRecall));
76Assert.False(IsPerfectModel(metrics, MulticlassClassificationMetric.MacroAccuracy));
77Assert.False(IsPerfectModel(metrics, MulticlassClassificationMetric.MicroAccuracy));
78Assert.False(IsPerfectModel(metrics, MulticlassClassificationMetric.LogLoss));
79Assert.False(IsPerfectModel(metrics, MulticlassClassificationMetric.LogLossReduction));
80Assert.False(IsPerfectModel(metrics, MulticlassClassificationMetric.TopKAccuracy));
108Assert.False(IsPerfectModel(metrics, RegressionMetric.MeanAbsoluteError));
109Assert.False(IsPerfectModel(metrics, RegressionMetric.MeanSquaredError));
110Assert.False(IsPerfectModel(metrics, RegressionMetric.RootMeanSquaredError));
111Assert.False(IsPerfectModel(metrics, RegressionMetric.RSquared));
146Assert.False(IsPerfectModel(metrics, RankingMetric.Dcg, 3));
147Assert.False(IsPerfectModel(metrics, RankingMetric.Ndcg, 3));
156Assert.False(IsPerfectModel(metrics, RankingMetric.Dcg, 3)); //REVIEW: No true Perfect model
Microsoft.ML.Core.Tests (72)
UnitTests\TestUtilities.cs (33)
41Assert.False(Utils.IsMonotonicallyIncreasing(x));
68Assert.False(Utils.IsMonotonicallyIncreasing(x));
75Assert.False(Utils.IsMonotonicallyIncreasing(x));
102Assert.False(Utils.IsMonotonicallyIncreasing(x));
109Assert.False(Utils.IsMonotonicallyIncreasing(x));
125Assert.False(Utils.IsIncreasing(1, x, 10));
127Assert.False(Utils.IsIncreasing(0, x, 9));
139Assert.False(Utils.IsIncreasing(0, x, 10));
146Assert.False(Utils.IsIncreasing(0, x, 10));
171Assert.False(Utils.AreEqual(x, y));
177Assert.False(Utils.AreEqual(x, y));
183Assert.False(Utils.AreEqual(x, y));
188Assert.False(Utils.AreEqual(xOfDifferentLength, y));
191Assert.False(Utils.AreEqual(null, y));
192Assert.False(Utils.AreEqual(x, null));
207Assert.False(Utils.AreEqual(x, y));
213Assert.False(Utils.AreEqual(x, y));
219Assert.False(Utils.AreEqual(x, y));
224Assert.False(Utils.AreEqual(xOfDifferentLength, y));
227Assert.False(Utils.AreEqual(null, y));
228Assert.False(Utils.AreEqual(x, null));
243Assert.False(Utils.AreEqual(x, y));
249Assert.False(Utils.AreEqual(x, y));
255Assert.False(Utils.AreEqual(x, y));
260Assert.False(Utils.AreEqual(xOfDifferentLength, y));
263Assert.False(Utils.AreEqual(null, y));
264Assert.False(Utils.AreEqual(x, null));
279Assert.False(Utils.AreEqual(x, y));
285Assert.False(Utils.AreEqual(x, y));
291Assert.False(Utils.AreEqual(x, y));
296Assert.False(Utils.AreEqual(xOfDifferentLength, y));
299Assert.False(Utils.AreEqual(null, y));
300Assert.False(Utils.AreEqual(x, null));
Microsoft.ML.CpuMath.UnitTests (3)
Microsoft.ML.IntegrationTests (14)
Microsoft.ML.OnnxTransformerTest (5)
Microsoft.ML.Predictor.Tests (7)
Microsoft.ML.Sweeper.Tests (4)
Microsoft.ML.TensorFlow.Tests (1)
Microsoft.ML.TestFramework (3)
Microsoft.ML.Tests (23)
Microsoft.ML.Tokenizers.Tests (4)
Microsoft.Net.Http.Headers.Tests (46)
Microsoft.VisualBasic.Tests (16)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (13)
Mvc.Analyzers.Test (24)
Mvc.Api.Analyzers.Test (12)
Roslyn.Test.PdbUtilities (1)
Roslyn.VisualStudio.Next.UnitTests (5)
Shared.Tests (44)
Data.Validation\LengthAttributeTests.cs (14)
39Assert.False(Validator.TryValidateObject(options, context, results, true));
53Assert.False(Validator.TryValidateObject(options, context, results, true));
60Assert.False(Validator.TryValidateObject(options, context, results, true));
95Assert.False(Validator.TryValidateObject(options, context, results, true));
109Assert.False(Validator.TryValidateObject(options, context, results, true));
117Assert.False(Validator.TryValidateObject(options, context, results, true));
168Assert.False(Validator.TryValidateObject(options, context, results, true));
186Assert.False(Validator.TryValidateObject(options, context, results, true));
222Assert.False(Validator.TryValidateObject(options, context, results, true));
234Assert.False(Validator.TryValidateObject(options, context, results, true));
275Assert.False(Validator.TryValidateObject(options, context, results, true));
293Assert.False(Validator.TryValidateObject(options, context, results, true));
393Assert.False(Validator.TryValidateObject(options, context, results, true));
413Assert.False(Validator.TryValidateObject(options, context, results, true));
Data.Validation\TimeSpanAttributeTests.cs (10)
37Assert.False(Validator.TryValidateObject(options, context, results, true));
44Assert.False(Validator.TryValidateObject(options, context, results, true));
62Assert.False(Validator.TryValidateObject(options, context, results, true));
102Assert.False(Validator.TryValidateObject(options, context, results, true));
109Assert.False(Validator.TryValidateObject(options, context, results, true));
123Assert.False(Validator.TryValidateObject(options, context, results, true));
130Assert.False(Validator.TryValidateObject(options, context, results, true));
165Assert.False(Validator.TryValidateObject(options, context, results, true));
172Assert.False(Validator.TryValidateObject(options, context, results, true));
190Assert.False(Validator.TryValidateObject(options, context, results, true));
Sockets.FunctionalTests (11)
System.Drawing.Common.Tests (108)
System\Drawing\Drawing2D\GraphicsPathTests.cs (20)
2252Assert.False(gp.IsOutlineVisible(10, 2, Pens.Red, graphics));
2256Assert.False(gp.IsOutlineVisible(11.0f, 2.0f, Pens.Red, graphics));
2259Assert.False(gp.IsOutlineVisible(point, Pens.Red, graphics));
2266Assert.False(gp.IsOutlineVisible(fPoint, Pens.Red, graphics));
2280Assert.False(gp.IsOutlineVisible(11, 11, Pens.Red, graphics));
2284Assert.False(gp.IsOutlineVisible(11.0f, 11.0f, Pens.Red, graphics));
2291Assert.False(gp.IsOutlineVisible(point, Pens.Red, graphics));
2294Assert.False(gp.IsOutlineVisible(fPoint, Pens.Red, graphics));
2305Assert.False(gp.IsVisible(9, 9, graphics));
2309Assert.False(gp.IsVisible(30, 29, graphics));
2310Assert.False(gp.IsVisible(29, 30, graphics));
2311Assert.False(gp.IsVisible(30, 30, graphics));
2312Assert.False(gp.IsVisible(9.4f, 9.4f, graphics));
2317Assert.False(gp.IsVisible(29.5f, 29.5f, graphics));
2318Assert.False(gp.IsVisible(29.5f, 29.4f, graphics));
2319Assert.False(gp.IsVisible(29.4f, 29.5f, graphics));
2326Assert.False(gp.IsVisible(10, 10, graphics));
2328Assert.False(gp.IsVisible(29, 29, graphics));
2329Assert.False(gp.IsVisible(10f, 10f, graphics));
2331Assert.False(gp.IsVisible(29.4f, 29.4f, graphics));
System.Private.Windows.Core.Tests (18)
System.ServiceModel.Http.Tests (7)
System.ServiceModel.Primitives.Tests (13)
System.Windows.Forms.Analyzers.CSharp.Tests (4)
System.Windows.Forms.Design.Tests (285)
System.Windows.Forms.Primitives.Tests (18)
System.Windows.Forms.Primitives.TestUtilities (1)
System.Windows.Forms.Primitives.TestUtilities.Tests (1)
System.Windows.Forms.Tests (11471)
System\Windows\Forms\Application.ComponentManagerTests.cs (23)
47Assert.False(manager.FRegisterComponent(component, &info, null));
48Assert.False(manager.FRegisterComponent(component, null, &id));
61Assert.False(manager.FRegisterComponent(component, &info, &id));
95Assert.False(manager.FRevokeComponent(UIntPtr.Zero));
98Assert.False(manager.FRevokeComponent(id));
112Assert.False(manager.FUpdateComponentRegistration(id, null));
125Assert.False(manager.FUpdateComponentRegistration(id, &info));
134Assert.False(manager.FOnComponentActivate(default));
141Assert.False(manager.FSetTrackingComponent(default, true));
142Assert.False(manager.FSetTrackingComponent(default, false));
161Assert.False(manager.FSetTrackingComponent(id, true));
166Assert.False(manager.FSetTrackingComponent(id, false));
205Assert.False(manager.FOnComponentExitState(default, default, default, default, null));
238Assert.False(manager.FInState(0, null));
258Assert.False(manager.FPushMessageLoop(default, default, null));
267Assert.False(manager.FCreateSubComponentManager(default, default, null, null));
271Assert.False(manager.FCreateSubComponentManager(default, default, null, &obj));
281Assert.False(manager.FGetParentComponentManager(null));
285Assert.False(manager.FGetParentComponentManager((IMsoComponentManager**)&obj));
293Assert.False(manager.FGetActiveComponent(msogac.Active, null, null, 0));
313Assert.False(manager.FGetActiveComponent(msogac.Active, null, null, 0));
317Assert.False(manager.FGetActiveComponent(msogac.Tracking, null, &info, 0));
336Assert.False(component.IsNull);
System.Windows.Forms.UI.IntegrationTests (31)
System.Xaml.Tests (7)
Templates.Blazor.Tests (1)
Templates.Blazor.WebAssembly.Auth.Tests (2)
Templates.Blazor.WebAssembly.Tests (2)
Templates.Mvc.Tests (2)
Templates.Tests (4)
VBCSCompiler.UnitTests (31)