105 references to Assert
dotnet-svcutil-lib (61)
FrameworkFork\System.ServiceModel\System\ServiceModel\ActionNotSupportedException.cs (1)
18
Contract.
Assert
(messageVersion.Addressing != AddressingVersion.None);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\BufferedWriteStream.cs (34)
49
Contract.
Assert
(stream.CanWrite);
76
Contract.
Assert
(_buffer != null);
77
Contract.
Assert
(_bufferSize > 0);
156
Contract.
Assert
(_writePos == 0);
184
Contract.
Assert
(_writePos == 0);
192
Contract.
Assert
(_writePos == 0);
266
Contract.
Assert
(array != null);
267
Contract.
Assert
(offset >= 0);
268
Contract.
Assert
(count >= 0);
269
Contract.
Assert
(count <= array.Length - offset);
334
Contract.
Assert
(_writePos < _bufferSize);
351
Contract.
Assert
(count == 0);
355
Contract.
Assert
(count >= 0);
356
Contract.
Assert
(_writePos == _bufferSize);
357
Contract.
Assert
(_buffer != null);
364
Contract.
Assert
(count == 0);
365
Contract.
Assert
(_writePos < _bufferSize);
373
Contract.
Assert
(_buffer != null);
374
Contract.
Assert
(totalUserBytes >= _bufferSize);
397
Contract.
Assert
(buffer != null);
398
Contract.
Assert
(offset >= 0);
399
Contract.
Assert
(count >= 0);
400
Contract.
Assert
(count <= buffer.Length - offset);
417
Contract.
Assert
(_writePos < _bufferSize);
426
Contract.
Assert
(count == 0);
477
Contract.
Assert
(count == 0);
481
Contract.
Assert
(count >= 0);
482
Contract.
Assert
(_writePos == _bufferSize);
483
Contract.
Assert
(_buffer != null);
490
Contract.
Assert
(count == 0);
491
Contract.
Assert
(_writePos < _bufferSize);
500
Contract.
Assert
(_buffer != null);
501
Contract.
Assert
(totalUserBytes >= _bufferSize);
539
Contract.
Assert
(_writePos < _bufferSize);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CommunicationObject.cs (4)
776
Contract.
Assert
(communicationObject != null);
782
Contract.
Assert
(communicationObject != null);
788
Contract.
Assert
(communicationObject != null);
794
Contract.
Assert
(communicationObject != null);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\CoreClrSocketConnection.cs (1)
564
Contract.
Assert
(_socket != null);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpChannelFactory.cs (1)
1233
Contract.
Assert
(requestUri != null);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpResponseMessageHelper.cs (3)
27
Contract.
Assert
(httpResponseMessage != null);
28
Contract.
Assert
(httpResponseMessage.RequestMessage != null);
29
Contract.
Assert
(factory != null);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\HttpTransportBindingElement.cs (2)
437
Contract.
Assert
(context.BindingParameters != null);
473
Contract.
Assert
(context.Binding != null);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageContent.cs (1)
210
Contract.
Assert
(bufferManager != null);
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MethodCall.cs (2)
15
Contract.
Assert
(args != null);
21
Contract.
Assert
(methodBase != null);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (5)
504
Contract.
Assert
(type != null);
505
Contract.
Assert
(methodInfo != null);
519
Contract.
Assert
(method1 != null);
520
Contract.
Assert
(method2 != null);
1332
Contract.
Assert
(memberInfo is FieldInfo);
FrameworkFork\System.ServiceModel\System\ServiceModel\Dispatcher\ProxyOperationRuntime.cs (6)
276
Contract.
Assert
(methodCall != null);
277
Contract.
Assert
(methodCall.MethodBase != null);
288
Contract.
Assert
(methodCall != null);
289
Contract.
Assert
(methodCall.MethodBase != null);
300
Contract.
Assert
(methodCall != null);
301
Contract.
Assert
(methodCall.MethodBase != null);
FrameworkFork\System.ServiceModel\System\ServiceModel\MessageHeaderException.cs (1)
57
Contract.
Assert
(messageVersion.Addressing == AddressingVersion.WSAddressing10);
Microsoft.AspNetCore.Server.HttpSys (3)
RequestProcessing\ClientCertLoader.cs (3)
53
Contract.
Assert
(Task.IsCompleted);
62
Contract.
Assert
(Task.IsCompleted);
71
Contract.
Assert
(Task.IsCompleted);
Microsoft.Cci.Extensions (12)
Differs\ElementDiffer.cs (1)
59
Contract.
Assert
(_mapping.ElementCount <= 2);
Differs\ListMerger.cs (2)
76
Contract.
Assert
(findIndex0 == -1 && findIndex1 == -1);
77
Contract.
Assert
(!list0[list0Index].Equals(list1[list1Index]));
Experimental\APIClosureTypeReferenceVisitor.cs (1)
62
Contract.
Assert
(type == type.UnWrap());
Experimental\TypeReferenceSearcher.cs (1)
110
Contract.
Assert
(type == type.UnWrap());
Experimental\TypeReferenceVisitor.cs (1)
62
Contract.
Assert
(type == type.UnWrap());
HostEnvironment.cs (1)
304
Contract.
Assert
(this.UnifyToLibPath);
Mappings\AttributesMapping.cs (1)
56
Contract.
Assert
(index != 0);
Traversers\DependencyTraverser.cs (1)
193
Contract.
Assert
(_definitionStack.Count != 0);
Writers\CSharp\CSDeclarationWriter.Types.cs (1)
65
Contract.
Assert
(type.IsDelegate);
Writers\Syntax\HtmlSyntaxWriter.cs (1)
56
Contract.
Assert
(disposeAction != null);
Writers\Syntax\OpenXmlSyntaxWriter.cs (1)
59
Contract.
Assert
(disposeAction != null);
Microsoft.DotNet.AsmDiff (4)
DiffCSharpWriter.cs (4)
126
Contract.
Assert
(this.Settings.GroupByAssembly);
275
Contract.
Assert
(element[1] != null);
281
Contract.
Assert
(element[0] != null);
483
Contract.
Assert
(p1.Key == p2.Key);
Microsoft.ML.GenAI.Core (9)
Module\Attention.cs (9)
188
Contract.
Assert
(attnWeights.shape.Length == 4);
189
Contract.
Assert
(attnWeights.shape[0] == bsz);
190
Contract.
Assert
(attnWeights.shape[1] == this._numHeads);
191
Contract.
Assert
(attnWeights.shape[2] == qLen);
192
Contract.
Assert
(attnWeights.shape[3] == kvSeqLen);
197
Contract.
Assert
(attentionMask.shape.Length == 4);
198
Contract.
Assert
(attentionMask.shape[0] == bsz);
199
Contract.
Assert
(attentionMask.shape[1] == 1);
200
Contract.
Assert
(attentionMask.shape[2] == qLen);
Microsoft.ML.ImageAnalytics (1)
ImageLoader.cs (1)
345
Contract.
Assert
(srcSpan.Length == dstSpan.Length);
Microsoft.Net.Http.Headers (10)
ContentDispositionHeaderValue.cs (3)
527
Contract.
Assert
(value != null);
536
Contract.
Assert
(input != null);
576
Contract.
Assert
(input != null);
EntityTagHeaderValue.cs (2)
258
Contract.
Assert
(startIndex == 0);
259
Contract.
Assert
(!isWeak);
HeaderUtilities.cs (1)
117
Contract.
Assert
(xItem != null);
HttpHeaderParser.cs (2)
59
Contract.
Assert
(_supportsMultipleValues);
118
Contract.
Assert
(_supportsMultipleValues);
NameValueHeaderValue.cs (2)
118
Contract.
Assert
(_name != null);
284
Contract.
Assert
(destination != null);
PrepareTests (1)
MinimizeUtil.cs (1)
174
Contract.
Assert
(!File.Exists(file));
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Diagnostics\Contracts\Contracts.cs (2)
220
/// At runtime this is equivalent to an <see cref="
Assert
(bool)"/>.
239
/// At runtime this is equivalent to an <see cref="
Assert
(bool)"/>.
System.ServiceModel.NetFramingBase (2)
System\ServiceModel\Channels\SingletonConnectionReader.cs (1)
31
Contract.
Assert
(connection != null);
System\ServiceModel\Channels\StreamedFramingRequestChannel.cs (1)
160
Contract.
Assert
(connectionPoolHelper != null);