1983 references to True
Aspire.Components.Common.Tests (1)
Aspire.Dashboard.Components.Tests (1)
Aspire.Dashboard.Tests (5)
Aspire.EndToEnd.Tests (1)
Aspire.Hosting.Azure.Tests (3)
Aspire.Hosting.Testing.Tests (1)
Aspire.Hosting.Tests (16)
Aspire.Playground.Tests (2)
Aspire.RabbitMQ.Client.Tests (1)
Aspire.Workload.Tests (6)
BinaryFormatTests (2)
Binding.Http.IntegrationTests (9)
BasicHttpBindingTests.4.0.0.cs (6)
43Assert.True(result == testString, String.Format("Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
83Assert.True(result, "Error: expected response from service: 'true' Actual was: 'false'");
127Assert.True(handlerCalled, "Error: expected client to call intercepting handler");
128Assert.True(result == testString, String.Format("Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
185Assert.True(result == substituteString, String.Format("Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
269Assert.True(userAgentHeaderSent, "User-Agent header should have been sent.");
Client.ChannelLayer.IntegrationTests (3)
Client.ClientBase.IntegrationTests (79)
ChannelBaseTests.4.0.0.cs (10)
41Assert.True(String.Equals(echoText, result),
90Assert.True(String.Equals(expected, actual),
94Assert.True(String.Equals(expected, actual),
144Assert.True(String.Equals(expected, actual),
148Assert.True(String.Equals(expected, actual),
195Assert.True(eventsCalled.Count == 0,
199Assert.True(proxyEventsCalled.Count == 0,
245Assert.True(CommunicationState.Closed == client.State,
249Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State,
253Assert.True(CommunicationState.Closed == factory.State,
ClientBaseTests.4.0.0.cs (46)
39Assert.True(property.SuppressEntityBody == false, "Expected SuppressEntityBody to be 'false'");
42Assert.True(property.Headers.Count > 0, "TestHttpRequestMessageProperty.Headers should not have empty headers");
86Assert.True(property.SuppressEntityBody == false, "Expected SuppressEntityBody to be 'false'");
89Assert.True(property.Headers.Count > 0, "TestHttpRequestMessageProperty.Headers should not have empty headers");
134Assert.True(data.BeforeSendRequestCalled, "BeforeSendRequest should have been called");
135Assert.True(data.Request != null, "Did not call pass Request to BeforeSendRequest");
136Assert.True(data.Channel != null, "Did not call pass Channel to BeforeSendRequest");
137Assert.True(data.AfterReceiveReplyCalled, "AfterReceiveReplyCalled should have been called");
138Assert.True(data.Reply != null, "Did not call pass Reply to AfterReceiveReplyCalled");
219Assert.True(CommunicationState.Created == client.State,
222Assert.True(CommunicationState.Created == factory.State,
241Assert.True(CommunicationState.Opened == client.State,
244Assert.True(CommunicationState.Opened == factory.State,
247Assert.True(CommunicationState.Opened == ((ICommunicationObject)serviceProxy).State,
256Assert.True(CommunicationState.Closed == client.State,
260Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State,
264Assert.True(CommunicationState.Closed == factory.State,
294Assert.True(CommunicationState.Created == client.State,
297Assert.True(CommunicationState.Created == factory.State,
317Assert.True(CommunicationState.Opened == client.State,
320Assert.True(CommunicationState.Opened == factory.State,
323Assert.True(CommunicationState.Opened == ((ICommunicationObject)serviceProxy).State,
333Assert.True(CommunicationState.Closed == client.State,
337Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State,
341Assert.True(CommunicationState.Closed == factory.State,
373Assert.True(CommunicationState.Created == client.State,
376Assert.True(CommunicationState.Created == factory.State,
396Assert.True(CommunicationState.Opened == client.State,
399Assert.True(CommunicationState.Opened == factory.State,
402Assert.True(CommunicationState.Opened == ((ICommunicationObject)serviceProxy).State,
412Assert.True(CommunicationState.Closed == client.State,
416Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State,
420Assert.True(CommunicationState.Closed == factory.State,
462Assert.True(CommunicationState.Closed == client.State,
466Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State,
470Assert.True(CommunicationState.Closed == factory.State,
513Assert.True(CommunicationState.Closed == client.State,
517Assert.True(CommunicationState.Closed == ((ICommunicationObject)serviceProxy).State,
521Assert.True(CommunicationState.Closed == factory.State,
565Assert.True(String.Equals(expected, actual),
569Assert.True(String.Equals(expected, actual),
619Assert.True(String.Equals(expected, actual),
623Assert.True(String.Equals(expected, actual),
668Assert.True(eventsCalled.Count == 0,
672Assert.True(proxyEventsCalled.Count == 0,
799Assert.True(string.Empty == outofScopeResult, string.Format("Expect call out of the OperationContextScope does not have the custom header {0}", customHeaderName));
ClientBaseTests.4.1.0.cs (10)
30Assert.True(cookieManager != null, "cookieManager was null.");
31Assert.True(cookieManager.CookieContainer != null, "cookieManager.CookieContainer was null.");
43Assert.True(cookieSentOut == cookieSentBack,
73Assert.True(cookieManager != null, "cookieManager was null.");
74Assert.True(cookieManager.CookieContainer != null, "cookieManager.CookieContainer was null.");
86Assert.True(cookies != null, "cookies was null.");
89Assert.True(cookie != null, "cookie was null.");
94Assert.True(timeReturned != null, "timeReturned != null");
95Assert.True(timeSetInCookie != null, "timeSetInCookie != null");
96Assert.True(timeReturned == timeSetInCookie,
MessageInspectorTests.4.4.0.cs (8)
47Assert.True(String.Equals(result1.Result, expectedErrorDescription), String.Format("Expected Error Description: {0}/Actual Error Description: {1}", expectedErrorDescription, result2.Result));
49Assert.True(returnedErrorCode.Equals(TestTypes.ErrorCode.UserNotAuthenticated), String.Format("Expected Error Code: {0}/nActual Error Code: {1}", TestTypes.ErrorCode.UserNotAuthenticated, returnedErrorCode));
50Assert.True(result1.HttpStatusCode.Equals(System.Net.HttpStatusCode.Unauthorized), String.Format("Expected HttpStatusCode: {0}/nActual HttpStatusCode: {1}", System.Net.HttpStatusCode.Unauthorized, result2.HttpStatusCode));
54Assert.True(String.Equals(result2.Result, expectedErrorDescription), String.Format("Expected Error Description: {0}/nActual Error Description: {1}", expectedErrorDescription, result2.Result));
56Assert.True(returnedErrorCode.Equals(TestTypes.ErrorCode.Ok), String.Format("Expected Error Code: {0}/nActual Error Code: {1}", TestTypes.ErrorCode.Ok, returnedErrorCode));
57Assert.True(result2.HttpStatusCode.Equals(System.Net.HttpStatusCode.OK), String.Format("Expected HttpStatusCode: {0}/nActual HttpStatusCode: {1}", System.Net.HttpStatusCode.OK, result2.HttpStatusCode));
96Assert.True(String.Equals(authorizationHeaderValue, accessToken), String.Format("Expected Authorization Header value: {0}/nActual Authorization Header value: {1}", accessToken, authorizationHeaderValue));
97Assert.True(String.Equals(authTypeHeaderValue, authType.ToString()), String.Format("Expected AuthType Header value: {0}/nActual AuthType Header value: {1}", authType.ToString(), authTypeHeaderValue));
Client.ExpectedExceptions.IntegrationTests (24)
ExpectedExceptionTests.4.0.0.cs (9)
49Assert.True(String.Equals(exception.Message, exceptionMsg), String.Format("Expected exception message: {0}\nActual exception message: {1}", exceptionMsg, exception.Message));
96Assert.True((watch.ElapsedMilliseconds >= lowRange && watch.ElapsedMilliseconds <= highRange),
143Assert.True((watch.ElapsedMilliseconds >= lowRange && watch.ElapsedMilliseconds <= highRange),
179Assert.True(String.Equals(exception.Detail.Message, faultMsg), String.Format("Expected fault message: {0}\nActual fault message: {1}", faultMsg, exception.Detail.Message));
214Assert.True(String.Equals(exception.Detail.Message, faultMsg), String.Format("Expected fault message: {0}\nActual fault message: {1}", faultMsg, exception.Detail.Message));
354Assert.True((String.Equals("test", results[i])),
363Assert.True(toe == null, String.Format("Task [{0}] should not have failed with TimeoutException", i));
367Assert.True(nFailures > 0,
379Assert.True(elapsedMs < expectedElapsedMs,
ExpectedExceptionTests.4.1.0.cs (15)
51Assert.True(exception.Message.Contains(nonExistentHost), string.Format("Expected exception message to contain: '{0}'\nThe exception message was: {1}", nonExistentHost, exception.Message));
110Assert.True(result == "Success!", string.Format("Test Case failed, expected the returned string to be: {0}, instead it was: {1}", "Success!", result));
184Assert.True(exception.Message.Contains(notFoundUrl), string.Format("Expected exception message to contain: '{0}'\nThe exception message was:{1}", notFoundUrl, exception.Message));
222Assert.True(exception.Message.Contains(protocolExceptionUri), string.Format("Expected exception message to contain: '{0}'\nThe exception was: '{1}'", protocolExceptionUri, exception.Message));
273Assert.True(String.Equals(exceptionCodeName, exception.Code.Name), String.Format("Expected exception code name: {0}\nActual exception code name: {1}", exceptionCodeName, exception.Code.Name));
274Assert.True(String.Equals(exceptionReason, exception.Reason.GetMatchingTranslation().Text), String.Format("Expected exception reason: {0}\nActual exception reason: {1}", exceptionReason, exception.Reason.GetMatchingTranslation().Text));
326Assert.True(String.Equals(exceptionCodeName, exception.Code.Name), String.Format("Expected exception code name: {0}\nActual exception code name: {1}", exceptionCodeName, exception.Code.Name));
327Assert.True(String.Equals(exceptionReason, exception.Reason.GetMatchingTranslation().Text), String.Format("Expected exception reason: {0}\nActual exception reason: {1}", exceptionReason, exception.Reason.GetMatchingTranslation().Text));
408Assert.True(exception.Message.Contains(Endpoints.Tcp_RevokedServerCertResource_HostName),
455Assert.True(exception.Message.Contains(Endpoints.Tcp_RevokedServerCertResource_HostName),
604Assert.True((String.Equals("test", results[i])),
613Assert.True(toe == null, String.Format("Task [{0}] should not have failed with TimeoutException", i));
617Assert.True(nFailures > 0,
621Assert.True(nFailures < operationCount,
631Assert.True(elapsedMs < expectedElapsedMs,
Client.TypedClient.IntegrationTests (21)
TypedProxyTests.4.0.0.cs (18)
75Assert.True(success, "Test Scenario: TypedProxy_AsyncBeginEnd_Call_WithSingleThreadedSyncContext timed out");
110Assert.True(success, "Test Scenario: TypedProxy_AsyncTask_Call_WithSingleThreadedSyncContext timed out");
139Assert.True(String.Equals(result, "Hello"), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello", result));
163Assert.True(success, "Test Scenario: TypedProxy_Synchronous_Call_WithSingleThreadedSyncContext timed out");
195Assert.True(startThread == Environment.CurrentManagedThreadId, String.Format("Expected continuation to happen on thread {0} but actually continued on thread {1}",
201Assert.True(success, String.Format("Test didn't complete within the expected time"));
202Assert.True(String.Equals(result, "Hello"), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello", result));
252Assert.True(String.Equals(replyMessageAction, action + "Response"),
261Assert.True(String.Equals(actualResponse, expectedResponse),
316Assert.True(String.Equals(replyMessageAction, action + "Response"),
325Assert.True(String.Equals(actualResponse, expectedResponse),
381Assert.True(String.Equals(replyMessageAction, action + "Response"),
390Assert.True(String.Equals(actualResponse, expectedResponse),
481Assert.True(success, String.Format("The AsyncCallback was not called. If the AsyncCallback had been called the waitEvent would have been set to 'True', but the value of waitEvent was: {0}", success));
482Assert.True(String.Equals(result, "Hello"), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello", result));
517Assert.True(success, String.Format("The IAsyncResult was not called. If the IAsyncResult had been called the AsyncWaitHandle would have been set to 'True', but the value of AsyncWaitHandle was: {0}", success));
523Assert.True(String.Equals(result, "Hello"), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello", result));
556Assert.True(String.Equals(result, "Hello"), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello", result));
Contract.Data.IntegrationTests (9)
DataContractTests.4.1.1.cs (4)
42Assert.True(manager.GetType() == (typeof(Manager)), string.Format("Expected type: {0}, Actual type: {1}", typeof(Manager), manager.GetType()));
43Assert.True(((Manager)manager).Name == "jone", string.Format("Expected Name: {0}, Actual Name: {1}", "jone", ((Manager)manager).Name));
44Assert.True(((Manager)manager).Age == "10", string.Format("Expected Age: {0}, Actual Age: {1}", "10", ((Manager)manager).Age));
45Assert.True(((Manager)manager).OfficeId == 1, string.Format("Expected Id: {0}, Actual Id: {1}", 1, ((Manager)manager).OfficeId));
Contract.Fault.IntegrationTests (11)
FaultExceptionTests.4.0.0.cs (7)
45Assert.True(String.Equals(exception.Detail.Message, faultMsg), String.Format("Expected Fault Message: {0}, actual: {1}", faultMsg, exception.Detail.Message));
79Assert.True(String.Equals(exception.Detail.Message, faultMsg), String.Format("Expected Fault Message: {0}, actual: {1}", faultMsg, exception.Detail.Message));
251Assert.True(input.Length == response.Length, String.Format("Expected {0} response items but actual was {1}", input.Length, response.Length));
252Assert.True(response[0] != null, "Expected response item to be FaultDetail, but actual was null");
253Assert.True(response[0].GetType() == typeof(FaultDetail), String.Format("Expected response item to be FaultDetail but actual was {0}", response[0].GetType()));
254Assert.True(response[1] != null, "Expected response item to be KnownTypeA, but actual was null");
255Assert.True(response[1].GetType() == typeof(KnownTypeA), String.Format("Expected response item to be FaultDetail2 but actual was {0}", response[1].GetType()));
FaultExceptionTests.cs (4)
42Assert.True(TestFaultContractInfosBehavior.testFaultWithKnownTypeClientOp != null, "Expected testFaultWithKnownTypeClientOp is NOT null");
43Assert.True(TestFaultContractInfosBehavior.testFaultWithKnownTypeClientOp.FaultContractInfos.Count == 1, string.Format("expected FaultContractInfos count is 1, actual: {0}", TestFaultContractInfosBehavior.testFaultWithKnownTypeClientOp.FaultContractInfos.Count));
44Assert.True(TestFaultContractInfosBehavior.testFaultWithKnownTypeClientOp.FaultContractInfos[0].Action == action, string.Format("expected FaultContractInfo Action is {0}, actual: {1}", action, TestFaultContractInfosBehavior.testFaultWithKnownTypeClientOp.FaultContractInfos[0].Action));
45Assert.True(TestFaultContractInfosBehavior.testFaultWithKnownTypeClientOp.FaultContractInfos[0].Detail == detail, string.Format("expected FaultContractInfo Detail is {0}, actual: {1}", detail.ToString(), TestFaultContractInfosBehavior.testFaultWithKnownTypeClientOp.FaultContractInfos[0].Detail.ToString()));
Contract.Message.IntegrationTests (21)
MessageContractTests.4.1.0.cs (11)
25Assert.True(reader.LocalName.Equals(wrapperName),
28Assert.True(reader.NamespaceURI.Equals(MessageContractConstants.wrapperNamespace),
58Assert.True(reader.LocalName.Equals(wrapperName),
63Assert.True(reader.LocalName.Equals(MessageContractConstants.dateElementName),
70Assert.True(reader.LocalName.Equals(MessageContractConstants.transactionElementName),
77Assert.True(reader.LocalName.Equals(MessageContractConstants.customerElementName),
85Assert.True(reader.IsStartElement() == false && reader.LocalName.Equals(wrapperName),
115Assert.True(elementFound,
133Assert.True(header != null, "There's no header in the message.");
134Assert.True(header.MustUnderstand, "Expected MustUnderstand to be true, but it was false.");
151Assert.True(header != null, "There's no header in the message.");
MessageContractTests.4.4.0.cs (8)
43Assert.True(String.Equals(requestData.accountName, replyData.accountName),
47Assert.True(requestData.amount == replyData.amount,
51Assert.True(String.Equals(requestData.requestSingleValue, replyData.replySingleValue),
71Assert.True(array2 != null,
74Assert.True(array1.Length == array2.Length,
80Assert.True(array1[i] == array2[i],
109Assert.True(response != null,
112Assert.True(String.Equals(testString, response.TestResult),
Contract.Service.IntegrationTests (45)
ServiceContractTests.4.0.0.cs (19)
49Assert.True(waitEvent.WaitOne(ScenarioTestHelpers.TestTimeout), "AsyncCallback was not called.");
50Assert.True((number == message.Count<char>()), String.Format("The local int variable was not correctly set, expected {0} but got {1}", message.Count<char>(), number));
96Assert.True(waitEvent.WaitOne(ScenarioTestHelpers.TestTimeout), "AsyncCallback was not called.");
97Assert.True((uniqueType.stringValue == message),
142Assert.True(waitEvent.WaitOne(ScenarioTestHelpers.TestTimeout), "AsyncCallback was not called.");
143Assert.True((number == message.Count<char>()),
190Assert.True(waitEvent.WaitOne(ScenarioTestHelpers.TestTimeout), "AsyncCallback was not called.");
191Assert.True((uniqueType.stringValue == message),
229Assert.True((uniqueType.stringValue == message),
237Assert.True((uniqueType.stringValue == message),
275Assert.True((uniqueType.stringValue == message),
311Assert.True(factory.State == CommunicationState.Opened,
339Assert.True(success, "Test Scenario: BasicHttp_Async_Open_ChannelFactory_WithSingleThreadedSyncContext timed-out.");
365Assert.True(proxyAsCommunicationObject.State == CommunicationState.Opened,
392Assert.True(success, "Test Scenario: BasicHttp_Async_Open_Proxy_WithSingleThreadedSyncContext timed-out.");
420Assert.True(factory.State == CommunicationState.Closed,
443Assert.True(success, "Test Scenario: BasicHttp_Async_Close_ChannelFactory_WithSingleThreadedSyncContext timed-out.");
469Assert.True(proxyAsCommunicationObject.State == CommunicationState.Closed,
493Assert.True(success, "Test Scenario: BasicHttp_Async_Close_Proxy_WithSingleThreadedSyncContext timed-out.");
ServiceContractTests.4.1.0.cs (26)
213Assert.True(success, "Test Scenario: BasicHttp_DefaultSettings_Echo_RoundTrips_String_Streamed_WithSingleThreadedSyncContext timed-out.");
227Assert.True(success, "Test Scenario: BasicHttp_DefaultSettings_Echo_RoundTrips_String_Streamed_Async_WithSingleThreadedSyncContext timed-out.");
617Assert.True(success, "Test Scenario: NetTcp_NoSecurity_String_Streamed_RoundTrips_WithSingleThreadedSyncContext timed-out.");
631Assert.True(success, "Test Scenario: NetTcp_NoSecurity_Streamed_Async_RoundTrips_String_WithSingleThreadedSyncContext timed-out.");
657Assert.True(string.Equals(result, "Hello " + echoString), String.Format("Expected response from Service: {0} Actual was: {1}", "Hello " + echoString, result));
702Assert.True(factory.State == CommunicationState.Closed,
733Assert.True(exception1 != null || actualEcho1 != null, "First operation should have thrown Exception or returned an echo");
734Assert.True(exception2 != null || actualEcho2 != null, "Second operation should have thrown Exception or returned an echo");
736Assert.True(actualEcho1 == null || String.Equals(expectedEcho1, actualEcho1),
739Assert.True(actualEcho2 == null || String.Equals(expectedEcho2, actualEcho2),
742Assert.True(((ICommunicationObject)serviceProxy1).State == CommunicationState.Closed,
744Assert.True(((ICommunicationObject)serviceProxy2).State == CommunicationState.Closed,
792Assert.True(factory.State == CommunicationState.Closed,
823Assert.True(exception1 != null || actualEcho1 != null, "First operation should have thrown Exception or returned an echo");
824Assert.True(exception2 != null || actualEcho2!= null, "Second operation should have thrown Exception or returned an echo");
826Assert.True(actualEcho1 == null || String.Equals(expectedEcho1, actualEcho1),
829Assert.True(actualEcho2 == null || String.Equals(expectedEcho2, actualEcho2),
832Assert.True(((ICommunicationObject)serviceProxy1).State == CommunicationState.Closed,
834Assert.True(((ICommunicationObject)serviceProxy2).State == CommunicationState.Closed,
883Assert.True(factory.State == CommunicationState.Closed,
914Assert.True(exception1 != null || actualEcho1 != null, "First operation should have thrown Exception or returned an echo");
915Assert.True(exception2 != null || actualEcho2 != null, "Second operation should have thrown Exception or returned an echo");
917Assert.True(actualEcho1 == null || String.Equals(expectedEcho1, actualEcho1),
920Assert.True(actualEcho2 == null || String.Equals(expectedEcho2, actualEcho2),
923Assert.True(((ICommunicationObject)serviceProxy1).State == CommunicationState.Closed,
925Assert.True(((ICommunicationObject)serviceProxy2).State == CommunicationState.Closed,
Contract.XmlSerializer.IntegrationTests (4)
dotnet-svcutil.xmlserializer.IntegrationTests (5)
dotnet-svcutil-lib.Tests (36)
TestInit.cs (18)
155Assert.True(Directory.Exists(g_RepositoryRoot), $"{nameof(g_RepositoryRoot)} is not initialized!");
156Assert.True(Directory.Exists(g_TestCasesDir), $"{nameof(g_TestCasesDir)} is not initialized!");
157Assert.True(Directory.Exists(g_TestResultsDir), $"{nameof(g_TestResultsDir)} is not initialized!");
158Assert.True(Directory.Exists(g_TestBootstrapDir), $"{nameof(g_TestBootstrapDir)} is not initialized!");
159Assert.True(Directory.Exists(g_TestOutputDir), $"{nameof(g_TestOutputDir)} is not initialized!");
160Assert.True(Directory.Exists(g_BaselinesDir), $"{nameof(g_BaselinesDir)} is not initialized!");
167Assert.True(File.Exists(g_StarterProject.FullPath), $"{nameof(g_StarterProject)} is not initialized!");
184Assert.True(Directory.GetFiles(pkgPath, "dotnet-svcutil-lib.*.nupkg").Any(), $"dotnet-svcutil-lib*.nupkg not found under {pkgPath}!");
277Assert.True(Directory.Exists(this_TestCaseOutputDir), $"{nameof(this_TestGroupOutputDir)} is not initialized!");
278Assert.True(Directory.Exists(this_TestCaseBaselinesDir), $"{nameof(this_TestCaseBaselinesDir)} is not initialized!");
279Assert.True(this_TestCaseBootstrapDir != null, $"{nameof(this_TestCaseBootstrapDir)} is not initialized!");
280Assert.True(this_TestCaseLogger != null, $"{nameof(this_TestGroupOutputDir)} is not initialized!");
281Assert.True(this_FixupUtil != null, $"{nameof(this_FixupUtil)} is not initialized!");
337Assert.True(isTestSucess, $"{Environment.NewLine}Test failed:{Environment.NewLine}{outputText}{g_GeneralErrMsg}");
343Assert.True(validationSuccess, $"{Environment.NewLine}Test failed validation!{failureMessage}{g_GeneralErrMsg}");
540Assert.True(Directory.Exists(vstestDir), $"{nameof(vstestDir)} is not initialized!");
551Assert.True(nugetFiles.Length <= 1, "There should be one and only one nuget package for testing.");
590Assert.True(rootSolutionFolder != null && File.Exists(rootSolutionFolder), $"Unable to find dotnet-svcutil.sln file, current dir: {parentDir}");
Encoding.Encoders.IntegrationTests (3)
Encoding.MessageVersion.IntegrationTests (7)
MessageVersionTests.cs (5)
39Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
75Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
111Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
147Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
183Assert.True(String.Equals(result, testString), String.Format(" Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
Extensibility.MessageEncoder.IntegrationTests (2)
Extensibility.WebSockets.IntegrationTests (29)
WebSocketTests.4.1.0.cs (29)
76Assert.True(clientReceiver.ReceiveStreamInvoked.WaitOne(ScenarioTestHelpers.TestTimeout),
88Assert.True(clientReceiver.ReceiveStreamCompleted.WaitOne(ScenarioTestHelpers.TestTimeout),
94Assert.True(clientReceiver.LogReceived.WaitOne(ScenarioTestHelpers.TestTimeout),
98Assert.True(clientReceiver.ServerLog.Count > 0,
151Assert.True(clientReceiver.ReceiveDataInvoked.WaitOne(ScenarioTestHelpers.TestTimeout),
156Assert.True(clientReceiver.ReceiveDataCompleted.WaitOne(ScenarioTestHelpers.TestTimeout),
162Assert.True(clientReceiver.LogReceived.WaitOne(ScenarioTestHelpers.TestTimeout),
166Assert.True(clientReceiver.ServerLog.Count > 0,
219Assert.True(clientReceiver.ReceiveDataInvoked.WaitOne(ScenarioTestHelpers.TestTimeout),
224Assert.True(clientReceiver.ReceiveDataCompleted.WaitOne(ScenarioTestHelpers.TestTimeout),
230Assert.True(clientReceiver.LogReceived.WaitOne(ScenarioTestHelpers.TestTimeout),
234Assert.True(clientReceiver.ServerLog.Count > 0,
308Assert.True(clientReceiver.ReceiveStreamInvoked.WaitOne(ScenarioTestHelpers.TestTimeout),
320Assert.True(clientReceiver.ReceiveStreamCompleted.WaitOne(ScenarioTestHelpers.TestTimeout),
326Assert.True(clientReceiver.LogReceived.WaitOne(ScenarioTestHelpers.TestTimeout),
330Assert.True(clientReceiver.ServerLog.Count > 0,
386Assert.True(clientReceiver.ReceiveDataInvoked.WaitOne(ScenarioTestHelpers.TestTimeout),
391Assert.True(clientReceiver.ReceiveDataCompleted.WaitOne(ScenarioTestHelpers.TestTimeout),
397Assert.True(clientReceiver.LogReceived.WaitOne(ScenarioTestHelpers.TestTimeout),
401Assert.True(clientReceiver.ServerLog.Count > 0,
467Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
521Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
575Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
630Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
687Assert.True(!ScenarioTestHelpers.IsLocalHost() || !serverLogItem.Contains(ScenarioTestHelpers.RemoteEndpointMessagePropertyFailure), serverLogItem);
728Assert.True(guid == returnedGuid, string.Format("The sent GUID does not match the returned GUID. Sent '{0}', Received: '{1}'", guid, returnedGuid));
768Assert.True(guid == returnedGuid, string.Format("The sent GUID does not match the returned GUID. Sent '{0}', Received: '{1}'", guid, returnedGuid));
811Assert.True(guid == returnedGuid,
851Assert.True(responseFromService, String.Format("Response from the service was not expected. Expected: 'True' but got {0}", responseFromService));
IIS.Common.TestLib (1)
IIS.FunctionalTests (9)
IIS.LongTests (5)
IIS.NewHandler.FunctionalTests (5)
IIS.NewShim.FunctionalTests (5)
IIS.ShadowCopy.Tests (5)
IIS.Tests (8)
TlsHandshakeFeatureTests.cs (8)
33Assert.True(protocol > SslProtocols.None, "Protocol: " + protocol);
34Assert.True(Enum.IsDefined(typeof(SslProtocols), protocol), "Defined: " + protocol); // Mapping is required, make sure it's current
38Assert.True(cipherAlgorithm > CipherAlgorithmType.Null, "Cipher: " + cipherAlgorithm);
41Assert.True(cipherStrength > 0, "CipherStrength: " + cipherStrength);
44Assert.True(hashAlgorithm >= HashAlgorithmType.None, "HashAlgorithm: " + hashAlgorithm);
47Assert.True(hashStrength >= 0, "HashStrength: " + hashStrength); // May be 0 for some algorithms
50Assert.True(keyExchangeAlgorithm >= ExchangeAlgorithmType.None, "KeyExchangeAlgorithm: " + keyExchangeAlgorithm);
53Assert.True(keyExchangeStrength >= 0, "KeyExchangeStrength: " + keyExchangeStrength);
IISExpress.FunctionalTests (10)
Infrastructure.IntegrationTests (4)
InMemory.FunctionalTests (49)
ChunkedRequestTests.cs (18)
241Assert.True(request.SupportsTrailers(), "SupportsTrailers");
248Assert.True(request.SupportsTrailers(), "SupportsTrailers");
256Assert.True(request.SupportsTrailers(), "SupportsTrailers");
271Assert.True(request.SupportsTrailers(), "SupportsTrailers");
272Assert.True(request.CheckTrailersAvailable(), "CheckTrailersAvailable");
279Assert.True(request.SupportsTrailers(), "SupportsTrailers");
280Assert.True(request.CheckTrailersAvailable(), "CheckTrailersAvailable");
287Assert.True(request.SupportsTrailers(), "SupportsTrailers");
288Assert.True(request.CheckTrailersAvailable(), "CheckTrailersAvailable");
367Assert.True(request.SupportsTrailers(), "SupportsTrailers");
374Assert.True(request.SupportsTrailers(), "SupportsTrailers");
382Assert.True(request.SupportsTrailers(), "SupportsTrailers");
402Assert.True(request.SupportsTrailers(), "SupportsTrailers");
403Assert.True(request.CheckTrailersAvailable(), "CheckTrailersAvailable");
410Assert.True(request.SupportsTrailers(), "SupportsTrailers");
411Assert.True(request.CheckTrailersAvailable(), "CheckTrailersAvailable");
418Assert.True(request.SupportsTrailers(), "SupportsTrailers");
419Assert.True(request.CheckTrailersAvailable(), "CheckTrailersAvailable");
HttpsConnectionMiddlewareTests.cs (15)
148Assert.True(tlsFeature.Protocol > SslProtocols.None, "Protocol");
149Assert.True(tlsFeature.NegotiatedCipherSuite >= TlsCipherSuite.TLS_NULL_WITH_NULL_NULL, "NegotiatedCipherSuite");
151Assert.True(tlsFeature.CipherAlgorithm > CipherAlgorithmType.Null, "Cipher");
152Assert.True(tlsFeature.CipherStrength > 0, "CipherStrength");
153Assert.True(tlsFeature.HashAlgorithm >= HashAlgorithmType.None, "HashAlgorithm"); // May be None on Linux.
154Assert.True(tlsFeature.HashStrength >= 0, "HashStrength"); // May be 0 for some algorithms
155Assert.True(tlsFeature.KeyExchangeAlgorithm >= ExchangeAlgorithmType.None, "KeyExchangeAlgorithm"); // Maybe None on Windows 7
156Assert.True(tlsFeature.KeyExchangeStrength >= 0, "KeyExchangeStrength"); // May be 0 on mac
187Assert.True(tlsFeature.Protocol > SslProtocols.None, "Protocol");
189Assert.True(tlsFeature.CipherAlgorithm > CipherAlgorithmType.Null, "Cipher");
190Assert.True(tlsFeature.CipherStrength > 0, "CipherStrength");
191Assert.True(tlsFeature.HashAlgorithm >= HashAlgorithmType.None, "HashAlgorithm"); // May be None on Linux.
192Assert.True(tlsFeature.HashStrength >= 0, "HashStrength"); // May be 0 for some algorithms
193Assert.True(tlsFeature.KeyExchangeAlgorithm >= ExchangeAlgorithmType.None, "KeyExchangeAlgorithm"); // Maybe None on Windows 7
194Assert.True(tlsFeature.KeyExchangeStrength >= 0, "KeyExchangeStrength"); // May be 0 on mac
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
809Assert.True(
InteractiveHost.UnitTests (8)
InteractiveHostDesktopTests.cs (7)
206Assert.True(errorOut.StartsWith(file + "(1,3):", StringComparison.Ordinal), "Error output should start with file name, line and column");
207Assert.True(errorOut.Contains("CS1002"), "Error output should include error CS1002");
262Assert.True(errorOut.StartsWith(typeof(Process).Assembly.Location + "(1,3):", StringComparison.Ordinal), "Error output should start with file name, line and column");
263Assert.True(errorOut.Contains("CS1056"), "Error output should include error CS1056");
264Assert.True(errorOut.Contains("CS1002"), "Error output should include error CS1002");
275Assert.True(errorOut.StartsWith(file.Path + "(1,7):", StringComparison.Ordinal), "Error output should start with file name, line and column");
276Assert.True(errorOut.Contains("CS7010"), "Error output should include error CS7010");
Interop.FunctionalTests (4)
Microsoft.Analyzers.Extra.Tests (2)
Microsoft.Analyzers.Local.Tests (2)
Microsoft.Arcade.Test.Common (8)
AssertEx.cs (8)
156Assert.True((actual == null) == expected.IsDefault, message);
168Assert.True((expected == null) == actual.IsDefault, message);
253Assert.True(result, message);
260Assert.True(expectedSet.SetEquals(actual), string.Format("Expected: {0}\nActual: {1}", ToString(expected), ToString(actual)));
268Assert.True(none, string.Format(
278Assert.True(any, string.Format("No expected item was found.\nExisting items: {0}", ToString(actual)));
286Assert.True(all, string.Format(
319Assert.True(AssertEqualityComparer<T>.IsNull(@object), message);
Microsoft.AspNetCore.App.Analyzers.Test (8)
Microsoft.AspNetCore.App.UnitTests (15)
SharedFxTests.cs (6)
138Assert.True(Version.TryParse(assemblyVersion, out _), $"{assemblyVersion} should deserialize to System.Version");
141Assert.True(Version.TryParse(fileVersion, out _), $"{fileVersion} should deserialize to System.Version");
151Assert.True(Version.TryParse(fileVersion, out _), $"{fileVersion} should deserialize to System.Version");
201Assert.True(expectedVersion.Major == assemblyDefinition.Version.Major ||
308Assert.True(Version.TryParse(assemblyVersion, out _), $"{assemblyPath} has assembly version {assemblyVersion}. Assembly version must be convertable to System.Version");
311Assert.True(Version.TryParse(fileVersion, out _), $"{assemblyPath} has file version {fileVersion}. File version must be convertable to System.Version");
TargetingPackTests.cs (9)
98Assert.True(expectedVersion.Major == assemblyDefinition.Version.Major ||
127Assert.True(result, $"In {Path.GetFileName(path)}, {reference.GetAssemblyName()} has unexpected version {reference.Version}.");
151Assert.True(
160Assert.True(
213Assert.True(hasRefAssemblyAttribute, $"{path} should have {nameof(ReferenceAssemblyAttribute)}");
282Assert.True(Version.TryParse(parts[2], out _), "Assembly version must be convertable to System.Version");
284Assert.True(Version.TryParse(parts[3], out _), "File version must be convertable to System.Version");
350Assert.True(Version.TryParse(assemblyVersion, out _), $"{assemblyPath} has assembly version {assemblyVersion}. Assembly version must be convertable to System.Version");
351Assert.True(Version.TryParse(fileVersion, out _), $"{assemblyPath} has file version {fileVersion}. File version must be convertable to System.Version");
Microsoft.AspNetCore.Authentication.Negotiate.Test (5)
Microsoft.AspNetCore.Authentication.Test (21)
Microsoft.AspNetCore.Components.Analyzers.Tests (2)
Microsoft.AspNetCore.Components.Endpoints.Tests (1)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (2)
Microsoft.AspNetCore.Components.Server.Tests (3)
Microsoft.AspNetCore.Components.Tests (37)
Rendering\RendererSynchronizationContextTest.cs (32)
34Assert.True(e.Wait(Timeout), "timeout");
80Assert.True(e2.Wait(Timeout), "timeout");
84Assert.True(e1.Wait(Timeout), "timeout");
99Assert.True(e3.Wait(Timeout), "timeout");
124Assert.True(e2.Wait(Timeout), "timeout");
128Assert.True(e1.Wait(Timeout), "timeout");
153Assert.True(e3.Wait(Timeout), "timeout");
178Assert.True(e2.Wait(Timeout), "timeout");
182Assert.True(e1.Wait(Timeout), "timeout");
218Assert.True(e2.Wait(Timeout), "timeout");
221Assert.True(e1.Wait(Timeout), "timeout");
228Assert.True(e4.Wait(Timeout), "timeout");
236Assert.True(e3.Wait(Timeout), "timeout");
257Assert.True(e5.Wait(Timeout), "timeout");
258Assert.True(e6.Wait(Timeout), "timeout");
286Assert.True(e1.Wait(Timeout), "timeout");
339Assert.True(e2.Wait(Timeout), "timeout");
343Assert.True(e1.Wait(Timeout), "timeout");
358Assert.True(e3.Wait(Timeout), "timeout");
395Assert.True(e1.Wait(Timeout), "timeout");
436Assert.True(e2.Wait(Timeout), "timeout");
440Assert.True(e1.Wait(Timeout), "timeout");
454Assert.True(e3.Wait(Timeout), "timeout");
525Assert.True(e2.Wait(Timeout), "timeout");
529Assert.True(e1.Wait(Timeout), "timeout");
543Assert.True(e3.Wait(Timeout), "timeout");
617Assert.True(e2.Wait(Timeout), "timeout");
621Assert.True(e1.Wait(Timeout), "timeout");
636Assert.True(e3.Wait(Timeout), "timeout");
707Assert.True(e2.Wait(Timeout), "timeout");
711Assert.True(e1.Wait(Timeout), "timeout");
725Assert.True(e3.Wait(Timeout), "timeout");
Microsoft.AspNetCore.Cors.Test (1)
Microsoft.AspNetCore.DataProtection.Extensions.Tests (1)
Microsoft.AspNetCore.DataProtection.Tests (4)
Microsoft.AspNetCore.Http.Connections.Tests (1)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
Microsoft.AspNetCore.Http.Microbenchmarks (1)
Microsoft.AspNetCore.Http.Results.Tests (1)
Microsoft.AspNetCore.Http.Tests (1)
Microsoft.AspNetCore.InternalTesting (1)
Microsoft.AspNetCore.InternalTesting.Tests (17)
AssemblyTestLogTests.cs (10)
67Assert.True(File.Exists(globalLogPath), $"Expected global log file {globalLogPath} to exist.");
68Assert.True(File.Exists(testLog), $"Expected test log file {testLog} to exist.");
160Assert.True(File.Exists(globalLogPath), $"Expected global log file {globalLogPath} to exist");
161Assert.True(File.Exists(testLog), $"Expected test log file {testLog} to exist");
215Assert.True(File.Exists(globalLogPath), $"Expected global log file {globalLogPath} to exist.");
216Assert.True(File.Exists(testLog), $"Expected test log file {testLog} to exist.");
221Assert.True(!File.Exists(globalLogPath), $"Expected no global log file {globalLogPath} to exist.");
222Assert.True(!File.Exists(testLog), $"Expected no test log file {testLog} to exist.");
266Assert.True(File.Exists(globalLogPath), $"Expected global log file {globalLogPath} to exist.");
267Assert.True(File.Exists(testLog), $"Expected test log file {testLog} to exist.");
Microsoft.AspNetCore.JsonPatch.Tests (31)
Internal\DictionaryAdapterTest.cs (12)
32Assert.True(string.IsNullOrEmpty(message), "Expected no error message");
52Assert.True(string.IsNullOrEmpty(message), "Expected no error message");
71Assert.True(string.IsNullOrEmpty(message), "Expected no error message");
99Assert.True(string.IsNullOrEmpty(message), "Expected no error message");
126Assert.True(string.IsNullOrEmpty(message), "Expected no error message");
135Assert.True(string.IsNullOrEmpty(message), "Expected no error message");
154Assert.True(string.IsNullOrEmpty(message), "Expected no error message");
174Assert.True(string.IsNullOrEmpty(message), "Expected no error message");
252Assert.True(string.IsNullOrEmpty(message), "Expected no error message");
272Assert.True(string.IsNullOrEmpty(message), "Expected no error message");
291Assert.True(string.IsNullOrEmpty(message), "Expected no error message");
316Assert.True(string.IsNullOrEmpty(message), "Expected no error message");
Microsoft.AspNetCore.Mvc.Core.Test (11)
DependencyInjection\MvcCoreServiceCollectionExtensionsTest.cs (1)
346Assert.True(
Microsoft.AspNetCore.Mvc.Cors.Test (2)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (8)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (1)
Microsoft.AspNetCore.Mvc.Test (1)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.Owin.Tests (2)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (41)
HttpsTests.cs (8)
165Assert.True(protocol > SslProtocols.None, "Protocol: " + protocol);
166Assert.True(Enum.IsDefined(typeof(SslProtocols), protocol), "Defined: " + protocol); // Mapping is required, make sure it's current
170Assert.True(cipherAlgorithm > CipherAlgorithmType.Null, "Cipher: " + cipherAlgorithm);
174Assert.True(cipherStrength > 0, "CipherStrength: " + cipherStrength);
178Assert.True(hashAlgorithm >= HashAlgorithmType.None, "HashAlgorithm: " + hashAlgorithm);
182Assert.True(hashStrength >= 0, "HashStrength: " + hashStrength); // May be 0 for some algorithms
186Assert.True(keyExchangeAlgorithm >= ExchangeAlgorithmType.None, "KeyExchangeAlgorithm: " + keyExchangeAlgorithm);
190Assert.True(keyExchangeStrength >= 0, "KeyExchangeStrength: " + keyExchangeStrength);
ResponseBodyTests.cs (10)
37Assert.True(response.Headers.TransferEncodingChunked.HasValue, "Chunked");
124Assert.True(response.Headers.TransferEncodingChunked.HasValue, "Chunked");
156Assert.True(response.Headers.TransferEncodingChunked.HasValue, "Chunked");
181Assert.True(response.Headers.TransferEncodingChunked.Value, "Chunked");
203Assert.True(response.Headers.TransferEncodingChunked.Value, "Chunked");
226Assert.True(response.Content.Headers.TryGetValues("content-length", out contentLength), "Content-Length");
306Assert.True(response.Content.Headers.TryGetValues("content-length", out contentLength), "Content-Length");
339Assert.True(response.Headers.TransferEncodingChunked.HasValue, "Chunked");
367Assert.True(response.Headers.TransferEncodingChunked.HasValue, "Chunked");
394Assert.True(response.Headers.TransferEncodingChunked.HasValue, "Chunked");
ResponseSendFileTests.cs (7)
33Assert.True(FileLength > 0, "FileLength is 0");
75Assert.True(response.Headers.TransferEncodingChunked.Value, "Chunked");
94Assert.True(response.Headers.TransferEncodingChunked.Value, "Chunked");
228Assert.True(response.Content.Headers.TryGetValues("content-length", out contentLength), "Content-Length");
249Assert.True(response.Content.Headers.TryGetValues("content-length", out contentLength), "Content-Length");
270Assert.True(response.Content.Headers.TryGetValues("content-length", out contentLength), "Content-Length");
300Assert.True(response.Headers.TransferEncodingChunked.HasValue, "Chunked");
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (6)
src\Servers\Kestrel\shared\test\CertificateAuthority.cs (1)
809Assert.True(
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (2)
Microsoft.AspNetCore.Shared.Tests (2)
Microsoft.AspNetCore.SignalR.Client.Tests (3)
Microsoft.AspNetCore.SignalR.Common.Tests (1)
Microsoft.AspNetCore.StaticFiles.FunctionalTests (1)
Microsoft.AspNetCore.StaticFiles.Tests (1)
Microsoft.AspNetCore.Tests (1)
Microsoft.AspNetCore.WebSockets.ConformanceTests (2)
Microsoft.AspNetCore.WebSockets.Tests (9)
Microsoft.AspNetCore.WebUtilities.Tests (2)
Microsoft.Build.BuildCheck.UnitTests (1)
Microsoft.Build.CommandLine.UnitTests (1)
Microsoft.Build.Engine.UnitTests (21)
BackEnd\BinaryTranslator_Tests.cs (5)
193Assert.True(TranslationHelpers.CompareExceptions(value, deserializedValue, out string diffReason), diffReason);
215Assert.True(TranslationHelpers.CompareExceptions(value, deserializedValue, out string diffReason), diffReason);
244Assert.True(TranslationHelpers.CompareExceptions(value, deserializedValue, out string diffReason), diffReason);
283Assert.True(TranslationHelpers.CompareExceptions(remote, deserializedValue, out string diffReason, true), $"Exception type {exceptionType.FullName} not properly de/serialized: {diffReason}");
304Assert.True(TranslationHelpers.CompareExceptions(value, deserializedValue, out string diffReason, true), diffReason);
Microsoft.Build.Tasks.CodeAnalysis.UnitTests (2)
Microsoft.Build.Tasks.UnitTests (7)
Microsoft.Build.UnitTests.Shared (7)
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (2)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (29)
Workspaces\WorkspaceTests_EditorFeatures.cs (18)
289Assert.True(snapshot.GetProject(id1).ProjectReferences.Contains(reference), "ProjectReferences did not contain project2");
708Assert.True(syntaxTree.GetRoot().Width() > 0, "syntaxTree.GetRoot().Width should be > 0");
807(sender, args) => Assert.True(args.Document.Id == document.Id,
811(sender, args) => Assert.True(args.Document.Id == document.Id,
824Assert.True(openWaiter.WaitForEventToFire(longEventTimeout),
828Assert.True(closeWaiter.WaitForEventToFire(longEventTimeout),
873(sender, args) => Assert.True(args.Document.Id == document.Id,
877(sender, args) => Assert.True(args.Document.Id == document.Id,
893Assert.True(openWaiter.WaitForEventToFire(longEventTimeout),
897Assert.True(closeWaiter.WaitForEventToFire(longEventTimeout),
937(sender, args) => Assert.True(args.Document.Id == document.Id,
941(sender, args) => Assert.True(args.Document.Id == document.Id,
954Assert.True(openWaiter.WaitForEventToFire(longEventTimeout),
958Assert.True(closeWaiter.WaitForEventToFire(longEventTimeout),
998(sender, args) => Assert.True(args.Document.Id == document.Id,
1002(sender, args) => Assert.True(args.Document.Id == document.Id,
1015Assert.True(openWaiter.WaitForEventToFire(longEventTimeout),
1019Assert.True(closeWaiter.WaitForEventToFire(longEventTimeout),
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (23)
Emit\CompilationEmitTests.cs (16)
220Assert.True(mdOnlyImage.Length > 0, "no metadata emitted");
243Assert.True(output.ToArray().Length > 0, "no metadata emitted");
278Assert.True(mdOnlyImage.Length > 0, "no metadata emitted");
324Assert.True(mdOnlyImage.Length > 0, "no metadata emitted");
377Assert.True(mdOnlyImage.Length > 0, "no metadata emitted");
431Assert.True(mdOnlyImage.Length > 0, "no metadata emitted");
484Assert.True(mdOnlyImage.Length > 0, "no metadata emitted");
533Assert.True(mdOnlyImage.Length > 0, "no metadata emitted");
2714Assert.True(dllImage.Length > 0, "no metadata emitted");
2736Assert.True(symbolsSynthesizedCount > 0, "Expected more than 0 synthesized method symbols.");
2768Assert.True(output.Length > 0, "no metadata emitted");
4639Assert.True(result.Success, "Compilation failed");
4642Assert.True(File.Exists(dllPath), "DLL does not exist");
4643Assert.True(File.Exists(pdbPath), "PDB does not exist");
5150Assert.True(firstMatch >= 0, "Couldn't find the expected byte pattern in the output.");
5152Assert.True(secondMatch < 0, "Expected to find just one occurrence of the pattern in the output.");
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (16)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Scripting.Desktop.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (9)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (14)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (58)
Compilation\GetSemanticInfoTests.cs (17)
4943Assert.True(symbolInfo.IsDefined, "must be defined");
4947Assert.True(symbolInfo.IsDefined, "must be defined");
4951Assert.True(symbolInfo.IsDefined, "must be defined");
4955Assert.True(symbolInfo.IsDefined, "must be defined");
5041Assert.True(symbolInfo.IsDefined, "must be defined");
5057Assert.True(symbolInfo.IsDefined, "must be defined");
5073Assert.True(symbolInfo.IsDefined, "must be defined");
5089Assert.True(symbolInfo.IsDefined, "must be defined");
5122Assert.True(symbolInfo.IsDefined, "must be defined");
5139Assert.True(symbolInfo.IsDefined, "must be defined");
5188Assert.True(symbolInfo.IsDefined, "must be defined");
5205Assert.True(symbolInfo.IsDefined, "must be defined");
5222Assert.True(symbolInfo.IsDefined, "must be defined");
5303Assert.True(symbolInfo.IsDefined, "must be defined");
5320Assert.True(symbolInfo.IsDefined, "must be defined");
5939Assert.True(exceptionThrown, $"{nameof(comp.GetSpecialType)} did not throw when it should have.");
5962Assert.True(exceptionThrown, $"{nameof(comp.GetSpecialType)} did not throw when it should have.");
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (266)
Generated\Syntax.Test.xml.Generated.cs (244)
14109Assert.True(newNode.IsMissing, "No tokens => missing");
14135Assert.True(newNode.IsMissing, "No tokens => missing");
14161Assert.True(newNode.IsMissing, "No tokens => missing");
14187Assert.True(newNode.IsMissing, "No tokens => missing");
14213Assert.True(newNode.IsMissing, "No tokens => missing");
14239Assert.True(newNode.IsMissing, "No tokens => missing");
14265Assert.True(newNode.IsMissing, "No tokens => missing");
14291Assert.True(newNode.IsMissing, "No tokens => missing");
14317Assert.True(newNode.IsMissing, "No tokens => missing");
14343Assert.True(newNode.IsMissing, "No tokens => missing");
14369Assert.True(newNode.IsMissing, "No tokens => missing");
14395Assert.True(newNode.IsMissing, "No tokens => missing");
14421Assert.True(newNode.IsMissing, "No tokens => missing");
14447Assert.True(newNode.IsMissing, "No tokens => missing");
14473Assert.True(newNode.IsMissing, "No tokens => missing");
14499Assert.True(newNode.IsMissing, "No tokens => missing");
14525Assert.True(newNode.IsMissing, "No tokens => missing");
14551Assert.True(newNode.IsMissing, "No tokens => missing");
14577Assert.True(newNode.IsMissing, "No tokens => missing");
14603Assert.True(newNode.IsMissing, "No tokens => missing");
14629Assert.True(newNode.IsMissing, "No tokens => missing");
14655Assert.True(newNode.IsMissing, "No tokens => missing");
14681Assert.True(newNode.IsMissing, "No tokens => missing");
14707Assert.True(newNode.IsMissing, "No tokens => missing");
14733Assert.True(newNode.IsMissing, "No tokens => missing");
14759Assert.True(newNode.IsMissing, "No tokens => missing");
14785Assert.True(newNode.IsMissing, "No tokens => missing");
14811Assert.True(newNode.IsMissing, "No tokens => missing");
14837Assert.True(newNode.IsMissing, "No tokens => missing");
14863Assert.True(newNode.IsMissing, "No tokens => missing");
14889Assert.True(newNode.IsMissing, "No tokens => missing");
14915Assert.True(newNode.IsMissing, "No tokens => missing");
14941Assert.True(newNode.IsMissing, "No tokens => missing");
14967Assert.True(newNode.IsMissing, "No tokens => missing");
14993Assert.True(newNode.IsMissing, "No tokens => missing");
15019Assert.True(newNode.IsMissing, "No tokens => missing");
15045Assert.True(newNode.IsMissing, "No tokens => missing");
15071Assert.True(newNode.IsMissing, "No tokens => missing");
15097Assert.True(newNode.IsMissing, "No tokens => missing");
15123Assert.True(newNode.IsMissing, "No tokens => missing");
15149Assert.True(newNode.IsMissing, "No tokens => missing");
15175Assert.True(newNode.IsMissing, "No tokens => missing");
15201Assert.True(newNode.IsMissing, "No tokens => missing");
15227Assert.True(newNode.IsMissing, "No tokens => missing");
15253Assert.True(newNode.IsMissing, "No tokens => missing");
15279Assert.True(newNode.IsMissing, "No tokens => missing");
15305Assert.True(newNode.IsMissing, "No tokens => missing");
15331Assert.True(newNode.IsMissing, "No tokens => missing");
15357Assert.True(newNode.IsMissing, "No tokens => missing");
15383Assert.True(newNode.IsMissing, "No tokens => missing");
15409Assert.True(newNode.IsMissing, "No tokens => missing");
15435Assert.True(newNode.IsMissing, "No tokens => missing");
15461Assert.True(newNode.IsMissing, "No tokens => missing");
15487Assert.True(newNode.IsMissing, "No tokens => missing");
15513Assert.True(newNode.IsMissing, "No tokens => missing");
15539Assert.True(newNode.IsMissing, "No tokens => missing");
15565Assert.True(newNode.IsMissing, "No tokens => missing");
15591Assert.True(newNode.IsMissing, "No tokens => missing");
15617Assert.True(newNode.IsMissing, "No tokens => missing");
15643Assert.True(newNode.IsMissing, "No tokens => missing");
15669Assert.True(newNode.IsMissing, "No tokens => missing");
15695Assert.True(newNode.IsMissing, "No tokens => missing");
15721Assert.True(newNode.IsMissing, "No tokens => missing");
15747Assert.True(newNode.IsMissing, "No tokens => missing");
15773Assert.True(newNode.IsMissing, "No tokens => missing");
15799Assert.True(newNode.IsMissing, "No tokens => missing");
15825Assert.True(newNode.IsMissing, "No tokens => missing");
15851Assert.True(newNode.IsMissing, "No tokens => missing");
15877Assert.True(newNode.IsMissing, "No tokens => missing");
15903Assert.True(newNode.IsMissing, "No tokens => missing");
15929Assert.True(newNode.IsMissing, "No tokens => missing");
15955Assert.True(newNode.IsMissing, "No tokens => missing");
15981Assert.True(newNode.IsMissing, "No tokens => missing");
16007Assert.True(newNode.IsMissing, "No tokens => missing");
16033Assert.True(newNode.IsMissing, "No tokens => missing");
16059Assert.True(newNode.IsMissing, "No tokens => missing");
16085Assert.True(newNode.IsMissing, "No tokens => missing");
16111Assert.True(newNode.IsMissing, "No tokens => missing");
16137Assert.True(newNode.IsMissing, "No tokens => missing");
16163Assert.True(newNode.IsMissing, "No tokens => missing");
16189Assert.True(newNode.IsMissing, "No tokens => missing");
16215Assert.True(newNode.IsMissing, "No tokens => missing");
16241Assert.True(newNode.IsMissing, "No tokens => missing");
16267Assert.True(newNode.IsMissing, "No tokens => missing");
16293Assert.True(newNode.IsMissing, "No tokens => missing");
16319Assert.True(newNode.IsMissing, "No tokens => missing");
16345Assert.True(newNode.IsMissing, "No tokens => missing");
16371Assert.True(newNode.IsMissing, "No tokens => missing");
16397Assert.True(newNode.IsMissing, "No tokens => missing");
16423Assert.True(newNode.IsMissing, "No tokens => missing");
16449Assert.True(newNode.IsMissing, "No tokens => missing");
16475Assert.True(newNode.IsMissing, "No tokens => missing");
16501Assert.True(newNode.IsMissing, "No tokens => missing");
16527Assert.True(newNode.IsMissing, "No tokens => missing");
16553Assert.True(newNode.IsMissing, "No tokens => missing");
16579Assert.True(newNode.IsMissing, "No tokens => missing");
16605Assert.True(newNode.IsMissing, "No tokens => missing");
16631Assert.True(newNode.IsMissing, "No tokens => missing");
16657Assert.True(newNode.IsMissing, "No tokens => missing");
16683Assert.True(newNode.IsMissing, "No tokens => missing");
16709Assert.True(newNode.IsMissing, "No tokens => missing");
16735Assert.True(newNode.IsMissing, "No tokens => missing");
16761Assert.True(newNode.IsMissing, "No tokens => missing");
16787Assert.True(newNode.IsMissing, "No tokens => missing");
16813Assert.True(newNode.IsMissing, "No tokens => missing");
16839Assert.True(newNode.IsMissing, "No tokens => missing");
16865Assert.True(newNode.IsMissing, "No tokens => missing");
16891Assert.True(newNode.IsMissing, "No tokens => missing");
16917Assert.True(newNode.IsMissing, "No tokens => missing");
16943Assert.True(newNode.IsMissing, "No tokens => missing");
16969Assert.True(newNode.IsMissing, "No tokens => missing");
16995Assert.True(newNode.IsMissing, "No tokens => missing");
17021Assert.True(newNode.IsMissing, "No tokens => missing");
17047Assert.True(newNode.IsMissing, "No tokens => missing");
17073Assert.True(newNode.IsMissing, "No tokens => missing");
17099Assert.True(newNode.IsMissing, "No tokens => missing");
17125Assert.True(newNode.IsMissing, "No tokens => missing");
17151Assert.True(newNode.IsMissing, "No tokens => missing");
17177Assert.True(newNode.IsMissing, "No tokens => missing");
17203Assert.True(newNode.IsMissing, "No tokens => missing");
17229Assert.True(newNode.IsMissing, "No tokens => missing");
17255Assert.True(newNode.IsMissing, "No tokens => missing");
17281Assert.True(newNode.IsMissing, "No tokens => missing");
17307Assert.True(newNode.IsMissing, "No tokens => missing");
17333Assert.True(newNode.IsMissing, "No tokens => missing");
17359Assert.True(newNode.IsMissing, "No tokens => missing");
17385Assert.True(newNode.IsMissing, "No tokens => missing");
17411Assert.True(newNode.IsMissing, "No tokens => missing");
17437Assert.True(newNode.IsMissing, "No tokens => missing");
17463Assert.True(newNode.IsMissing, "No tokens => missing");
17489Assert.True(newNode.IsMissing, "No tokens => missing");
17515Assert.True(newNode.IsMissing, "No tokens => missing");
17541Assert.True(newNode.IsMissing, "No tokens => missing");
17567Assert.True(newNode.IsMissing, "No tokens => missing");
17593Assert.True(newNode.IsMissing, "No tokens => missing");
17619Assert.True(newNode.IsMissing, "No tokens => missing");
17645Assert.True(newNode.IsMissing, "No tokens => missing");
17671Assert.True(newNode.IsMissing, "No tokens => missing");
17697Assert.True(newNode.IsMissing, "No tokens => missing");
17723Assert.True(newNode.IsMissing, "No tokens => missing");
17749Assert.True(newNode.IsMissing, "No tokens => missing");
17775Assert.True(newNode.IsMissing, "No tokens => missing");
17801Assert.True(newNode.IsMissing, "No tokens => missing");
17827Assert.True(newNode.IsMissing, "No tokens => missing");
17853Assert.True(newNode.IsMissing, "No tokens => missing");
17879Assert.True(newNode.IsMissing, "No tokens => missing");
17905Assert.True(newNode.IsMissing, "No tokens => missing");
17931Assert.True(newNode.IsMissing, "No tokens => missing");
17957Assert.True(newNode.IsMissing, "No tokens => missing");
17983Assert.True(newNode.IsMissing, "No tokens => missing");
18009Assert.True(newNode.IsMissing, "No tokens => missing");
18035Assert.True(newNode.IsMissing, "No tokens => missing");
18061Assert.True(newNode.IsMissing, "No tokens => missing");
18087Assert.True(newNode.IsMissing, "No tokens => missing");
18113Assert.True(newNode.IsMissing, "No tokens => missing");
18139Assert.True(newNode.IsMissing, "No tokens => missing");
18165Assert.True(newNode.IsMissing, "No tokens => missing");
18191Assert.True(newNode.IsMissing, "No tokens => missing");
18217Assert.True(newNode.IsMissing, "No tokens => missing");
18243Assert.True(newNode.IsMissing, "No tokens => missing");
18269Assert.True(newNode.IsMissing, "No tokens => missing");
18295Assert.True(newNode.IsMissing, "No tokens => missing");
18321Assert.True(newNode.IsMissing, "No tokens => missing");
18347Assert.True(newNode.IsMissing, "No tokens => missing");
18373Assert.True(newNode.IsMissing, "No tokens => missing");
18399Assert.True(newNode.IsMissing, "No tokens => missing");
18425Assert.True(newNode.IsMissing, "No tokens => missing");
18451Assert.True(newNode.IsMissing, "No tokens => missing");
18477Assert.True(newNode.IsMissing, "No tokens => missing");
18503Assert.True(newNode.IsMissing, "No tokens => missing");
18529Assert.True(newNode.IsMissing, "No tokens => missing");
18555Assert.True(newNode.IsMissing, "No tokens => missing");
18581Assert.True(newNode.IsMissing, "No tokens => missing");
18607Assert.True(newNode.IsMissing, "No tokens => missing");
18633Assert.True(newNode.IsMissing, "No tokens => missing");
18659Assert.True(newNode.IsMissing, "No tokens => missing");
18685Assert.True(newNode.IsMissing, "No tokens => missing");
18711Assert.True(newNode.IsMissing, "No tokens => missing");
18737Assert.True(newNode.IsMissing, "No tokens => missing");
18763Assert.True(newNode.IsMissing, "No tokens => missing");
18789Assert.True(newNode.IsMissing, "No tokens => missing");
18815Assert.True(newNode.IsMissing, "No tokens => missing");
18841Assert.True(newNode.IsMissing, "No tokens => missing");
18867Assert.True(newNode.IsMissing, "No tokens => missing");
18893Assert.True(newNode.IsMissing, "No tokens => missing");
18919Assert.True(newNode.IsMissing, "No tokens => missing");
18945Assert.True(newNode.IsMissing, "No tokens => missing");
18971Assert.True(newNode.IsMissing, "No tokens => missing");
18997Assert.True(newNode.IsMissing, "No tokens => missing");
19023Assert.True(newNode.IsMissing, "No tokens => missing");
19049Assert.True(newNode.IsMissing, "No tokens => missing");
19075Assert.True(newNode.IsMissing, "No tokens => missing");
19101Assert.True(newNode.IsMissing, "No tokens => missing");
19127Assert.True(newNode.IsMissing, "No tokens => missing");
19153Assert.True(newNode.IsMissing, "No tokens => missing");
19179Assert.True(newNode.IsMissing, "No tokens => missing");
19205Assert.True(newNode.IsMissing, "No tokens => missing");
19231Assert.True(newNode.IsMissing, "No tokens => missing");
19257Assert.True(newNode.IsMissing, "No tokens => missing");
19283Assert.True(newNode.IsMissing, "No tokens => missing");
19309Assert.True(newNode.IsMissing, "No tokens => missing");
19335Assert.True(newNode.IsMissing, "No tokens => missing");
19361Assert.True(newNode.IsMissing, "No tokens => missing");
19387Assert.True(newNode.IsMissing, "No tokens => missing");
19413Assert.True(newNode.IsMissing, "No tokens => missing");
19439Assert.True(newNode.IsMissing, "No tokens => missing");
19465Assert.True(newNode.IsMissing, "No tokens => missing");
19491Assert.True(newNode.IsMissing, "No tokens => missing");
19517Assert.True(newNode.IsMissing, "No tokens => missing");
19543Assert.True(newNode.IsMissing, "No tokens => missing");
19569Assert.True(newNode.IsMissing, "No tokens => missing");
19595Assert.True(newNode.IsMissing, "No tokens => missing");
19621Assert.True(newNode.IsMissing, "No tokens => missing");
19647Assert.True(newNode.IsMissing, "No tokens => missing");
19673Assert.True(newNode.IsMissing, "No tokens => missing");
19699Assert.True(newNode.IsMissing, "No tokens => missing");
19725Assert.True(newNode.IsMissing, "No tokens => missing");
19751Assert.True(newNode.IsMissing, "No tokens => missing");
19777Assert.True(newNode.IsMissing, "No tokens => missing");
19803Assert.True(newNode.IsMissing, "No tokens => missing");
19829Assert.True(newNode.IsMissing, "No tokens => missing");
19855Assert.True(newNode.IsMissing, "No tokens => missing");
19881Assert.True(newNode.IsMissing, "No tokens => missing");
19907Assert.True(newNode.IsMissing, "No tokens => missing");
19933Assert.True(newNode.IsMissing, "No tokens => missing");
19959Assert.True(newNode.IsMissing, "No tokens => missing");
19985Assert.True(newNode.IsMissing, "No tokens => missing");
20011Assert.True(newNode.IsMissing, "No tokens => missing");
20037Assert.True(newNode.IsMissing, "No tokens => missing");
20063Assert.True(newNode.IsMissing, "No tokens => missing");
20089Assert.True(newNode.IsMissing, "No tokens => missing");
20115Assert.True(newNode.IsMissing, "No tokens => missing");
20141Assert.True(newNode.IsMissing, "No tokens => missing");
20167Assert.True(newNode.IsMissing, "No tokens => missing");
20193Assert.True(newNode.IsMissing, "No tokens => missing");
20219Assert.True(newNode.IsMissing, "No tokens => missing");
20245Assert.True(newNode.IsMissing, "No tokens => missing");
20271Assert.True(newNode.IsMissing, "No tokens => missing");
20297Assert.True(newNode.IsMissing, "No tokens => missing");
20323Assert.True(newNode.IsMissing, "No tokens => missing");
20349Assert.True(newNode.IsMissing, "No tokens => missing");
20375Assert.True(newNode.IsMissing, "No tokens => missing");
20401Assert.True(newNode.IsMissing, "No tokens => missing");
20427Assert.True(newNode.IsMissing, "No tokens => missing");
Microsoft.CodeAnalysis.CSharp.Test.Utilities (15)
DiagnosticTestUtilities.cs (5)
104Assert.True(
151Assert.True(experr.Line == acterr.Line, String.Format("Line {0}!={1}", experr.Line, acterr.Line));
152Assert.True(experr.Column == acterr.Column, String.Format("Col {0}!={1}", experr.Column, acterr.Column));
155Assert.True(experr.IsWarning == acterr.IsWarning, String.Format("IsWarning {0}!={1}", experr.IsWarning, acterr.IsWarning));
160Assert.True(experr.Parameters.SequenceEqual(acterr.Parameters), String.Format("Param: {0}!={1}", experr.Parameters.Count(), acterr.Parameters.Count()));
Microsoft.CodeAnalysis.CSharp.WinRT.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (5)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (25)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (48)
Utilities\AsynchronousOperationListenerTests.cs (17)
96Assert.True(done, "The operation should have completed");
128Assert.True(done, "Should have waited for the queued operation to finish!");
160Assert.True(done, "Cancelling should have completed the current task.");
193Assert.True(innerDone, "Should have completed the inner task");
194Assert.True(outerDone, "Should have completed the outer task");
237Assert.True(outerDone, "The outer task should have finished!");
238Assert.True(firstQueuedDone, "The first queued task should have finished");
239Assert.True(secondQueuedDone, "The second queued task should have finished");
282Assert.True(done.Task.IsCompleted, "Cancelling should have completed the current task.");
283Assert.True(queuedFinished.Task.IsCompleted, "Continued didn't run, but it was supposed to ignore the cancel.");
320Assert.True(firstDone, "First didn't finish");
321Assert.True(secondDone, "Should have waited for the second task");
330Assert.True(signal.Wait(s_unexpectedDelay), "Shouldn't have hit timeout waiting for task to begin");
332Assert.True(waitTask.Wait(s_unexpectedDelay), "Wait shouldn't have needed to timeout");
341Assert.True(signal1.Wait(s_unexpectedDelay), "Shouldn't have hit timeout waiting for task to begin");
342Assert.True(signal2.Wait(s_unexpectedDelay), "Shouldn't have hit timeout waiting for task to begin");
345Assert.True(waitTask.Wait(s_unexpectedDelay), "Wait shouldn't have needed to timeout");
Utilities\BloomFilterTests.cs (3)
79Assert.True(falsePositivePercentage < (d * 1.5), string.Format("falsePositivePercentage={0}, d={1}", falsePositivePercentage, d));
199Assert.True(falsePositivePercentage < (d * 1.5), string.Format("falsePositivePercentage={0}, d={1}", falsePositivePercentage, d));
270Assert.True(falsePositivePercentage < (d * 1.5), string.Format("falsePositivePercentage={0}, d={1}", falsePositivePercentage, d));
ValueTracking\AbstractBaseValueTrackingTests.cs (2)
45Assert.True(itemInfo.Length == items.Length, $"GetTrackedItemsAsync\n\texpected: [{string.Join(",", itemInfo.Select(p => p.text))}]\n\t actual: [{string.Join(",", items)}]");
58Assert.True(childInfo.Length == children.Length, $"GetTrackedItemsAsync on [{item}]\n\texpected: [{string.Join(",", childInfo.Select(p => p.text))}]\n\t actual: [{string.Join(",", children)}]");
Microsoft.CodeAnalysis.ExternalAccess.Razor.UnitTests (1)
Microsoft.CodeAnalysis.Features.Test.Utilities (6)
Microsoft.CodeAnalysis.Features.UnitTests (7)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (5)
Microsoft.CodeAnalysis.Rebuild.UnitTests (3)
Microsoft.CodeAnalysis.Scripting.Desktop.UnitTests (10)
GlobalAssemblyCacheTests.cs (10)
27Assert.True(names.Length >= 1, "At least 1 mscorlib");
34Assert.True(names.Length >= 1, "At least one 32bit mscorlib");
41Assert.True(names.Length >= 1, "At least 1 mscorlib");
48Assert.True(names.Length >= 1, "At least System.Core");
53Assert.True(name.GetDisplayName().Contains("PublicKeyToken=b77a5c561934e089"), "PublicKeyToken matches");
57Assert.True(names.Length >= 1, "At least System.Core");
68Assert.True(names.Length >= 1, "At least System.Core");
100Assert.True(name.Version >= new Version("2.0.0.0"), "netstandard version must be >= 2.0.0.0");
108Assert.True(names.Length > 100, "There are at least 100 assemblies in the GAC");
115Assert.True(gacLocationsUpper.Any(gac => location.StartsWith(gac, StringComparison.OrdinalIgnoreCase)), "Path within some GAC root");
Microsoft.CodeAnalysis.Test.Utilities (51)
Assert\AssertEx.cs (14)
174Assert.True((actual == null) == expected.IsDefault, message);
189Assert.True(expected is null == actual is null, message);
219Assert.True(false, message.ToString());
246Assert.True(false, GetAssertMessage(expected, actual, comparer, message, itemInspector, itemSeparator, expectedValueSourcePath, expectedValueSourceLine));
262Assert.True(false, GetAssertMessage(expected, actual, comparer, message, itemInspector, itemSeparator, expectedValueSourcePath, expectedValueSourceLine));
309Assert.True(false, messageBuilder.ToString());
483Assert.True(result, GetAssertMessage(
499Assert.True(false, message);
510Assert.True(none, string.Format(
520Assert.True(any, string.Format("No expected item was found.\nExisting items: {0}", ToString(actual)));
528Assert.True(all, string.Format(
578Assert.True(false, GetAssertMessage(expected, actual, message, escapeQuotes, expectedValueSourcePath, expectedValueSourceLine));
604Assert.True(false, message);
955Assert.True(false, builder.ToString());
Microsoft.CodeAnalysis.UnitTests (44)
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (11)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (6)
Microsoft.CodeAnalysis.Workspaces.UnitTests (24)
SolutionTests\SolutionTests.cs (15)
2532Assert.True(solution.ProjectIds.Any(), "Solution was expected to have projects");
2577Assert.True(solution.ContainsProject(pid), "Solution was expected to have project " + pid);
2578Assert.True(project.HasDocuments, "Project was expected to have documents");
2582Assert.True(project.ContainsDocument(did), "Project was expected to have document " + did);
2599Assert.True(project2.ContainsDocument(did2), "Project was expected to have document " + did2);
2838Assert.True(solution.ContainsProject(project.Id), "Solution was expected to have project " + project.Id);
2853Assert.True(compilation.References.Contains(meta), "Compilation references were expected to contain " + meta);
2882Assert.True(trees.Contains(await doc.GetSyntaxTreeAsync()), "trees list was expected to contain the syntax tree of doc");
3061Assert.True(sol.ProjectIds.Any(), "Solution was expected to have projects");
3091Assert.True(sol2.ContainsProject(pid2), "sol2 was expected to contain project " + pid2);
3093Assert.True(sol2.GetProject(pid2).AllProjectReferences.Any(r => r.ProjectId == pid), "sol2 project pid2 was expected to contain project reference " + pid);
3116Assert.True(sol2.ContainsProject(pid2), "sol2 was expected to contain project " + pid2);
3118Assert.True(sol2.GetProject(pid2).AllProjectReferences.Any(r => r.ProjectId == pid), "sol2 pid2 was expected to contain " + pid);
3122Assert.True(sol3.ContainsProject(pid), "sol3 was expected to contain " + pid);
3123Assert.True(sol3.ContainsProject(pid2), "sol3 was expected to contain " + pid2);
Microsoft.CommonLanguageServerProtocol.Framework.UnitTests (1)
Microsoft.DotNet.Arcade.Sdk.Tests (2)
Microsoft.DotNet.Helix.Sdk.Tests (1)
Microsoft.DotNet.NuGetRepack.Tests (8)
TestHelpers\AssertEx.cs (8)
172Assert.True((actual == null) == expected.IsDefault, message);
184Assert.True((expected == null) == actual.IsDefault, message);
269Assert.True(result, message);
276Assert.True(expectedSet.SetEquals(actual), string.Format("Expected: {0}\nActual: {1}", ToString(expected), ToString(actual)));
284Assert.True(none, string.Format(
294Assert.True(any, string.Format("No expected item was found.\nExisting items: {0}", ToString(actual)));
302Assert.True(all, string.Format(
335Assert.True(AssertEqualityComparer<T>.IsNull(@object), message);
Microsoft.DotNet.Open.Api.Tools.Tests (4)
Microsoft.DotNet.XUnitAssert.Tests (1)
Microsoft.Extensions.Caching.Hybrid.Tests (3)
Microsoft.Extensions.Compliance.Testing.Tests (2)
Microsoft.Extensions.ML.Tests (2)
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (2)
Microsoft.Extensions.TimeProvider.Testing.Tests (1)
Microsoft.Gen.ComplianceReports.Unit.Tests (4)
Microsoft.Gen.ContextualOptions.Unit.Tests (5)
Microsoft.Gen.Logging.Unit.Tests (5)
Microsoft.Gen.Metrics.Unit.Tests (5)
Microsoft.Gen.MetricsReports.Unit.Tests (4)
Microsoft.ML.AutoML.Tests (1)
Microsoft.ML.Benchmarks.Tests (5)
Microsoft.ML.Core.Tests (21)
UnitTests\TestEntryPoints.cs (9)
1632Assert.True(scoreCol.HasValue, "Data scored with binary ensemble does not have a score column");
1634Assert.True(type is TextDataViewType, "Binary ensemble scored data does not have correct type of metadata.");
1637Assert.True(ReadOnlyMemoryUtils.EqualsStr(AnnotationUtils.Const.ScoreColumnKind.BinaryClassification, kind),
1641Assert.True(scoreCol.HasValue, "Data scored with regression ensemble does not have a score column");
1643Assert.True(type is TextDataViewType, "Regression ensemble scored data does not have correct type of metadata.");
1645Assert.True(ReadOnlyMemoryUtils.EqualsStr(AnnotationUtils.Const.ScoreColumnKind.Regression, kind),
1649Assert.True(scoreCol.HasValue, "Data scored with anomaly detection ensemble does not have a score column");
1651Assert.True(type is TextDataViewType, "Anomaly detection ensemble scored data does not have correct type of metadata.");
1653Assert.True(ReadOnlyMemoryUtils.EqualsStr(AnnotationUtils.Const.ScoreColumnKind.AnomalyDetection, kind),
Microsoft.ML.Predictor.Tests (7)
Microsoft.ML.TestFramework (3)
Microsoft.ML.TestFrameworkCommon (9)
TestCommon.cs (9)
90Assert.True(sch1.Count == sch2.Count, $"column count mismatch: {sch1.Count} vs {sch2.Count}");
96Assert.True(name1 == name2, $"column name mismatch at index {col}: {name1} vs {name2}");
100Assert.True(EqualTypes(type1, type2, exactTypes), $"column type mismatch at index {col}");
108Assert.True(f1, "TryGetColumnIndex unexpectedly failed");
109Assert.True(f2, "TryGetColumnIndex unexpectedly failed");
110Assert.True(col1 == col2, $"TryGetColumnIndex on '{name1}' produced different results: '{col1}' vs '{col2}'");
250Assert.True(EqualTypes(t1, t2, exactTypes), $"Different {kind} metadata types: {t1} vs {t2}");
260Assert.True((int)size == t1.GetVectorSize(), $"{kind} metadata type wrong size: {t1.GetVectorSize()} vs {size}");
264Assert.True(CompareVec(in names1, in names2, (int)size, (a, b) => a.Span.SequenceEqual(b.Span)), $"Different {kind} metadata values");
Microsoft.ML.Tests (4)
Microsoft.ML.Tokenizers.Tests (2)
Microsoft.Net.Http.Headers.Tests (38)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
PresentationCore.Tests (2)
Roslyn.Test.PdbUtilities (3)
Roslyn.VisualStudio.Next.UnitTests (2)
ScenarioTests.Common.Tests (1)
Security.TransportSecurity.IntegrationTests (32)
Https\ClientCredentialTypeTests.4.1.0.cs (3)
78Assert.True(String.Equals(result, testString),
163Assert.True(exception.Message.ToLower().Contains(message), string.Format("Expected exception message to contain: '{0}', actual message is: '{1}'", message, exception.Message));
202Assert.True(exception.Message.ToLower().Contains(paraMessage), string.Format("Expected exception message to contain: '{0}', actual: '{1}'", paraMessage, exception.Message));
Https\HttpsTests.4.1.0.cs (8)
53Assert.True(result == testString, String.Format("Error: expected response from service: '{0}' Actual was: '{1}'", testString, result));
103Assert.True(errorBuilder.Length == 0, "Test case FAILED with errors: " + errorBuilder.ToString());
142Assert.True(errorBuilder.Length == 0, "Test case FAILED with errors: " + errorBuilder.ToString());
181Assert.True(errorBuilder.Length == 0, "Test case FAILED with errors: " + errorBuilder.ToString());
220Assert.True(errorBuilder.Length == 0, "Test case FAILED with errors: " + errorBuilder.ToString());
257Assert.True(myX509CertificateValidator.validateMethodWasCalled, "The Validate method of the X509CertificateValidator was NOT called.");
437Assert.True(expectHeaderSent, "Expect header should have been sent but wasn't");
560Assert.True(myX509CertificateValidator.validateMethodWasCalled, "The Validate method of the X509CertificateValidator was NOT called.");
Tcp\StreamingTests.4.1.0.cs (6)
242Assert.True(watch.ElapsedMilliseconds >= 4985 && watch.ElapsedMilliseconds < 6000,
283Assert.True(String.Equals(testString, result), String.Format("Error: Expected test string: '{0}' but got '{1}'", testString, result));
325Assert.True(String.Equals(testString, result), String.Format("Error: Expected test string: '{0}' but got '{1}'", testString, result));
367Assert.True(String.Equals(testString, result), String.Format("Error: Expected test string: '{0}' but got '{1}'", testString, result));
396Assert.True(success, "Test Scenario: NetTcp_TransportSecurity_String_Streamed_RoundTrips_WithSingleThreadedSyncContext timed-out.");
415Assert.True(success, "Test Scenario: NetTcp_TransportSecurity_Streamed_Async_RoundTrips_String_WithSingleThreadedSyncContext timed-out.");
Shared.Tests (1)
Sockets.BindTests (1)
Sockets.FunctionalTests (9)
System.Drawing.Common.Tests (76)
System\Drawing\IconConverterTests.cs (26)
37Assert.True(_icoConv.CanConvertFrom(typeof(byte[])), "byte[] (no context)");
38Assert.True(_icoConv.CanConvertFrom(null, typeof(byte[])), "byte[]");
39Assert.True(_icoConv.CanConvertFrom(null, _iconBytes.GetType()), "_iconBytes.GetType()");
50Assert.True(_icoConvFrmTD.CanConvertFrom(typeof(byte[])), "TD byte[] (no context)");
51Assert.True(_icoConvFrmTD.CanConvertFrom(null, typeof(byte[])), "TD byte[]");
52Assert.True(_icoConvFrmTD.CanConvertFrom(null, _iconBytes.GetType()), "TD _iconBytes.GetType()");
67Assert.True(_icoConv.CanConvertTo(typeof(string)), "string (no context)");
68Assert.True(_icoConv.CanConvertTo(null, typeof(string)), "string");
69Assert.True(_icoConv.CanConvertTo(null, _iconStr.GetType()), "_iconStr.GetType()");
70Assert.True(_icoConv.CanConvertTo(typeof(byte[])), "byte[] (no context)");
71Assert.True(_icoConv.CanConvertTo(null, typeof(byte[])), "byte[]");
72Assert.True(_icoConv.CanConvertTo(null, _iconBytes.GetType()), "_iconBytes.GetType()");
73Assert.True(_icoConv.CanConvertTo(typeof(Image)), "Image (no context)");
74Assert.True(_icoConv.CanConvertTo(null, typeof(Image)), "Image");
75Assert.True(_icoConv.CanConvertTo(typeof(Bitmap)), "Bitmap (no context)");
76Assert.True(_icoConv.CanConvertTo(null, typeof(Bitmap)), "Bitmap");
85Assert.True(_icoConvFrmTD.CanConvertTo(typeof(string)), "TD string (no context)");
86Assert.True(_icoConvFrmTD.CanConvertTo(null, typeof(string)), "TD string");
87Assert.True(_icoConvFrmTD.CanConvertTo(null, _iconStr.GetType()), "TD _iconStr.GetType()");
88Assert.True(_icoConvFrmTD.CanConvertTo(typeof(byte[])), "TD byte[] (no context)");
89Assert.True(_icoConvFrmTD.CanConvertTo(null, typeof(byte[])), "TD byte[]");
90Assert.True(_icoConvFrmTD.CanConvertTo(null, _iconBytes.GetType()), "TD _iconBytes.GetType()");
91Assert.True(_icoConvFrmTD.CanConvertTo(typeof(Image)), "TD Image (no context)");
92Assert.True(_icoConvFrmTD.CanConvertTo(null, typeof(Image)), "TD Image");
93Assert.True(_icoConvFrmTD.CanConvertTo(typeof(Bitmap)), "TD Bitmap (no context)");
94Assert.True(_icoConvFrmTD.CanConvertTo(null, typeof(Bitmap)), "TD Bitmap");
System\Drawing\ImageConverterTests.cs (22)
61Assert.True(_imgConv.CanConvertFrom(typeof(byte[])), "byte[] (no context)");
62Assert.True(_imgConv.CanConvertFrom(null, typeof(byte[])), "byte[]");
63Assert.True(_imgConv.CanConvertFrom(null, _imageBytes.GetType()), "_imageBytes.GetType()");
64Assert.True(_imgConv.CanConvertFrom(typeof(Icon)), "Icon (no context)");
65Assert.True(_imgConv.CanConvertFrom(null, typeof(Icon)), "Icon");
76Assert.True(_imgConvFrmTD.CanConvertFrom(typeof(byte[])), "TD byte[] (no context)");
77Assert.True(_imgConvFrmTD.CanConvertFrom(null, typeof(byte[])), "TD byte[]");
78Assert.True(_imgConvFrmTD.CanConvertFrom(null, _imageBytes.GetType()), "TD _imageBytes.GetType()");
93Assert.True(_imgConv.CanConvertTo(typeof(string)), "stirng (no context)");
94Assert.True(_imgConv.CanConvertTo(null, typeof(string)), "string");
95Assert.True(_imgConv.CanConvertTo(null, _imageStr.GetType()), "_imageStr.GetType()");
96Assert.True(_imgConv.CanConvertTo(typeof(byte[])), "byte[] (no context)");
97Assert.True(_imgConv.CanConvertTo(null, typeof(byte[])), "byte[]");
98Assert.True(_imgConv.CanConvertTo(null, _imageBytes.GetType()), "_imageBytes.GetType()");
107Assert.True(_imgConvFrmTD.CanConvertTo(typeof(string)), "TD string (no context)");
108Assert.True(_imgConvFrmTD.CanConvertTo(null, typeof(string)), "TD string");
109Assert.True(_imgConvFrmTD.CanConvertTo(null, _imageStr.GetType()), "TD _imageStr.GetType()");
110Assert.True(_imgConvFrmTD.CanConvertTo(typeof(byte[])), "TD byte[] (no context)");
111Assert.True(_imgConvFrmTD.CanConvertTo(null, typeof(byte[])), "TD byte[]");
112Assert.True(_imgConvFrmTD.CanConvertTo(null, _imageBytes.GetType()), "TD _imageBytes.GetType()");
219Assert.True(_imgConv.GetPropertiesSupported(), "GetPropertiesSupported()");
220Assert.True(_imgConv.GetPropertiesSupported(null), "GetPropertiesSupported(null)");
System\Drawing\ImageFormatConverterTests.cs (22)
29Assert.True(_imgFmtConv.CanConvertFrom(typeof(string)), "string (no context)");
30Assert.True(_imgFmtConv.CanConvertFrom(null, typeof(string)), "string");
36Assert.True(_imgFmtConvFrmTD.CanConvertFrom(typeof(string)), "TD string (no context)");
37Assert.True(_imgFmtConvFrmTD.CanConvertFrom(null, typeof(string)), "TD string");
47Assert.True(_imgFmtConv.CanConvertTo(typeof(string)), "string (no context)");
48Assert.True(_imgFmtConv.CanConvertTo(null, typeof(string)), "string");
54Assert.True(_imgFmtConvFrmTD.CanConvertTo(typeof(string)), "TD string (no context)");
55Assert.True(_imgFmtConvFrmTD.CanConvertTo(null, typeof(string)), "TD string");
160Assert.True(_imgFmtConv.GetStandardValuesSupported(), "GetStandardValuesSupported()");
161Assert.True(_imgFmtConv.GetStandardValuesSupported(null), "GetStandardValuesSupported(null)");
228Assert.True(memorybmp, "MemoryBMP");
229Assert.True(bmp, "Bmp");
230Assert.True(emf, "Emf");
231Assert.True(wmf, "Wmf");
232Assert.True(gif, "Gif");
233Assert.True(jpeg, "Jpeg");
234Assert.True(png, "Png");
235Assert.True(tiff, "Tiff");
236Assert.True(exif, "Exif");
237Assert.True(icon, "Icon");
239Assert.True(heif, "Heif");
240Assert.True(webp, "Webp");
System.ServiceModel.Http.Tests (9)
System.ServiceModel.NetTcp.Tests (6)
System.ServiceModel.Primitives.Tests (127)
Channels\CommunicationObjectTest.cs (40)
35Assert.True(String.Equals(expectedOpens, actualOpens, StringComparison.Ordinal),
41Assert.True(String.Equals(expectedCloses, actualCloses, StringComparison.Ordinal),
71Assert.True(String.Equals(expectedOpens, actualOpens, StringComparison.Ordinal),
77Assert.True(String.Equals(expectedCloses, actualCloses, StringComparison.Ordinal),
99Assert.True(String.Equals(expectedCloses, actualCloses, StringComparison.Ordinal),
103Assert.True(mco.State == CommunicationState.Closed,
127Assert.True(String.Equals(expectedOpens, actualOpens, StringComparison.Ordinal),
133Assert.True(String.Equals(expectedCloses, actualCloses, StringComparison.Ordinal),
162Assert.True(String.Equals(expectedOpens, actualOpens, StringComparison.Ordinal),
168Assert.True(String.Equals(expectedCloses, actualCloses, StringComparison.Ordinal),
188Assert.True(data.StateAfterCreate == CommunicationState.Created,
192Assert.True(data.StateEnterOnOpening == CommunicationState.Opening,
195Assert.True(data.StateLeaveOnOpening == CommunicationState.Opening,
199Assert.True(data.StateEnterOnOpen == CommunicationState.Opening,
202Assert.True(data.StateLeaveOnOpen == CommunicationState.Opening,
206Assert.True(data.StateEnterOnOpened == CommunicationState.Opening,
209Assert.True(data.StateLeaveOnOpened == CommunicationState.Opened,
213Assert.True(data.StateEnterOnClosing == CommunicationState.Closing,
216Assert.True(data.StateLeaveOnClosing == CommunicationState.Closing,
220Assert.True(data.StateEnterOnClose == CommunicationState.Closing,
223Assert.True(data.StateLeaveOnClose == CommunicationState.Closing,
227Assert.True(data.StateEnterOnClosed == CommunicationState.Closing,
230Assert.True(data.StateLeaveOnClosed == CommunicationState.Closed,
255Assert.True(data.StateAfterCreate == CommunicationState.Created,
259Assert.True(data.StateEnterOnOpening == CommunicationState.Opening,
262Assert.True(data.StateLeaveOnOpening == CommunicationState.Opening,
266Assert.True(data.StateEnterOnBeginOpen == CommunicationState.Opening,
269Assert.True(data.StateLeaveOnBeginOpen == CommunicationState.Opening,
273Assert.True(data.StateEnterOnOpened == CommunicationState.Opening,
276Assert.True(data.StateLeaveOnOpened == CommunicationState.Opened,
280Assert.True(data.StateEnterOnClosing == CommunicationState.Closing,
283Assert.True(data.StateLeaveOnClosing == CommunicationState.Closing,
287Assert.True(data.StateEnterOnBeginClose == CommunicationState.Closing,
290Assert.True(data.StateLeaveOnBeginClose == CommunicationState.Closing,
294Assert.True(data.StateEnterOnClosed == CommunicationState.Closing,
297Assert.True(data.StateLeaveOnClosed == CommunicationState.Closed,
322Assert.True(String.Equals(exceptionMessage, actualException.Message),
349Assert.True(String.Equals(exceptionMessage, actualException.Message),
376Assert.True(String.Equals(exceptionMessage, actualException.Message),
407Assert.True(String.Equals(exceptionMessage, actualException.Message),
Channels\CustomChannelTest.cs (30)
75Assert.True(String.Equals(testMessageBody, result),
82Assert.True(String.Equals(expectedOpens, actualOpens, StringComparison.Ordinal),
87Assert.True(String.Equals(expectedCloses, actualCloses, StringComparison.Ordinal),
92Assert.True(String.Equals(expectedOpens, actualOpens, StringComparison.Ordinal),
97Assert.True(String.Equals(expectedCloses, actualCloses, StringComparison.Ordinal),
101Assert.True(factory.State == CommunicationState.Closed,
104Assert.True(((ICommunicationObject)channel).State == CommunicationState.Closed,
172Assert.True(String.Equals(testMessageBody, result),
179Assert.True(String.Equals(expectedOpens, actualOpens, StringComparison.Ordinal),
184Assert.True(String.Equals(expectedCloses, actualCloses, StringComparison.Ordinal),
189Assert.True(String.Equals(expectedOpens, actualOpens, StringComparison.Ordinal),
194Assert.True(String.Equals(expectedCloses, actualCloses, StringComparison.Ordinal),
198Assert.True(factory.State == CommunicationState.Closed,
201Assert.True(((ICommunicationObject)channel).State == CommunicationState.Closed,
251Assert.True(String.Equals(expectedExceptionMessage, actualException.Message),
306Assert.True(String.Equals(expectedExceptionMessage, actualException.Message),
365Assert.True(String.Equals(testMessageBody, result),
372Assert.True(String.Equals(expectedOpens, actualOpens, StringComparison.Ordinal),
377Assert.True(String.Equals(expectedCloses, actualCloses, StringComparison.Ordinal),
382Assert.True(String.Equals(expectedOpens, actualOpens, StringComparison.Ordinal),
387Assert.True(String.Equals(expectedCloses, actualCloses, StringComparison.Ordinal),
391Assert.True(factory.State == CommunicationState.Closed,
394Assert.True(((ICommunicationObject)channel).State == CommunicationState.Closed,
433Assert.True(initializeCalled, "Initialize was not called.");
471Assert.True(String.Equals(caughtException.Message, thrownException.Message),
523Assert.True(beginInitializeCalled, "BeginDisplayInitializationUI was not called.");
524Assert.True(endInitializeCalled, "EndDisplayInitializationUI was not called.");
574Assert.True(beginInitializeCalled, "BeginDisplayInitializationUI was not called.");
575Assert.True(endInitializeCalled, "EndDisplayInitializationUI was not called.");
725Assert.True(string.Equals(thrownException.Message, caughtException.Message),
ServiceModel\ChannelFactoryTest.cs (11)
39Assert.True(typeof(IRequestChannel).GetTypeInfo().IsAssignableFrom(channel.GetType().GetTypeInfo()),
43Assert.True(typeof(IRequestChannel).GetTypeInfo().IsAssignableFrom(channel2.GetType().GetTypeInfo()),
96Assert.True(typeof(IRequestChannel).GetTypeInfo().IsAssignableFrom(channel.GetType().GetTypeInfo()),
100Assert.True(typeof(IRequestChannel).GetTypeInfo().IsAssignableFrom(channel2.GetType().GetTypeInfo()),
152Assert.True(typeof(IRequestChannel).GetTypeInfo().IsAssignableFrom(channel.GetType().GetTypeInfo()),
196Assert.True(typeof(IWcfServiceGenerated).GetTypeInfo().IsAssignableFrom(channel.GetType().GetTypeInfo()),
218Assert.True(CommunicationState.Created == factory.State,
222Assert.True(CommunicationState.Opened == factory.State,
226Assert.True(CommunicationState.Closed == factory.State,
257Assert.True(allowCookies == (cookieManager != null),
262Assert.True(allowCookies == (cookieManager.CookieContainer != null),
ServiceModel\MessageContractTest.4.4.0.cs (11)
35Assert.True(String.Equals(name, attribute.Name),
137Assert.True(results == null, results);
214Assert.True(hasProperty, String.Format("Expected message property '{0}'", TestTypeConstants_4_4_0.MessageContract_Request_PropertyName));
215Assert.True(String.Equals(request.requestTestProperty, propertyValue),
293Assert.True(String.Equals(request.requestTestProperty, reply.requestTestProperty),
305Assert.True(hasHeader, String.Format("Expected header '{0}'", name));
314Assert.True(values.Length == headerValues.Count,
319Assert.True(headerValues.Contains(value),
327Assert.True(array2 != null,
330Assert.True(array1.Length == array2.Length,
336Assert.True(array1[i] == array2[i],
ServiceModel\SynchronizedCollection.cs (12)
21Assert.True(coll.Count == size, string.Format("collection count was wrong! Expected: {0} got: {1}", size, coll.Count));
25Assert.True(coll[i] == i, string.Format("coll element {0} was wrong! Expected: {1} got: {2} ", i, i, coll[i]));
26Assert.True(coll.IndexOf(i) == i, string.Format("coll IndexOf wasn't right! Expected: {0} got: {1}" , i, coll.IndexOf(i)));
27Assert.True(coll.Contains(i), string.Format("coll Contains failed to find the value {0}.", i));
33Assert.True(coll2[i] == i, string.Format("coll2 element was wrong! expected: {0} got: {1} ", i, coll2[i]));
39Assert.True(coll3[i] == i + 1, string.Format("coll3 element {0} was wrong! expected: {1} got: {2}", i, i+1, coll3[i]));
49Assert.True(e.Current.Equals(n++), string.Format("Expected: {0}, got:{1}", n-1, e.Current));
52Assert.True(n == 100, string.Format("Expect number of elements: {0}, got:{1}", 100, n));
58Assert.True(array[i + 1] == i, string.Format("After CopyTo, Element {0} was wrong! Expected: {1} got: {2}", i, i+1, array[i + 1]));
65Assert.True(coll.Count == size, string.Format("Expect number of elements after modification: {0}, got: {1}", size, coll.Count));
69Assert.True(coll[i] == i, string.Format("coll element was wrong after modification! Expected: {0} got: {1} ", i, coll[i]));
73Assert.True(coll.Count == 0, string.Format("Clear operation failed!, expected: 0, actual {0}", coll.Count));
System.ServiceModel.UnixDomainSocket.Tests (4)
System.Windows.Forms.Design.Tests (2)
System.Windows.Forms.Tests (7)
System.Windows.Forms.UI.IntegrationTests (1)
Templates.Blazor.Tests (20)
src\ProjectTemplates\Shared\Project.cs (9)
126Assert.True(0 == createResult.ExitCode, ErrorMessages.GetFailedProcessMessage("create", this, createResult));
144Assert.True(0 == restoreResult.ExitCode, ErrorMessages.GetFailedProcessMessage("restore", this, restoreResult));
170Assert.True(0 == result.ExitCode, ErrorMessages.GetFailedProcessMessage("publish", this, result));
193Assert.True(0 == result.ExitCode, ErrorMessages.GetFailedProcessMessage("build", this, result));
244Assert.True(0 == processResult.ExitCode, ErrorMessages.GetFailedProcessMessage("run EF migrations", this, processResult));
264Assert.True(0 == processResult.ExitCode, ErrorMessages.GetFailedProcessMessage("update database", this, processResult));
304Assert.True(doesExist, "Expected file to exist, but it doesn't: " + path);
424Assert.True(result.ExitCode == 0, result.GetFormattedOutput());
528Assert.True(File.Exists(sourceFile), $"Log for '{ProjectName}' not found in '{sourceFile}'. Execution output: {result.Output}");
Templates.Blazor.WebAssembly.Auth.Tests (17)
src\ProjectTemplates\Shared\Project.cs (9)
126Assert.True(0 == createResult.ExitCode, ErrorMessages.GetFailedProcessMessage("create", this, createResult));
144Assert.True(0 == restoreResult.ExitCode, ErrorMessages.GetFailedProcessMessage("restore", this, restoreResult));
170Assert.True(0 == result.ExitCode, ErrorMessages.GetFailedProcessMessage("publish", this, result));
193Assert.True(0 == result.ExitCode, ErrorMessages.GetFailedProcessMessage("build", this, result));
244Assert.True(0 == processResult.ExitCode, ErrorMessages.GetFailedProcessMessage("run EF migrations", this, processResult));
264Assert.True(0 == processResult.ExitCode, ErrorMessages.GetFailedProcessMessage("update database", this, processResult));
304Assert.True(doesExist, "Expected file to exist, but it doesn't: " + path);
424Assert.True(result.ExitCode == 0, result.GetFormattedOutput());
528Assert.True(File.Exists(sourceFile), $"Log for '{ProjectName}' not found in '{sourceFile}'. Execution output: {result.Output}");
Templates.Blazor.WebAssembly.Tests (17)
src\ProjectTemplates\Shared\Project.cs (9)
126Assert.True(0 == createResult.ExitCode, ErrorMessages.GetFailedProcessMessage("create", this, createResult));
144Assert.True(0 == restoreResult.ExitCode, ErrorMessages.GetFailedProcessMessage("restore", this, restoreResult));
170Assert.True(0 == result.ExitCode, ErrorMessages.GetFailedProcessMessage("publish", this, result));
193Assert.True(0 == result.ExitCode, ErrorMessages.GetFailedProcessMessage("build", this, result));
244Assert.True(0 == processResult.ExitCode, ErrorMessages.GetFailedProcessMessage("run EF migrations", this, processResult));
264Assert.True(0 == processResult.ExitCode, ErrorMessages.GetFailedProcessMessage("update database", this, processResult));
304Assert.True(doesExist, "Expected file to exist, but it doesn't: " + path);
424Assert.True(result.ExitCode == 0, result.GetFormattedOutput());
528Assert.True(File.Exists(sourceFile), $"Log for '{ProjectName}' not found in '{sourceFile}'. Execution output: {result.Output}");
Templates.Mvc.Tests (18)
src\ProjectTemplates\Shared\Project.cs (9)
126Assert.True(0 == createResult.ExitCode, ErrorMessages.GetFailedProcessMessage("create", this, createResult));
144Assert.True(0 == restoreResult.ExitCode, ErrorMessages.GetFailedProcessMessage("restore", this, restoreResult));
170Assert.True(0 == result.ExitCode, ErrorMessages.GetFailedProcessMessage("publish", this, result));
193Assert.True(0 == result.ExitCode, ErrorMessages.GetFailedProcessMessage("build", this, result));
244Assert.True(0 == processResult.ExitCode, ErrorMessages.GetFailedProcessMessage("run EF migrations", this, processResult));
264Assert.True(0 == processResult.ExitCode, ErrorMessages.GetFailedProcessMessage("update database", this, processResult));
304Assert.True(doesExist, "Expected file to exist, but it doesn't: " + path);
424Assert.True(result.ExitCode == 0, result.GetFormattedOutput());
528Assert.True(File.Exists(sourceFile), $"Log for '{ProjectName}' not found in '{sourceFile}'. Execution output: {result.Output}");
Templates.Tests (22)
src\ProjectTemplates\Shared\Project.cs (9)
126Assert.True(0 == createResult.ExitCode, ErrorMessages.GetFailedProcessMessage("create", this, createResult));
144Assert.True(0 == restoreResult.ExitCode, ErrorMessages.GetFailedProcessMessage("restore", this, restoreResult));
170Assert.True(0 == result.ExitCode, ErrorMessages.GetFailedProcessMessage("publish", this, result));
193Assert.True(0 == result.ExitCode, ErrorMessages.GetFailedProcessMessage("build", this, result));
244Assert.True(0 == processResult.ExitCode, ErrorMessages.GetFailedProcessMessage("run EF migrations", this, processResult));
264Assert.True(0 == processResult.ExitCode, ErrorMessages.GetFailedProcessMessage("update database", this, processResult));
304Assert.True(doesExist, "Expected file to exist, but it doesn't: " + path);
424Assert.True(result.ExitCode == 0, result.GetFormattedOutput());
528Assert.True(File.Exists(sourceFile), $"Log for '{ProjectName}' not found in '{sourceFile}'. Execution output: {result.Output}");
VBCSCompiler.UnitTests (2)