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)
88
string evaluatedValue = bucket.Expander.
ExpandIntoStringLeaveEscaped
(property.Value, ExpanderOptions.ExpandAll, property.Location);
Definition\Project.cs (3)
3469
string evaluatedExistingInclude = _data.Expander.
ExpandIntoStringLeaveEscaped
(candidateExistingItemXml.Include, ExpanderOptions.ExpandProperties, candidateExistingItemXml.IncludeLocation);
3523
string evaluatedValueEscaped = _data.Expander.
ExpandIntoStringLeaveEscaped
(unevaluatedValue, ExpanderOptions.ExpandProperties, propertyLocation);
3580
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)
384
string evaluatedIncludeEscaped = expander.
ExpandIntoStringLeaveEscaped
(unevaluatedIncludeEscaped, ExpanderOptions.ExpandProperties, itemElement.IncludeLocation);
964
string expanded = _expander.
ExpandIntoStringLeaveEscaped
(currentProjectOrImport.DefaultTargets, ExpanderOptions.ExpandProperties, currentProjectOrImport.DefaultTargetsLocation);
1321
string evaluatedValue = _expander.
ExpandIntoStringLeaveEscaped
(propertyElement.Value, ExpanderOptions.ExpandProperties, propertyElement.Location);
1379
string evaluatedValue = _expander.
ExpandIntoStringLeaveEscaped
(metadataElement.Value, ExpanderOptions.ExpandPropertiesAndCustomMetadata, itemDefinitionElement.Location);
1787
return expander.
ExpandIntoStringLeaveEscaped
(value, Options, location);
2024
string importExpressionEscaped = _expander.
ExpandIntoStringLeaveEscaped
(unescapedExpression, ExpanderOptions.ExpandProperties, importElement.ProjectLocation);
2534
_expander.
ExpandIntoStringLeaveEscaped
(
Evaluation\Expander.cs (2)
475
string result =
ExpandIntoStringLeaveEscaped
(expression, options, elementLocation);
531
return ExpressionShredder.SplitSemiColonSeparatedList(
ExpandIntoStringLeaveEscaped
(expression, options, elementLocation));
Evaluation\ItemSpec.cs (1)
186
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);
642
string expression = _expander.
ExpandIntoStringLeaveEscaped
(
649
expression = _expander.
ExpandIntoStringLeaveEscaped
(
Evaluation\LazyItemEvaluator.IncludeOperation.cs (1)
48
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)
1434
return expander.
ExpandIntoStringLeaveEscaped
(escapedValue, ExpanderOptions.ExpandBuiltInMetadata, ElementLocation.EmptyLocation);
Instance\TaskRegistry.cs (12)
307
string taskName = expander.
ExpandIntoStringLeaveEscaped
(projectUsingTaskXml.TaskName, expanderOptions, projectUsingTaskXml.TaskNameLocation);
318
string taskFactory = expander.
ExpandIntoStringLeaveEscaped
(projectUsingTaskXml.TaskFactory, expanderOptions, projectUsingTaskXml.TaskFactoryLocation);
327
assemblyFile = expander.
ExpandIntoStringLeaveEscaped
(projectUsingTaskXml.AssemblyFile, expanderOptions, projectUsingTaskXml.AssemblyFileLocation);
331
assemblyName = expander.
ExpandIntoStringLeaveEscaped
(projectUsingTaskXml.AssemblyName, expanderOptions, projectUsingTaskXml.AssemblyNameLocation);
422
string runtime = expander.
ExpandIntoStringLeaveEscaped
(projectUsingTaskXml.Runtime, expanderOptions, projectUsingTaskXml.RuntimeLocation);
423
string architecture = expander.
ExpandIntoStringLeaveEscaped
(projectUsingTaskXml.Architecture, expanderOptions, projectUsingTaskXml.ArchitectureLocation);
424
string overrideUsingTask = expander.
ExpandIntoStringLeaveEscaped
(projectUsingTaskXml.Override, expanderOptions, projectUsingTaskXml.OverrideLocation);
1705
string expandedType = expander.
ExpandIntoStringLeaveEscaped
(taskElement.Evaluate, expanderOptions, taskElement.EvaluateLocation);
1723
_inlineTaskXmlBody = expander.
ExpandIntoStringLeaveEscaped
(taskElement.TaskBody, expanderOptions, taskElement.Location);
1746
string expandedType = expander.
ExpandIntoStringLeaveEscaped
(parameter.ParameterType, expanderOptions, parameter.ParameterTypeLocation);
1784
string expandedOutput = expander.
ExpandIntoStringLeaveEscaped
(parameter.Output, expanderOptions, parameter.OutputLocation);
1810
string expandedRequired = expander.
ExpandIntoStringLeaveEscaped
(parameter.Required, expanderOptions, parameter.RequiredLocation);
Microsoft.Build.Engine.UnitTests (142)
Evaluation\Expander_Tests.cs (142)
165
string result = expander.
ExpandIntoStringLeaveEscaped
("$()", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
312
string result = expander.
ExpandIntoStringLeaveEscaped
("[@(type->'%($(a)), '%'')]", ExpanderOptions.ExpandAll, MockElementLocation.Instance);
326
string result = expander.
ExpandIntoStringLeaveEscaped
("[@(i->'%(Meta9))']", ExpanderOptions.ExpandAll, MockElementLocation.Instance);
342
string result = expander.
ExpandIntoStringLeaveEscaped
("@(i->'%(Meta0)'->'%(Directory)'->Distinct())", ExpanderOptions.ExpandItems, MockElementLocation.Instance);
358
string result = expander.
ExpandIntoStringLeaveEscaped
("[@(i->'%(Meta0)'->'%(Directory)'->Distinct())]", ExpanderOptions.ExpandItems, MockElementLocation.Instance);
372
string result = expander.
ExpandIntoStringLeaveEscaped
("@(i->'%(MetaBlank)'->'%(Directory)'->Distinct())", ExpanderOptions.ExpandItems, MockElementLocation.Instance);
1562
expander.
ExpandIntoStringLeaveEscaped
(xmlattribute.Value, ExpanderOptions.ExpandAll, MockElementLocation.Instance));
1644
string expandedString = expander.
ExpandIntoStringLeaveEscaped
(xmlattribute.Value, ExpanderOptions.ExpandAll, MockElementLocation.Instance);
1731
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\VSTSDB@VSTSDBDirectory)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
1747
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$(Solutions.VSVersion)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
1765
expander.
ExpandIntoStringLeaveEscaped
(@"$(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\VSTSDB@XXXXDBDirectory)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
1782
expander.
ExpandIntoStringLeaveEscaped
(@"$(HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\9.0\VSTSDB@VSTSDBDirectoryX)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
1798
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$(Registry:HKEY_CURRENT_USER\Software\Microsoft\MSBuild_test@Value)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
1823
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$(Registry:HKEY_CURRENT_USER\Software\Microsoft\MSBuild_test@Value)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
1845
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$(Registry:HKEY_CURRENT_USER\Software\Microsoft\MSBuild_test@Value)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
1868
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$(Registry:HKEY_CURRENT_USER\Software\Microsoft\MSBuild_test@Value)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
1890
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$(Registry:HKEY_CURRENT_USER\Software\Microsoft\MSBuild_test@Value)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
1912
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$(Registry:HKEY_CURRENT_USER\Software\Microsoft\MSBuild_test@Value)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2005
string result = expander.
ExpandIntoStringLeaveEscaped
("$([System.Convert]::ChangeType('null',$(SomeStuff.GetTypeCode())))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2021
string result = expander.
ExpandIntoStringLeaveEscaped
("$([System.Environment]::GetEnvironmentVariable(`_NonExistentVar`))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2025
result = expander.
ExpandIntoStringLeaveEscaped
("prefix_$([System.Environment]::GetEnvironmentVariable(`_NonExistentVar`))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2040
string result = expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.ToUpperInvariant())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2056
string result = expander.
ExpandIntoStringLeaveEscaped
("$(FileName.Trim())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2072
string result = expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.Length)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2088
string result = expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.get_Length())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2104
string result = expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.ToLowerInvariant())_goop", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2120
string result = expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.SubString(13))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2136
string result = expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.SubString(8))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2153
string result = expander.
ExpandIntoStringLeaveEscaped
("$(MyPath.SubString($(RootPath.Length)))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2170
string result = expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.SubString(1$(Value)))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2187
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$(PathRoot2.Endswith(" + Path.DirectorySeparatorChar + "))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2189
result = expander.
ExpandIntoStringLeaveEscaped
(@"$(PathRoot.Endswith(" + Path.DirectorySeparatorChar + "))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2205
string result = expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.SubString(1$(Value)).ToLowerInvariant().SubString($(Value)))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2223
string result = expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.ToUpperInvariant().ToLowerInvariant())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2239
string result = expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.SubString($(Value.get_Length())))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2254
string result = expander.
ExpandIntoStringLeaveEscaped
("$([MSBuild]::__GetListTest())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2270
string result = expander.
ExpandIntoStringLeaveEscaped
("$(List.Split(-))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2287
string result = expander.
ExpandIntoStringLeaveEscaped
("$([System.Environment]::GetEnvironmentVariables())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ToUpperInvariant();
2305
string result = expander.
ExpandIntoStringLeaveEscaped
("$(List.Split($(Splitter.ToCharArray())))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2358
expander.
ExpandIntoStringLeaveEscaped
("[$(SomeStuff($(Value)))]", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2376
expander.
ExpandIntoStringLeaveEscaped
("[$(SomeStuff.Lgg)]", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2393
expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.ToUpperInvariant().Foo)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2410
expander.
ExpandIntoStringLeaveEscaped
("[$(SomeStuff($(System.DateTime.Now)))]", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2427
expander.
ExpandIntoStringLeaveEscaped
("$(SomeStuff.ToLowerInvariant()_goop)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2443
expander.
ExpandIntoStringLeaveEscaped
("[$(SomeStuff.Substring(HELLO!))]", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2459
expander.
ExpandIntoStringLeaveEscaped
("[$(SomeStuff.Substring(-10))]", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2474
expander.
ExpandIntoStringLeaveEscaped
("$(([System.DateTime]::Now).ToString(\"MM.dd.yyyy\"))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2487
string result = expander.
ExpandIntoStringLeaveEscaped
("[%(LowerLetterList.Identity.ToUpper())]", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2503
string result = expander.
ExpandIntoStringLeaveEscaped
("$(System)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2522
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::MakeRelative($(ParentPath), `$(FilePath)`))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2539
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.IO.Path]::Combine($(Drive), `$(File)`))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2579
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.Version]::new($(ver1)).CompareTo($([System.Version]::new($(ver2)))))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2600
string result = expander.
ExpandIntoStringLeaveEscaped
("$([System.Type]::GetType(`System.Type`))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2627
string result = expander.
ExpandIntoStringLeaveEscaped
("$([System.Diagnostics.Process]::GetCurrentProcess().Id)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2656
Assert.Throws<InvalidProjectFileException>(() => expander.
ExpandIntoStringLeaveEscaped
("$([Microsoft.FOO.FileIO.FileSystem]::CurrentDirectory)", ExpanderOptions.ExpandProperties, MockElementLocation.Instance));
2657
Assert.Throws<InvalidProjectFileException>(() => expander.
ExpandIntoStringLeaveEscaped
("$([Foo.Baz]::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
("$([.Foo]::new())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance));
2661
Assert.Throws<InvalidProjectFileException>(() => expander.
ExpandIntoStringLeaveEscaped
("$([.]::new())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance));
2662
Assert.Throws<InvalidProjectFileException>(() => expander.
ExpandIntoStringLeaveEscaped
("$([]::new())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance));
2684
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.IO.Path]::Combine(`" + s_rootPathPrefix + "`, `$(File)`))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2700
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.IO.Path]::Combine(`" +
2718
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.IO.Path]::Combine(`" +
2736
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.IO.Path]::Combine(`" +
2753
string result = expander.
ExpandIntoStringLeaveEscaped
("$([System.DateTime]::Parse(" + dateTime + ").ToString(\"yyyy/MM/dd HH:mm:ss\"))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2768
string result = expander.
ExpandIntoStringLeaveEscaped
("$([System.DateTime]::Parse(" + dateTime + ").ToString(\"MM.dd.yyyy\"))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2783
string result = expander.
ExpandIntoStringLeaveEscaped
("$([System.DateTime]::Now.ToString(\"MM.dd.yyyy\"))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2799
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.IO.Path]::Combine(`" +
2818
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.Text.RegularExpressions.Regex]::IsMatch(`-42`, `^-?\d+(\.\d{2})?$`, `RegexOptions.IgnoreCase,RegexOptions.Singleline`))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2823
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.Text.RegularExpressions.Regex]::IsMatch(`-42`, `^-?\d+(\.\d{2})?$`, System.Text.RegularExpressions.RegexOptions.IgnoreCase|RegexOptions.Singleline))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2827
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.Text.RegularExpressions.Regex]::IsMatch(`100 GBP`, `^-?\d+(\.\d{2})?$`))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2842
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.DateTime]::Parse(" + dateTime + ").ToString(`yyyy/MM/dd HH:mm:ss`))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2857
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.Environment]::GetFolderPath(SpecialFolder.System))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2894
var result = expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
2916
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
2938
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
2954
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
2970
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
2988
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3004
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3023
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3039
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3058
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3071
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3083
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3094
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3107
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3118
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3130
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3141
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3154
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3165
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3178
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expected);
3201
expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe(expectedExpansion);
3212
var result = expander.
ExpandIntoStringLeaveEscaped
($"$([MSBuild]::IsOsPlatform({osPlatformLowerCase}))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3375
string result = expander.
ExpandIntoStringLeaveEscaped
("$([System.String]::Equals(`a`, `A`, StringComparison.OrdinalIgnoreCase))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3475
expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::GetPathOfFileAbove($(FileWithPath)))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3494
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.Globalization.CultureInfo]::new(`en-US`).ToString())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3510
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Add(40, 2))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3525
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Add(39.9, 2.1))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3540
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::ValueOrDefault('', '42'))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3544
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::ValueOrDefault('42', '43'))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3561
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::ValueOrDefault('$(DifferentTargetsPath)', '42'))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3567
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::ValueOrDefault('$(DifferentTargetsPath)', '43'))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3636
expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::DoesTaskHostExist('ASDF', 'CurrentArchitecture'))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3711
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::BitwiseAnd(32,$([System.IO.File]::GetAttributes(" + tempFile + "))))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3733
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Add(39.9, 2.1))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3737
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Add(40, 2))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3741
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Subtract(44, 2))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3745
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Subtract(42.9, 0.9))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3749
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Multiply(21, 2))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3753
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Multiply(84.0, 0.5))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3757
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Divide(84, 2))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3761
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Divide(84.4, 2.0))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3765
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Modulo(85, 2))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3769
result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::Modulo(2345.5, 43))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3784
expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::BitwiseOr(40, 2))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe((40 | 2).ToString());
3785
expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::BitwiseAnd(42, 2))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe((42 & 2).ToString());
3786
expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::BitwiseXor(213, 255))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe((213 ^ 255).ToString());
3787
expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::BitwiseNot(-43))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe((~-43).ToString());
3788
expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::LeftShift(1, 2))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe((1 << 2).ToString());
3789
expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::RightShift(-8, 2))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe((-8 >> 2).ToString());
3790
expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::RightShiftUnsigned(-8, 2))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance).ShouldBe((-8 >>> 2).ToString());
3804
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$( SomeStuff )", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3823
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::GetRegistryValue('HKEY_CURRENT_USER\Software\Microsoft\MSBuild_test', '$(SomeProperty)'))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3847
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::GetRegistryValue('HKEY_CURRENT_USER\Software\Microsoft\MSBuild_test', null))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3871
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::GetRegistryValueFromView('HKEY_CURRENT_USER\Software\Microsoft\MSBuild_test', null, null, RegistryView.Default, RegistryView.Default))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3895
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([MSBuild]::GetRegistryValueFromView('HKEY_CURRENT_USER\Software\Microsoft\MSBuild_test', null, null, Microsoft.Win32.RegistryView.Default))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
3926
string result = expander.
ExpandIntoStringLeaveEscaped
(@"$([System.IO.Path]::Combine($(SomePath),%(Compile.Identity)))", ExpanderOptions.ExpandAll, MockElementLocation.Instance);
3946
string result = expander.
ExpandIntoStringLeaveEscaped
($"$([System.String]::new(%({metadatumName})))", ExpanderOptions.ExpandAll, MockElementLocation.Instance);
4301
result = expander.
ExpandIntoStringLeaveEscaped
(validTests[i][0], ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
4325
result = expander.
ExpandIntoStringLeaveEscaped
(errorTests[i], ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
4355
string result = expander.
ExpandIntoStringLeaveEscaped
($"$([MSBuild]::EnsureTrailingSlash('{path}'))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
4360
result = expander.
ExpandIntoStringLeaveEscaped
("$([MSBuild]::EnsureTrailingSlash($(SomeProperty)))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
4380
string result = expander.
ExpandIntoStringLeaveEscaped
(propertyFunction, ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
4426
string result = expander.
ExpandIntoStringLeaveEscaped
("$([System.Guid]::NewGuid())", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
4438
var result = expander.
ExpandIntoStringLeaveEscaped
($"$([MSBuild]::CheckFeatureAvailability({featureName}))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
4450
var result = expander.
ExpandIntoStringLeaveEscaped
($"$([MSBuild]::SubstringByAsciiChars({featureName}, {start}, {length}))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
4777
string result = expander.
ExpandIntoStringLeaveEscaped
(expression, ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
5171
.
ExpandIntoStringLeaveEscaped
(methodInvocationMetadata, ExpanderOptions.ExpandProperties, MockElementLocation.Instance);
5206
.
ExpandIntoStringLeaveEscaped
($"$([MSBuild]::RegisterBuildCheck({dummyAssemblyFile.Path}))", ExpanderOptions.ExpandProperties, MockElementLocation.Instance);