182 references to ExpandIntoStringLeaveEscaped
Microsoft.Build (40)
BackEnd\Components\RequestBuilder\IntrinsicTasks\ItemGroupIntrinsicTask.cs (4)
194
string evaluatedValue = bucket.Expander.
ExpandIntoStringLeaveEscaped
(metadataInstance.Value, expanderOptions, metadataInstance.Location);
339
string evaluatedValue = bucket.Expander.
ExpandIntoStringLeaveEscaped
(metadataInstance.Value, ExpanderOptions.ExpandAll, metadataInstance.Location);
394
string evaluatedInclude = expander.
ExpandIntoStringLeaveEscaped
(originalItem.Include, ExpanderOptions.ExpandPropertiesAndMetadata, originalItem.IncludeLocation);
405
string evaluatedExclude = expander.
ExpandIntoStringLeaveEscaped
(originalItem.Exclude, ExpanderOptions.ExpandAll, originalItem.ExcludeLocation);
BackEnd\Components\RequestBuilder\IntrinsicTasks\PropertyGroupIntrinsicTask.cs (1)
85
string evaluatedValue = bucket.Expander.
ExpandIntoStringLeaveEscaped
(property.Value, ExpanderOptions.ExpandAll, property.Location);
Definition\Project.cs (3)
3449
string evaluatedExistingInclude = _data.Expander.
ExpandIntoStringLeaveEscaped
(candidateExistingItemXml.Include, ExpanderOptions.ExpandProperties, candidateExistingItemXml.IncludeLocation);
3503
string evaluatedValueEscaped = _data.Expander.
ExpandIntoStringLeaveEscaped
(unevaluatedValue, ExpanderOptions.ExpandProperties, propertyLocation);
3560
string evaluatedValueEscaped = _data.Expander.
ExpandIntoStringLeaveEscaped
(unevaluatedValue, ExpanderOptions.ExpandAll, metadataLocation);
Definition\ProjectItem.cs (1)
507
value = expander.
ExpandIntoStringLeaveEscaped
(metadatum.EvaluatedValueEscaped, ExpanderOptions.ExpandBuiltInMetadata, metadatum.Location);
Evaluation\Evaluator.cs (7)
371
string evaluatedIncludeEscaped = expander.
ExpandIntoStringLeaveEscaped
(unevaluatedIncludeEscaped, ExpanderOptions.ExpandProperties, itemElement.IncludeLocation);
951
string expanded = _expander.
ExpandIntoStringLeaveEscaped
(currentProjectOrImport.DefaultTargets, ExpanderOptions.ExpandProperties, currentProjectOrImport.DefaultTargetsLocation);
1302
string evaluatedValue = _expander.
ExpandIntoStringLeaveEscaped
(propertyElement.Value, ExpanderOptions.ExpandProperties, propertyElement.Location);
1360
string evaluatedValue = _expander.
ExpandIntoStringLeaveEscaped
(metadataElement.Value, ExpanderOptions.ExpandPropertiesAndCustomMetadata, itemDefinitionElement.Location);
1768
return expander.
ExpandIntoStringLeaveEscaped
(value, Options, location);
1973
string importExpressionEscaped = _expander.
ExpandIntoStringLeaveEscaped
(unescapedExpression, ExpanderOptions.ExpandProperties, importElement.ProjectLocation);
2483
_expander.
ExpandIntoStringLeaveEscaped
(
Evaluation\Expander.cs (2)
477
string result =
ExpandIntoStringLeaveEscaped
(expression, options, elementLocation);
533
return ExpressionShredder.SplitSemiColonSeparatedList(
ExpandIntoStringLeaveEscaped
(expression, options, elementLocation));
Evaluation\ItemSpec.cs (1)
187
evaluatedItemspecEscaped = Expander.
ExpandIntoStringLeaveEscaped
(
Evaluation\LazyItemEvaluator.cs (5)
561
string evaluatedExclude = _expander.
ExpandIntoStringLeaveEscaped
(itemElement.Exclude, ExpanderOptions.ExpandProperties, itemElement.ExcludeLocation);
590
string evaluatedmatchOnMetadata = _expander.
ExpandIntoStringLeaveEscaped
(itemElement.MatchOnMetadata, ExpanderOptions.ExpandProperties, itemElement.MatchOnMetadataLocation);
599
string metadataExpanded = _expander.
ExpandIntoStringLeaveEscaped
(matchOnMetadataSplit, ExpanderOptions.ExpandPropertiesAndItems, itemElement.MatchOnMetadataLocation);
639
yield return expander.
ExpandIntoStringLeaveEscaped
(
644
yield return expander.
ExpandIntoStringLeaveEscaped
(
Evaluation\LazyItemEvaluator.IncludeOperation.cs (1)
49
string excludeExpanded = _expander.
ExpandIntoStringLeaveEscaped
(exclude, ExpanderOptions.ExpandPropertiesAndItems, _itemElement.ExcludeLocation);
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (2)
213
string evaluatedValue = _expander.
ExpandIntoStringLeaveEscaped
(metadataElement.Value, metadataExpansionOptions, metadataElement.Location);
251
string evaluatedValue = _expander.
ExpandIntoStringLeaveEscaped
(metadataElement.Value, metadataExpansionOptions, metadataElement.Location);
Instance\ProjectItemInstance.cs (1)
1340
return expander.
ExpandIntoStringLeaveEscaped
(metadatum.EvaluatedValueEscaped, ExpanderOptions.ExpandBuiltInMetadata, ElementLocation.EmptyLocation);
Instance\TaskRegistry.cs (12)
317
string taskName = expander.
ExpandIntoStringLeaveEscaped
(projectUsingTaskXml.TaskName, expanderOptions, projectUsingTaskXml.TaskNameLocation);
328
string taskFactory = expander.
ExpandIntoStringLeaveEscaped
(projectUsingTaskXml.TaskFactory, expanderOptions, projectUsingTaskXml.TaskFactoryLocation);
337
assemblyFile = expander.
ExpandIntoStringLeaveEscaped
(projectUsingTaskXml.AssemblyFile, expanderOptions, projectUsingTaskXml.AssemblyFileLocation);
341
assemblyName = expander.
ExpandIntoStringLeaveEscaped
(projectUsingTaskXml.AssemblyName, expanderOptions, projectUsingTaskXml.AssemblyNameLocation);
432
string runtime = expander.
ExpandIntoStringLeaveEscaped
(projectUsingTaskXml.Runtime, expanderOptions, projectUsingTaskXml.RuntimeLocation);
433
string architecture = expander.
ExpandIntoStringLeaveEscaped
(projectUsingTaskXml.Architecture, expanderOptions, projectUsingTaskXml.ArchitectureLocation);
434
string overrideUsingTask = expander.
ExpandIntoStringLeaveEscaped
(projectUsingTaskXml.Override, expanderOptions, projectUsingTaskXml.OverrideLocation);
1643
string expandedType = expander.
ExpandIntoStringLeaveEscaped
(taskElement.Evaluate, expanderOptions, taskElement.EvaluateLocation);
1661
_inlineTaskXmlBody = expander.
ExpandIntoStringLeaveEscaped
(taskElement.TaskBody, expanderOptions, taskElement.Location);
1684
string expandedType = expander.
ExpandIntoStringLeaveEscaped
(parameter.ParameterType, expanderOptions, parameter.ParameterTypeLocation);
1722
string expandedOutput = expander.
ExpandIntoStringLeaveEscaped
(parameter.Output, expanderOptions, parameter.OutputLocation);
1748
string expandedRequired = expander.
ExpandIntoStringLeaveEscaped
(parameter.Required, expanderOptions, parameter.RequiredLocation);
Microsoft.Build.Engine.UnitTests (142)
Evaluation\Expander_Tests.cs (142)
164
string result = expander.
ExpandIntoStringLeaveEscaped
("$()", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
311
string result = expander.
ExpandIntoStringLeaveEscaped
("[@(type->'%($(a)), '%'')]", ExpanderOptions.ExpandAll, MockElementLocation.Instance);
325
string result = expander.
ExpandIntoStringLeaveEscaped
("[@(i->'%(Meta9))']", ExpanderOptions.ExpandAll, MockElementLocation.Instance);
341
string result = expander.
ExpandIntoStringLeaveEscaped
("@(i->'%(Meta0)'->'%(Directory)'->Distinct())", ExpanderOptions.ExpandItems, MockElementLocation.Instance);
357
string result = expander.
ExpandIntoStringLeaveEscaped
("[@(i->'%(Meta0)'->'%(Directory)'->Distinct())]", ExpanderOptions.ExpandItems, MockElementLocation.Instance);
371
string result = expander.
ExpandIntoStringLeaveEscaped
("@(i->'%(MetaBlank)'->'%(Directory)'->Distinct())", ExpanderOptions.ExpandItems, MockElementLocation.Instance);
1561
expander.
ExpandIntoStringLeaveEscaped
(xmlattribute.Value, ExpanderOptions.ExpandAll, MockElementLocation.Instance));
1643
string expandedString = expander.
ExpandIntoStringLeaveEscaped
(xmlattribute.Value, ExpanderOptions.ExpandAll, MockElementLocation.Instance);
1730
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\VSTSDB@VSTSDBDirectory)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
1746
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$(Solutions.VSVersion)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
1764
expander.
ExpandIntoStringLeaveEscaped
(@"$(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\VSTSDB@XXXXDBDirectory)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
1781
expander.
ExpandIntoStringLeaveEscaped
(@"$(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\VSTSDB@VSTSDBDirectoryX)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
1797
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$(Registry:HKEY_CURRENT_USER\Software\Microsoft\MSBuild_test@Value)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
1822
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$(Registry:HKEY_CURRENT_USER\Software\Microsoft\MSBuild_test@Value)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
1844
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$(Registry:HKEY_CURRENT_USER\Software\Microsoft\MSBuild_test@Value)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
1867
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$(Registry:HKEY_CURRENT_USER\Software\Microsoft\MSBuild_test@Value)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
1889
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$(Registry:HKEY_CURRENT_USER\Software\Microsoft\MSBuild_test@Value)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
1911
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$(Registry:HKEY_CURRENT_USER\Software\Microsoft\MSBuild_test@Value)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2004
string result = expander.
ExpandIntoStringLeaveEscaped
("$([System.Convert]::ChangeType('null',$(SomeStuff.GetTypeCode())))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2020
string result = expander.
ExpandIntoStringLeaveEscaped
("$([System.Environment]::GetEnvironmentVariable(`_NonExistentVar`))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2024
result = expander.
ExpandIntoStringLeaveEscaped
("prefix_$([System.Environment]::GetEnvironmentVariable(`_NonExistentVar`))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2039
string result = expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.ToUpperInvariant())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2055
string result = expander.
ExpandIntoStringLeaveEscaped
("$(FileName.Trim())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2071
string result = expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.Length)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2087
string result = expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.get_Length())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2103
string result = expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.ToLowerInvariant())_goop", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2119
string result = expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.SubString(13))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2135
string result = expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.SubString(8))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2152
string result = expander.
ExpandIntoStringLeaveEscaped
("$(MyPath.SubString($(RootPath.Length)))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2169
string result = expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.SubString(1$(Value)))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2186
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$(PathRoot2.Endswith(" + Path.DirectorySeparatorChar + "))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2188
result = expander.
ExpandIntoStringLeaveEscaped
(@"$(PathRoot.Endswith(" + Path.DirectorySeparatorChar + "))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2204
string result = expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.SubString(1$(Value)).ToLowerInvariant().SubString($(Value)))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2222
string result = expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.ToUpperInvariant().ToLowerInvariant())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2238
string result = expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.SubString($(Value.get_Length())))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2253
string result = expander.
ExpandIntoStringLeaveEscaped
("$([MSBuild]::__GetListTest())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2269
string result = expander.
ExpandIntoStringLeaveEscaped
("$(List.Split(-))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2286
string result = expander.
ExpandIntoStringLeaveEscaped
("$([System.Environment]::GetEnvironmentVariables())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ToUpperInvariant();
2304
string result = expander.
ExpandIntoStringLeaveEscaped
("$(List.Split($(Splitter.ToCharArray())))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2357
expander.
ExpandIntoStringLeaveEscaped
("[$(SomeStuff($(Value)))]", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2375
expander.
ExpandIntoStringLeaveEscaped
("[$(SomeStuff.Lgg)]", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2392
expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.ToUpperInvariant().Foo)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2409
expander.
ExpandIntoStringLeaveEscaped
("[$(SomeStuff($(System.DateTime.Now)))]", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2426
expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.ToLowerInvariant()_goop)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2442
expander.
ExpandIntoStringLeaveEscaped
("[$(SomeStuff.Substring(HELLO!))]", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2458
expander.
ExpandIntoStringLeaveEscaped
("[$(SomeStuff.Substring(-10))]", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2473
expander.
ExpandIntoStringLeaveEscaped
("$(([System.DateTime]::Now).ToString(\"MM.dd.yyyy\"))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2486
string result = expander.
ExpandIntoStringLeaveEscaped
("[%(LowerLetterList.Identity.ToUpper())]", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2502
string result = expander.
ExpandIntoStringLeaveEscaped
("$(System)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2521
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::MakeRelative($(ParentPath), `$(FilePath)`))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2538
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.IO.Path]::Combine($(Drive), `$(File)`))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2578
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.Version]::new($(ver1)).CompareTo($([System.Version]::new($(ver2)))))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2599
string result = expander.
ExpandIntoStringLeaveEscaped
("$([System.Type]::GetType(`System.Type`))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2626
string result = expander.
ExpandIntoStringLeaveEscaped
("$([System.Diagnostics.Process]::GetCurrentProcess().Id)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2655
Assert.Throws<InvalidProjectFileException>(() => expander.
ExpandIntoStringLeaveEscaped
("$([Microsoft.FOO.FileIO.FileSystem]::CurrentDirectory)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance));
2656
Assert.Throws<InvalidProjectFileException>(() => expander.
ExpandIntoStringLeaveEscaped
("$([Foo.Baz]::new())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance));
2657
Assert.Throws<InvalidProjectFileException>(() => expander.
ExpandIntoStringLeaveEscaped
("$([Foo]::new())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance));
2658
Assert.Throws<InvalidProjectFileException>(() => expander.
ExpandIntoStringLeaveEscaped
("$([Foo.]::new())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance));
2659
Assert.Throws<InvalidProjectFileException>(() => expander.
ExpandIntoStringLeaveEscaped
("$([.Foo]::new())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance));
2660
Assert.Throws<InvalidProjectFileException>(() => expander.
ExpandIntoStringLeaveEscaped
("$([.]::new())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance));
2661
Assert.Throws<InvalidProjectFileException>(() => expander.
ExpandIntoStringLeaveEscaped
("$([]::new())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance));
2683
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.IO.Path]::Combine(`" + s_rootPathPrefix + "`, `$(File)`))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2699
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.IO.Path]::Combine(`" +
2717
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.IO.Path]::Combine(`" +
2735
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.IO.Path]::Combine(`" +
2752
string result = expander.
ExpandIntoStringLeaveEscaped
("$([System.DateTime]::Parse(" + dateTime + ").ToString(\"yyyy/MM/dd HH:mm:ss\"))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2767
string result = expander.
ExpandIntoStringLeaveEscaped
("$([System.DateTime]::Parse(" + dateTime + ").ToString(\"MM.dd.yyyy\"))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2782
string result = expander.
ExpandIntoStringLeaveEscaped
("$([System.DateTime]::Now.ToString(\"MM.dd.yyyy\"))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2798
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.IO.Path]::Combine(`" +
2817
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.Text.RegularExpressions.Regex]::IsMatch(`-42`, `^-?\d+(\.\d{2})?$`, `RegexOptions.IgnoreCase,RegexOptions.Singleline`))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2822
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.Text.RegularExpressions.Regex]::IsMatch(`-42`, `^-?\d+(\.\d{2})?$`, System.Text.RegularExpressions.RegexOptions.IgnoreCase|RegexOptions.Singleline))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2826
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.Text.RegularExpressions.Regex]::IsMatch(`100 GBP`, `^-?\d+(\.\d{2})?$`))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2841
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.DateTime]::Parse(" + dateTime + ").ToString(`yyyy/MM/dd HH:mm:ss`))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2856
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.Environment]::GetFolderPath(SpecialFolder.System))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2893
var result = expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2915
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
2937
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
2953
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
2969
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
2987
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3003
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3022
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3038
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3057
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3070
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3082
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3093
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3106
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3117
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3129
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3140
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3153
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3164
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3177
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3200
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expectedExpansion);
3211
var result = expander.
ExpandIntoStringLeaveEscaped
($"$([MSBuild]::IsOsPlatform({osPlatformLowerCase}))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3374
string result = expander.
ExpandIntoStringLeaveEscaped
("$([System.String]::Equals(`a`, `A`, StringComparison.OrdinalIgnoreCase))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3474
expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::GetPathOfFileAbove($(FileWithPath)))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3493
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.Globalization.CultureInfo]::new(`en-US`).ToString())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3509
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Add(40, 2))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3524
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Add(39.9, 2.1))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3539
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::ValueOrDefault('', '42'))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3543
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::ValueOrDefault('42', '43'))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3560
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::ValueOrDefault('$(DifferentTargetsPath)', '42'))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3566
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::ValueOrDefault('$(DifferentTargetsPath)', '43'))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3635
expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::DoesTaskHostExist('ASDF', 'CurrentArchitecture'))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3710
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::BitwiseAnd(32,$([System.IO.File]::GetAttributes(" + tempFile + "))))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3731
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Add(39.9, 2.1))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3735
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Add(40, 2))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3739
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Subtract(44, 2))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3743
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Subtract(42.9, 0.9))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3747
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Multiply(21, 2))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3751
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Multiply(84.0, 0.5))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3755
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Divide(84, 2))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3759
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Divide(84.4, 2.0))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3763
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Modulo(85, 2))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3767
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Modulo(2345.5, 43))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3782
expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::BitwiseOr(40, 2))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe((40 | 2).ToString());
3783
expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::BitwiseAnd(42, 2))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe((42 & 2).ToString());
3784
expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::BitwiseXor(213, 255))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe((213 ^ 255).ToString());
3785
expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::BitwiseNot(-43))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe((~-43).ToString());
3786
expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::LeftShift(1, 2))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe((1 << 2).ToString());
3787
expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::RightShift(-8, 2))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe((-8 >> 2).ToString());
3788
expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::RightShiftUnsigned(-8, 2))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe((-8 >>> 2).ToString());
3802
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$( SomeStuff )", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3821
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::GetRegistryValue('HKEY_CURRENT_USER\Software\Microsoft\MSBuild_test', '$(SomeProperty)'))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3845
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::GetRegistryValue('HKEY_CURRENT_USER\Software\Microsoft\MSBuild_test', null))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3869
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::GetRegistryValueFromView('HKEY_CURRENT_USER\Software\Microsoft\MSBuild_test', null, null, RegistryView.Default, RegistryView.Default))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3893
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::GetRegistryValueFromView('HKEY_CURRENT_USER\Software\Microsoft\MSBuild_test', null, null, Microsoft.Win32.RegistryView.Default))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3924
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.IO.Path]::Combine($(SomePath),%(Compile.Identity)))", ExpanderOptions.ExpandAll, MockElementLocation.Instance);
3944
string result = expander.
ExpandIntoStringLeaveEscaped
($"$([System.String]::new(%({metadatumName})))", ExpanderOptions.ExpandAll, MockElementLocation.Instance);
4299
result = expander.
ExpandIntoStringLeaveEscaped
(validTests[i][0], ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
4323
result = expander.
ExpandIntoStringLeaveEscaped
(errorTests[i], ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
4353
string result = expander.
ExpandIntoStringLeaveEscaped
($"$([MSBuild]::EnsureTrailingSlash('{path}'))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
4358
result = expander.
ExpandIntoStringLeaveEscaped
("$([MSBuild]::EnsureTrailingSlash($(SomeProperty)))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
4378
string result = expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
4424
string result = expander.
ExpandIntoStringLeaveEscaped
("$([System.Guid]::NewGuid())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
4436
var result = expander.
ExpandIntoStringLeaveEscaped
($"$([MSBuild]::CheckFeatureAvailability({featureName}))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
4448
var result = expander.
ExpandIntoStringLeaveEscaped
($"$([MSBuild]::SubstringByAsciiChars({featureName}, {start}, {length}))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
4749
string result = expander.
ExpandIntoStringLeaveEscaped
(expression, ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
5143
.
ExpandIntoStringLeaveEscaped
(methodInvocationMetadata, ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
5178
.
ExpandIntoStringLeaveEscaped
($"$([MSBuild]::RegisterBuildCheck({dummyAssemblyFile.Path}))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);