681 references to Format
Aspire.Dashboard.Components.Tests (1)
Client.ClientBase.IntegrationTests (1)
Client.ExpectedExceptions.IntegrationTests (6)
Contract.Message.IntegrationTests (1)
dotnet (34)
CommandFactory\CommandResolution\PackagedCommandSpecFactoryWithCliRuntime.cs (1)
39string.Format(
Commands\Test\MTP\TestApplicationHandler.cs (4)
106throw new InvalidOperationException(string.Format(CliCommandStrings.DotnetTestMismatchingExecutionId, discoveredTestMessages.ExecutionId, nameof(DiscoveredTestMessages), _handshakeInfo.Value.ExecutionId));
134throw new InvalidOperationException(string.Format(CliCommandStrings.DotnetTestMismatchingExecutionId, testResultMessage.ExecutionId, nameof(TestResultMessages), _handshakeInfo.Value.ExecutionId));
187throw new InvalidOperationException(string.Format(CliCommandStrings.DotnetTestMismatchingExecutionId, fileArtifactMessages.ExecutionId, nameof(FileArtifactMessages), _handshakeInfo.Value.ExecutionId));
217throw new InvalidOperationException(string.Format(CliCommandStrings.DotnetTestMismatchingExecutionId, sessionEvent.ExecutionId, nameof(TestSessionEvent), _handshakeInfo.Value.ExecutionId));
Commands\Workload\Install\FileBasedInstaller.cs (4)
174_reporter.WriteLine(string.Format(CliCommandStrings.UsingCacheForPackInstall, packInfo.ResolvedPackageId, packInfo.Version, offlineCache));
178throw new Exception(string.Format(CliCommandStrings.CacheMissingPackage, packInfo.ResolvedPackageId, packInfo.Version, offlineCache));
297throw new Exception(string.Format(CliCommandStrings.FailedToInstallWorkloadManifest, manifestUpdate.ManifestId, manifestUpdate.NewVersion, e.Message), e);
320throw new Exception(string.Format(CliCommandStrings.CacheMissingPackage, packageId, packageVersion, offlineCache));
dotnet.Tests (28)
dotnet-svcutil.xmlserializer (1)
dotnet-svcutil-lib (176)
FrameworkFork\Microsoft.Xml\Xml\Serialization\SoapSchemaImporter.cs (5)
65throw new InvalidOperationException(string.Format(ResXml.XmlPrimitiveBaseType, name.Name, name.Namespace, baseType.FullName));
202throw new InvalidOperationException(string.Format(ResXml.XmlInvalidSchemaElementType, parentType.Name, parentType.Namespace, element.Name));
207throw new InvalidOperationException(string.Format(ResXml.XmlInvalidSchemaElementType, parentType.Name, parentType.Namespace, element.Name));
218throw new InvalidOperationException(string.Format(ResXml.XmlElementMissingType, parentType.Name, parentType.Namespace, element.Name));
301throw new InvalidOperationException(string.Format(ResXml.XmlInvalidSchemaElementType, parentType.Name, parentType.Namespace, element.Name));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlCodeExporter.cs (3)
427AddWarningComment(comments, string.Format(ResXml.XmlDropAttributeValue, attributeName, mapping.TypeName, defaultValue.ToString()));
437AddWarningComment(comments, string.Format(ResXml.XmlDropArrayAttributeValue, attributeName, defaultValue.ToString(), ((ElementAccessor)accessor).Name));
494AddWarningComment(comments, string.Format(ResXml.XmlDropAttributeValue, attributeName, pm.TypeName, defaultValue.ToString()));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlReflectionImporter.cs (13)
402throw new InvalidOperationException(string.Format(ResXml.XmlInvalidXsdDataType, dataType, "XmlElementAttribute.DataType", new XmlQualifiedName(dataType, XmlSchema.Namespace).ToString()));
406throw new InvalidOperationException(string.Format(ResXml.XmlDataTypeMismatch, dataType, "XmlElementAttribute.DataType", modelTypeDesc.FullName));
493throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaMethodMissing, provider.MethodName, typeof(XmlSchemaSet).Name, type.FullName));
598throw new InvalidOperationException(string.Format(ResXml.XmlGetSchemaInclude, baseQname.Namespace, typeof(IXmlSerializable).Name, "GetSchema"));
871throw new InvalidOperationException(string.Format(ResXml.XmlIllegalTypedTextAttribute, typeName, member.Text.Name, member.Text.Mapping.TypeDesc.FullName));
912throw new InvalidOperationException(string.Format(ResXml.XmlSequenceUnique, member.SequenceId.ToString(), "Order", member.Name));
1425throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentifierType, identifierName, memberName, type.GetElementType().FullName));
1432throw new InvalidOperationException(string.Format(ResXml.XmlChoiceIdentifierArrayType, identifierName, memberName, type.FullName));
1568throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAttrOrTextInterface, accessorName, accessor.TypeDesc.ArrayElementTypeDesc.FullName, typeof(IXmlSerializable).Name));
1684throw new InvalidOperationException(string.Format(ResXml.XmlAnyElementDuplicate, accessorName, xmlAnyElement.Name, xmlAnyElement.Namespace == null ? "null" : xmlAnyElement.Namespace));
1851throw new InvalidOperationException(string.Format(ResXml.XmlXmlnsInvalidType, accessorName, accessorType.FullName, typeof(XmlSerializerNamespaces).FullName));
1862throw new InvalidOperationException(string.Format(ResXml.XmlIllegalAttrOrTextInterface, accessorName, accessor.TypeDesc.FullName, typeof(IXmlSerializable).Name));
1928throw new InvalidOperationException(string.Format(ResXml.XmlAnyElementDuplicate, accessorName, xmlAnyElement.Name, xmlAnyElement.Namespace == null ? "null" : xmlAnyElement.Namespace));
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSchemas.cs (4)
630item = string.Format(ResXml.XmlSchemaElementReference, e.RefName.ToString(), parentName.Name, parentName.Namespace);
652return string.Format(ResXml.XmlSchemaAttributeReference, a.RefName.ToString(), parentName.Name, parentName.Namespace);
663item = string.Format(ResXml.XmlSchemaContentDef, parentName.Name, parentName.Namespace, null);
668item = string.Format(ResXml.XmlSchemaItem, ns, itemType, details);
FrameworkFork\Microsoft.Xml\Xml\Serialization\XmlSerializationReader.cs (6)
990if (qname.Name != name) throw new InvalidOperationException(string.Format(ResXml.XmlInvalidArrayTypeName, qname.Name, name, CurrentTag()));
991if (qname.Namespace != ns) throw new InvalidOperationException(string.Format(ResXml.XmlInvalidArrayTypeNamespace, qname.Namespace, ns, CurrentTag()));
1365return new InvalidOperationException(string.Format(ResXml.XmlUnknownType, type.Name, type.Namespace, CurrentTag()));
1377return new InvalidOperationException(string.Format(ResXml.XmlAbstractType, name, ns, CurrentTag()));
1418return new InvalidCastException(string.Format(ResXml.XmlInvalidCastWithId, value.GetType().FullName, type.FullName, id));
1649throw new InvalidOperationException(string.Format(ResXml.XmlInvalidArrayRef, id, o.GetType().FullName, i.ToString()));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\ClassDataContract.cs (5)
914string.Format(SRSerialization.ValueTypeCannotHaveIsReference,
999string.Format(SRSerialization.IsRequiredDataMemberOnIsReferenceDataContractType,
1065string.Format(SRSerialization.NonOptionalFieldMemberOnIsReferenceSerializableType,
1234DataContract.ThrowInvalidDataContractException(string.Format(SRSerialization.CallbacksCannotBeVirtualMethods, method, DataContract.GetClrTypeFullName(method.DeclaringType), attributeType), method.DeclaringType);
1240DataContract.ThrowInvalidDataContractException(string.Format(SRSerialization.CallbackParameterInvalid, DataContract.GetClrTypeFullName(method.DeclaringType), method, Globals.TypeOfStreamingContext), method.DeclaringType);
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\CodeExporter.cs (6)
88throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.CLRNamespaceMappedMultipleTimes, currentDataContractNamespace, dataContractNamespace, clrNamespace)));
307throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.TypeCannotBeImported, typeName.Name, typeName.Namespace, string.Format(SRSerialization.CircularTypeReference, classContract.StableName.Name, classContract.StableName.Namespace))));
551throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.ReferencedTypeDoesNotMatch, type.AssemblyQualifiedName, dataContract.StableName.Name, dataContract.StableName.Namespace)));
569throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.ReferencedTypeDoesNotMatch, type.AssemblyQualifiedName, dataContract.StableName.Name, dataContract.StableName.Namespace)));
583throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.ReferencedTypeDoesNotMatch,
1055throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRSerialization.CannotDeriveFromSealedReferenceType, dataContract.StableName.Name, dataContract.StableName.Namespace, DataContract.GetClrTypeFullName(baseType))));
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\SchemaImporter.cs (7)
1001throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.InvalidEmitDefaultAnnotation, memberName, typeName.Name, typeName.Namespace)));
1312throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.GenericAnnotationHasInvalidElement, argumentElement.LocalName, argumentElement.NamespaceURI, type.Name)));
1321throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidDataContractException(string.Format(SRSerialization.GenericAnnotationForNestedLevelMustBeIncreasing, argumentElement.LocalName, argumentElement.NamespaceURI, type.Name)));
1454ThrowTypeCannotBeImportedException(string.Format(SRSerialization.TypeCannotBeImported, name, ns, message));
1459ThrowTypeCannotBeImportedException(string.Format(SRSerialization.ArrayTypeCannotBeImported, name, ns, message));
1464ThrowTypeCannotBeImportedException(string.Format(SRSerialization.EnumTypeCannotBeImported, name, ns, message));
1469ThrowTypeCannotBeImportedException(string.Format(SRSerialization.ISerializableTypeCannotBeImported, name, ns, message));
FrameworkFork\System.Runtime.Serialization\System\Xml\XmlBaseWriter.cs (3)
216throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlPrefixBoundToNamespace, "xml", xmlNamespace, ns), "ns"));
224throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlPrefixBoundToNamespace, "xmlns", xmlnsNamespace, ns), "ns"));
1936throw /*System.Runtime.Serialization.*/DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentException(string.Format(SRSerialization.XmlPrefixBoundToNamespace, prefix, nameSpace.Uri, uri), "prefix"));
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\MessageHeaders.cs (2)
646throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageHeaderException(string.Format(SRServiceModel.MultipleMessageHeadersWithActor, name, ns, actors[0]), name, ns, true));
679throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageHeaderException(string.Format(SRServiceModel.MultipleMessageHeadersWithActor, name, ns, actors[0]), name, ns, true));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MessageContractImporter.cs (11)
409AddError(string.Format(SRServiceModel.SFxInconsistentWsdlOperationStyleInOperationMessages, operation.Name, inferredOperationStyle, style));
780throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxWsdlMessageDoesNotContainPart3, name, message.Name, message.ServiceDescription.TargetNamespace)));
1223AddWarning(string.Format(SRServiceModel.SFxFaultCannotBeImported, faultName, operationName, message));
1335AddError(string.Format(SRServiceModel.SFxInconsistentBindingBodyParts, messageBinding.OperationBinding.Name, messageBinding.OperationBinding.Binding.Name, partName));
1395AddError(string.Format(SRServiceModel.SFxInconsistentWsdlOperationStyleInHeader, part.Name, headerStyle, style));
1456throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxWsdlPartMustHaveElementOrType, part.Name, part.Message.Name, part.Message.Namespaces)));
1483throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxWsdlPartMustHaveElementOrType, part.Name, part.Message.Name, part.Message.Namespaces)));
2185string warning = string.Format(SRServiceModel.IgnoreSoapHeaderBinding3, messageBinding.OperationBinding.Name, messageBinding.OperationBinding.Binding.ServiceDescription.TargetNamespace, reason);
2193string warning = string.Format(SRServiceModel.IgnoreSoapHeaderBinding3, messageBinding.OperationBinding.Name, messageBinding.OperationBinding.Binding.ServiceDescription.TargetNamespace, reason);
2205string warning = string.Format(SRServiceModel.IgnoreSoapFaultBinding3, faultBinding.OperationBinding.Name, faultBinding.OperationBinding.Binding.ServiceDescription.TargetNamespace, reason);
2218string warning = string.Format(SRServiceModel.IgnoreMessagePart3, message.Name, message.ServiceDescription.TargetNamespace, reason);
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\MetadataExchangeClient.cs (4)
758string.Format(SRServiceModel.SFxMetadataExchangeClientCouldNotCreateWebRequest, _location, this.dialect, this.identifier), e));
805string.Format(SRServiceModel.SFxMetadataExchangeClientCouldNotCreateWebRequest, _location, this.dialect, this.identifier), e));
965string.Format(SRServiceModel.SFxMetadataExchangeClientCouldNotCreateChannelFactory, _address, this.dialect, this.identifier), e));
1018string.Format(SRServiceModel.SFxMetadataExchangeClientCouldNotCreateChannelFactory, _address, this.dialect, this.identifier), e));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\OperationGenerator.cs (4)
903throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_DifferentWrapperNs, parent._request.MessageName, parent._request.Body.WrapperNamespace, parent._contractNS)));
907throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_DifferentWrapperName, parent._request.MessageName, parent._request.Body.WrapperName, defaultName.EncodedName)));
912throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_DifferentWrapperNs, parent._response.MessageName, parent._response.Body.WrapperNamespace, parent._contractNS)));
915throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ParameterModeException(string.Format(SRServiceModel.SFxCannotImportAsParameters_DifferentWrapperName, parent._response.MessageName, parent._response.Body.WrapperName, defaultName.EncodedName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\ServiceReflector.cs (5)
395throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.ServicesWithoutAServiceContractAttributeCan2, operationContractProviderType.Name, method.Name, service.FullName)));
493string.Format(SRServiceModel.SFxErrorReflectingOnMethod3,
570throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxDisallowedAttributeCombination, attrProvider, attrType.FullName, otherType.FullName)));
793throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.NoEndMethodFoundForAsyncBeginMethod3, beginMethod.Name, beginMethod.DeclaringType.FullName, endMethodName)));
797throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.MoreThanOneEndMethodFoundForAsyncBeginMethod3, beginMethod.Name, beginMethod.DeclaringType.FullName, endMethodName)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\TypeLoader.cs (9)
148throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(
372throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxKnownTypeAttributeUnknownMethod3, provider, knownTypeAttribute.MethodName, type.FullName)));
375throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.SFxKnownTypeAttributeReturnType3, provider, knownTypeAttribute.MethodName, type.FullName)));
725string.Format(SRServiceModel.InAContractInheritanceHierarchyIfParentHasCallbackChildMustToo,
783string.Format(SRServiceModel.CannotInheritTwoOperationsWithTheSameName3,
882throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.CannotHaveTwoOperationsWithTheSameName3, method1Name, method2Name, reflectionInfo.iface)));
888throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.CannotHaveTwoOperationsWithTheSameName3, method1Name, method2Name, reflectionInfo.iface)));
894throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(string.Format(SRServiceModel.CannotHaveTwoOperationsWithTheSameName3, method1Name, method2Name, reflectionInfo.iface)));
1091string.Format(SRServiceModel.SFxFaultContractDuplicateElement, operationName, fault.ElementName, fault.Namespace)));
FrameworkFork\System.ServiceModel\System\ServiceModel\Description\WsdlImporter.cs (4)
781string errorMsg = string.Format(SRServiceModel.OptionalWSDLExtensionIgnored, qName.Name, qName.Namespace, xPath);
1882string dependencyMessage = string.Format(SRServiceModel.WsdlImportErrorDependencyDetail, GetElementName(wieInner.SourceItem), GetElementName(item), CreateXPathString(wieInner.SourceItem));
1883errormessage = string.Format(SRServiceModel.WsdlImportErrorMessageDetail, GetElementName(item), CreateXPathString(wie.SourceItem), dependencyMessage);
1887errormessage = string.Format(SRServiceModel.WsdlImportErrorMessageDetail, GetElementName(item), CreateXPathString(wie.SourceItem), wie.Message);
FrameworkFork\System.ServiceModel\System\ServiceModel\Security\SecurityTimestamp.cs (2)
177throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(string.Format(SRServiceModel.TimeStampHasExpiryTimeInPast, this.ExpiryTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), now.ToString(DefaultFormat, CultureInfo.CurrentCulture), allowedClockSkew)));
183throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new MessageSecurityException(string.Format(SRServiceModel.TimeStampHasCreationTimeInFuture, this.CreationTimeUtc.ToString(DefaultFormat, CultureInfo.CurrentCulture), now.ToString(DefaultFormat, CultureInfo.CurrentCulture), allowedClockSkew)));
Infrastructure.Common (3)
Infrastructure.IntegrationTests (1)
Metrics (1)
Metrics.Legacy (1)
Microsoft.Build (6)
Microsoft.Build.Engine.OM.UnitTests (5)
Instance\ProjectItemInstance_Tests.cs (4)
992string.Format(content, property, propertyValue, include);
1030string.Format(content, property, propertyValue, include);
1061string.Format(content, property, propertyValue, include);
1105string.Format(content, property, propertyValue, include);
Microsoft.Build.Engine.UnitTests (8)
Evaluation\ImportFromMSBuildExtensionsPath_Tests.cs (4)
487String.Format(extnTargetsFileContentTemplate, String.Empty, "FromExtn2", "<Import Project='$(MSBuildExtensionsPath32)\\bar\\extn2.proj' />"));
489String.Format(extnTargetsFileContentTemplate, 2, "FromExtn3", "<Import Project='$(MSBuildExtensionsPath64)\\xyz\\extn3.proj' />"));
491String.Format(extnTargetsFileContentTemplate, 3, String.Empty, String.Empty));
495ToolsetConfigurationReaderTestHelper.WriteConfigFile(String.Format(configFileContents, extnDir1, extnDir2, extnDir3));
Microsoft.Build.Tasks.Core (2)
Microsoft.Build.Tasks.UnitTests (2)
Microsoft.Build.UnitTests.Shared (1)
Microsoft.CodeAnalysis (8)
Microsoft.CodeAnalysis.Analyzers (3)
Microsoft.CodeAnalysis.Analyzers.UnitTests (4)
MetaAnalyzers\DiagnosticDescriptorCreationAnalyzerTests.cs (4)
2378source: string.Format(csharpSourceFormat, "{|#0:Title|}", "{|#1:Title|}", csharpTitleExpression),
2379fixedSource: string.Format(csharpSourceFormat, "Title", "Title", csharpTitleExpression),
2417source: string.Format(basicSourceFormat, "{|#0:Title|}", "{|#1:Title|}", basicTitleExpression),
2418fixedSource: string.Format(basicSourceFormat, "Title", "Title", basicTitleExpression),
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
Microsoft.CodeAnalysis.BannedApiAnalyzers (3)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (8)
NavigateTo\NavigateToTests.cs (2)
593VerifyNavigateToResultItem(item, "Bar", "[|Bar|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPrivate, string.Format(FeaturesResources.in_0_1_2, "Goo", "test1.cs", "Test"));
609VerifyNavigateToResultItem(item, "Bar", "[|Bar|]()", PatternMatchKind.Exact, NavigateToItemKind.Method, Glyph.MethodPrivate, string.Format(FeaturesResources.in_0_1_2, "Goo", "test1.cs", "Test"));
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (12)
Attributes\InternalsVisibleToAndStrongNameTests.cs (8)
107string s = String.Format("{0}{1}{2}", @"[assembly: System.Reflection.AssemblyKeyFile(@""", x, @""")] public class C {}");
137string s = string.Format("{0}{1}{2}", @"[assembly: System.Reflection.AssemblyKeyFile(@""", keyFileName, @""")] public class C {}");
166string s = String.Format("{0}{1}{2}", @"[assembly: System.Reflection.AssemblyKeyFile(@""..\", keyFileName, @""")] public class C {}");
191string code = String.Format("{0}{1}{2}", @"[assembly: System.Reflection.AssemblyKeyFile(@""", s_keyPairFile, @""")] public class C {}");
206string code = String.Format("{0}{1}{2}", @"[assembly: System.Reflection.AssemblyKeyFile(@""", s_keyPairFile, @""")] public class C {}");
226string s = String.Format("{0}{1}{2}", @"[assembly: System.Reflection.AssemblyKeyFile(@""..\", keyFileName, @""")] public class C {}");
1574string s = String.Format("{0}{1}{2}", @"[assembly: System.Reflection.AssemblyKeyFile(@""", x, @""")] public class C {}");
1776string s = String.Format("{0}{1}{2}", @"[assembly: System.Reflection.AssemblyKeyFile(@""", x, @""")] public class C {}");
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (11)
Semantics\ConstantTests.cs (9)
3026i == 0 ? string.Format(template, i, i + 1, i + 1) :
3027i == (numConstants - 1) ? string.Format(template, i, i - 1, i - 1) :
3028string.Format(template, i, i - 1, i + 1)));
3113i == 0 ? string.Format(template, i, i + 1, i + 1) :
3114i == (numConstants - 1) ? string.Format(template, i, i - 1, i - 1) :
3115string.Format(template, i, i - 1, i + 1)));
3206i == 0 ? string.Format(template, i, i + 1, i + 1) :
3207i == (numEnums - 1) ? string.Format(template, i, i - 1, i - 1) :
3208string.Format(template, i, i - 1, i + 1)));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
LexicalAndXml\PreprocessorTests.cs (6)
4128var text = string.Format(@"#pragma checksum ""{0}"" ""{1}"" ""{2}""", file, guid, bytes);
4196var text = string.Format(@"#pragma checksum ""{0}"" ""{1}"" ""{2}""", file, guid, bytes);
4214var text = string.Format(@"#pragma checksum ""{0}"" ""{1}"" ""{2}""", file, guid, bytes);
4234var text = string.Format(@"#pragma checksum ""{0}"" ""{1}"" ""{2}"" /* Test Comment */", file, guid, bytes);
4254var text = string.Format(@"#pragma checksum ""{0}"", ""{1}"" ""{2}"" ", file, guid, bytes);
4274var text = string.Format(@"class Test {{
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
Microsoft.CodeAnalysis.Features (4)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Microsoft.CodeAnalysis.Features.UnitTests (3)
Microsoft.CodeAnalysis.NetAnalyzers.UnitTests (4)
Microsoft.NetCore.Analyzers\Runtime\PreferStreamReadAsyncMemoryOverloadsTests.cs (4)
1189string.Format(_sourceCSharp, GetByteArrayWithoutDataCSharp(isEmptyByteDeclaration), originalArgs, GetConfigureAwaitCSharp(isEmptyConfigureAwait)),
1190string.Format(_sourceCSharp, GetByteArrayWithoutDataCSharp(isEmptyByteDeclaration), fixedArgs, GetConfigureAwaitCSharp(isEmptyConfigureAwait)),
1195string.Format(_sourceVisualBasic, GetByteArrayWithoutDataVisualBasic(isEmptyByteDeclaration), originalArgs, GetConfigureAwaitVisualBasic(isEmptyConfigureAwait)),
1196string.Format(_sourceVisualBasic, GetByteArrayWithoutDataVisualBasic(isEmptyByteDeclaration), fixedArgs, GetConfigureAwaitVisualBasic(isEmptyConfigureAwait)),
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (3)
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
Microsoft.CodeAnalysis.Test.Utilities (2)
Microsoft.CodeAnalysis.UnitTests (5)
Microsoft.CodeAnalysis.VisualBasic (4)
Microsoft.CodeAnalysis.Workspaces (9)
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Microsoft.CSharp (1)
Microsoft.Data.Analysis (5)
Microsoft.DotNet.ApiCompatibility (14)
Rules\MembersMustExist.cs (4)
41string.Format(Resources.TypeMissingOnSide, left.ToDisplayString(SymbolExtensions.DisplayFormat), leftMetadata, rightMetadata),
51string.Format(Resources.TypeMissingOnSide, right.ToDisplayString(SymbolExtensions.DisplayFormat), rightMetadata, leftMetadata),
70string.Format(Resources.MemberExistsOnLeft, left.ToDisplayString(SymbolExtensions.DisplayFormat), leftMetadata, rightMetadata),
83string.Format(Resources.MemberExistsOnRight, right.ToDisplayString(SymbolExtensions.DisplayFormat), leftMetadata, rightMetadata),
Microsoft.DotNet.Cli.Utils (1)
Microsoft.DotNet.GenAPI (1)
Microsoft.DotNet.MSBuildSdkResolver.Tests (1)
Microsoft.DotNet.RemoteExecutor (1)
Microsoft.DotNet.SignCheckLibrary (2)
Microsoft.Extensions.Caching.Memory (1)
Microsoft.Extensions.Configuration (1)
Microsoft.Extensions.Configuration.Abstractions (1)
Microsoft.Extensions.Configuration.Binder (1)
Microsoft.Extensions.Configuration.CommandLine (1)
Microsoft.Extensions.Configuration.FileExtensions (1)
Microsoft.Extensions.Configuration.Ini (1)
Microsoft.Extensions.Configuration.Json (1)
Microsoft.Extensions.Configuration.UserSecrets (1)
Microsoft.Extensions.Configuration.Xml (1)
Microsoft.Extensions.DependencyInjection (1)
Microsoft.Extensions.DependencyInjection.Abstractions (1)
Microsoft.Extensions.DependencyModel (1)
Microsoft.Extensions.Diagnostics (1)
Microsoft.Extensions.Diagnostics.Abstractions (1)
Microsoft.Extensions.FileProviders.Abstractions (1)
Microsoft.Extensions.FileProviders.Physical (1)
Microsoft.Extensions.FileSystemGlobbing (1)
Microsoft.Extensions.Hosting (1)
Microsoft.Extensions.Hosting.Abstractions (1)
Microsoft.Extensions.Http (1)
Microsoft.Extensions.Logging (1)
Microsoft.Extensions.Logging.Abstractions (1)
Microsoft.Extensions.Logging.Configuration (1)
Microsoft.Extensions.Logging.Console (1)
Microsoft.Extensions.Logging.Generators (1)
Microsoft.Extensions.Options (1)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Extensions.Primitives (1)
Microsoft.Interop.ComInterfaceGenerator (1)
Microsoft.Interop.JavaScript.JSImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator (1)
Microsoft.Interop.LibraryImportGenerator.Downlevel (1)
Microsoft.Interop.SourceGeneration (1)
Microsoft.Maui (1)
Microsoft.Maui.Controls (1)
Microsoft.Maui.Controls.Build.Tasks (1)
Microsoft.Maui.Controls.SourceGen (1)
Microsoft.ML.Core (1)
Microsoft.ML.Core.Tests (1)
Microsoft.ML.Data (2)
Microsoft.ML.DataView (1)
Microsoft.ML.EntryPoints (1)
Microsoft.ML.Predictor.Tests (2)
Microsoft.ML.Tests (2)
Microsoft.ML.Transforms (5)
Microsoft.NET.Build.Tasks (4)
Microsoft.NET.Build.Tests (2)
Microsoft.NET.Sdk.Publish.Tasks (2)
Microsoft.NET.Sdk.Publish.Tasks.Tests (2)
Microsoft.TemplateEngine.Cli (6)
Microsoft.VisualBasic.Core (1)
Microsoft.VisualStudio.LanguageServices (1)
Microsoft.Win32.Registry (1)
Microsoft.Win32.Registry.AccessControl (1)
Microsoft.Win32.SystemEvents (1)
MSBuild (1)
MSBuildTaskHost (1)
PresentationBuildTasks (1)
PresentationCore (1)
PresentationFramework (1)
PresentationUI (1)
ReachFramework (1)
Roslyn.Diagnostics.Analyzers (3)
Roslyn.Test.PdbUtilities (1)
Roslyn.Test.Performance.Utilities (1)
Roslyn.VisualStudio.DiagnosticsWindow (1)
System.CodeDom (1)
System.Collections (1)
System.Collections.Concurrent (1)
System.Collections.Immutable (1)
System.Collections.NonGeneric (1)
System.Collections.Specialized (1)
System.ComponentModel.Annotations (1)
System.ComponentModel.Composition (1)
System.ComponentModel.Composition.Registration (1)
System.ComponentModel.EventBasedAsync (1)
System.ComponentModel.Primitives (1)
System.ComponentModel.TypeConverter (1)
System.Composition.Convention (1)
System.Composition.Hosting (1)
System.Composition.Runtime (1)
System.Composition.TypedParts (1)
System.Configuration.ConfigurationManager (1)
System.Console (1)
System.Data.Common (3)
System\Data\Common\DataCommonEventSource.cs (2)
45Trace(string.Format(format, arg0, arg1, arg2));
91internal long EnterScope<T1, T2, T3>(string format, T1 arg1, T2 arg2, T3 arg3) => Log.IsEnabled() ? EnterScope(string.Format(format, arg1, arg2, arg3)) : 0;
System.Data.Odbc (1)
System.Data.OleDb (1)
System.Diagnostics.DiagnosticSource (1)
System.Diagnostics.EventLog (1)
System.Diagnostics.FileVersionInfo (1)
System.Diagnostics.PerformanceCounter (1)
System.Diagnostics.Process (1)
System.Diagnostics.TextWriterTraceListener (1)
System.Diagnostics.TraceSource (1)
System.DirectoryServices (1)
System.DirectoryServices.AccountManagement (1)
System.DirectoryServices.Protocols (1)
System.Drawing.Common (1)
System.Drawing.Primitives (1)
System.Formats.Asn1 (1)
System.Formats.Cbor (1)
System.Formats.Nrbf (1)
System.Formats.Tar (1)
System.IO.Compression (1)
System.IO.Compression.Brotli (1)
System.IO.Compression.ZipFile (1)
System.IO.FileSystem.AccessControl (1)
System.IO.FileSystem.DriveInfo (1)
System.IO.FileSystem.Watcher (1)
System.IO.Hashing (1)
System.IO.IsolatedStorage (1)
System.IO.MemoryMappedFiles (1)
System.IO.Packaging (1)
System.IO.Pipelines (1)
System.IO.Pipes (1)
System.IO.Pipes.AccessControl (1)
System.IO.Ports (1)
System.Linq (1)
System.Linq.AsyncEnumerable (1)
System.Linq.Expressions (1)
System.Linq.Parallel (1)
System.Linq.Queryable (1)
System.Management (1)
System.Memory (1)
System.Memory.Data (1)
System.Net.Http (2)
System.Net.Http.Json (1)
System.Net.Http.WinHttpHandler (1)
System.Net.HttpListener (2)
System.Net.Mail (2)
System.Net.NameResolution (2)
System.Net.NetworkInformation (1)
System.Net.Ping (1)
System.Net.Primitives (2)
System.Net.Quic (2)
System.Net.Requests (2)
System.Net.Security (2)
System.Net.ServerSentEvents (1)
System.Net.Sockets (2)
System.Net.WebClient (1)
System.Net.WebHeaderCollection (1)
System.Net.WebSockets (2)
System.Net.WebSockets.Client (1)
System.Numerics.Tensors (1)
System.ObjectModel (1)
System.Private.CoreLib (2)
System.Private.DataContractSerialization (2)
System.Private.Uri (1)
System.Private.Xml (1)
System.Private.Xml.Linq (1)
System.Reflection.Context (1)
System.Reflection.DispatchProxy (1)
System.Reflection.Emit (1)
System.Reflection.Metadata (1)
System.Reflection.MetadataLoadContext (1)
System.Reflection.TypeExtensions (1)
System.Resources.Extensions (1)
System.Resources.Writer (1)
System.Runtime.Caching (1)
System.Runtime.InteropServices (1)
System.Runtime.InteropServices.JavaScript (1)
System.Runtime.Numerics (1)
System.Runtime.Serialization.Formatters (1)
System.Runtime.Serialization.Primitives (1)
System.Runtime.Serialization.Schema (1)
System.Security.AccessControl (1)
System.Security.Claims (1)
System.Security.Cryptography (1)
System.Security.Cryptography.Cose (1)
System.Security.Cryptography.Pkcs (1)
System.Security.Cryptography.ProtectedData (1)
System.Security.Cryptography.Xml (1)
System.Security.Permissions (1)
System.Security.Principal.Windows (1)
System.ServiceModel.Federation (1)
System.ServiceModel.Http (1)
System.ServiceModel.NetFramingBase (1)
System.ServiceModel.NetNamedPipe (1)
System.ServiceModel.NetTcp (1)
System.ServiceModel.Primitives (2)
System.ServiceModel.Primitives.Tests (6)
ServiceModel\SynchronizedCollection.cs (3)
25Assert.True(coll[i] == i, string.Format("coll element {0} was wrong! Expected: {1} got: {2} ", i, i, coll[i]));
39Assert.True(coll3[i] == i + 1, string.Format("coll3 element {0} was wrong! expected: {1} got: {2}", i, i+1, coll3[i]));
58Assert.True(array[i + 1] == i, string.Format("After CopyTo, Element {0} was wrong! Expected: {1} got: {2}", i, i+1, array[i + 1]));
System.ServiceModel.Syndication (1)
System.ServiceModel.UnixDomainSocket (1)
System.ServiceProcess.ServiceController (1)
System.Speech (1)
System.Text.Encoding.CodePages (1)
System.Text.Encodings.Web (1)
System.Text.Json (1)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions (1)
System.Text.RegularExpressions.Generator (1)
System.Threading (1)
System.Threading.AccessControl (1)
System.Threading.Channels (1)
System.Threading.RateLimiting (1)
System.Threading.Tasks.Dataflow (1)
System.Threading.Tasks.Parallel (1)
System.Transactions.Local (1)
System.Windows.Controls.Ribbon (1)
System.Windows.Extensions (1)
System.Windows.Forms (1)
System.Windows.Forms.Analyzers.CSharp (1)
System.Windows.Forms.Design (3)
System.Windows.Input.Manipulations (1)
System.Xaml (1)
Text.Analyzers (3)
UIAutomationClient (1)
UIAutomationClientSideProviders (1)
UIAutomationProvider (1)
UIAutomationTypes (1)
UnitTests.Common (5)
TestHelpers.cs (5)
128errorBuilder.AppendLine(String.Format("{0} expected Type = {0}, actual = {1}", prefix, expectedType, contractType));
135errorBuilder.AppendLine(String.Format("{0} operations.Count: expected={1}, actual = {2}", prefix, expectedOperations.Length, ops.Count));
151errorBuilder.AppendLine(String.Format("{0} expected operation Name = {1}, actual = {2}",
178errorBuilder.AppendLine(String.Format("{0} could not find expected message action {1} in operation {2}",
243errorBuilder.AppendLine(String.Format("action {0}, section {1}, expected part Name = {2} but did not find it.",
WindowsFormsIntegration (1)