Imported Upstream version 4.3.2.467

Former-commit-id: 9c2cb47f45fa221e661ab616387c9cda183f283d
This commit is contained in:
Xamarin Public Jenkins
2016-02-22 11:00:01 -05:00
parent f302175246
commit f3e3aab35a
4097 changed files with 122406 additions and 82300 deletions

View File

@@ -101,11 +101,17 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
<Config>debug</Config>
<NullValue>null</NullValue>
<TargetValue> </TargetValue>
<StringWithQuotes>abc""def</StringWithQuotes>
<Prop1>$(Config.Substring(0,3)) </Prop1>
<Prop2>$(Config.Length )</Prop2>
<Prop3>$(Config.StartsWith ('DE', System.StringComparison.OrdinalIgnoreCase))</Prop3>
<Prop4>$(NullValue.StartsWith ('Te', StringComparison.OrdinalIgnoreCase))</Prop4>
<Prop5>$(TargetValue.Trim('\\'))</Prop5>
<Prop6>$(StringWithQuotes.Replace('""', ""'""))</Prop6>
<Prop7>$(StringWithQuotes.Replace('""', ''))</Prop7>
<Prop8>$(StringWithQuotes.Replace('""', """"))</Prop8>
<Prop9>$(StringWithQuotes.Replace('""', ``))</Prop9>
<Prop9>$(StringWithQuotes.Replace(`c""d`, `2""'3`))</Prop9>
</PropertyGroup>
</Project>
";
@@ -116,6 +122,10 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
Assert.AreEqual ("True", proj.GetEvaluatedProperty ("Prop3"), "#3");
Assert.AreEqual ("False", proj.GetEvaluatedProperty ("Prop4"), "#4");
Assert.AreEqual ("", proj.GetEvaluatedProperty ("Prop5"), "#5");
Assert.AreEqual ("abc'def", proj.GetEvaluatedProperty ("Prop6"), "#6");
Assert.AreEqual ("abcdef", proj.GetEvaluatedProperty ("Prop7"), "#7");
Assert.AreEqual ("abcdef", proj.GetEvaluatedProperty ("Prop8"), "#8");
Assert.AreEqual ("ab2\"'3ef", proj.GetEvaluatedProperty ("Prop9"), "#9");
}
[Test]