You've already forked linux-packaging-mono
Imported Upstream version 3.8.0
Former-commit-id: 6a76a29bd07d86e57c6c8da45c65ed5447d38a61
This commit is contained in:
@@ -175,6 +175,22 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
Assert.AreEqual (DateTime.Now.Year.ToString (), proj.GetEvaluatedProperty ("Prop1"), "#1");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void InstanceMembersOnStaticMethod ()
|
||||
{
|
||||
string documentString = @"
|
||||
<Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
|
||||
<PropertyGroup>
|
||||
<Prop1>$([System.String]::Concat('a', 'bb', 'c').Length.GetHashCode ())</Prop1>
|
||||
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
";
|
||||
|
||||
proj.LoadXml (documentString);
|
||||
Assert.AreEqual (4.GetHashCode ().ToString (), proj.GetEvaluatedProperty ("Prop1"), "#1");
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void MSBuildPropertyFunctions ()
|
||||
{
|
||||
@@ -190,6 +206,23 @@ namespace MonoTests.Microsoft.Build.BuildEngine.Various {
|
||||
|
||||
proj.LoadXml (documentString);
|
||||
Assert.AreEqual ("6.6", proj.GetEvaluatedProperty ("Prop1"), "#1");
|
||||
}
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void Constructor ()
|
||||
{
|
||||
string documentString = @"
|
||||
<Project xmlns=""http://schemas.microsoft.com/developer/msbuild/2003"">
|
||||
<PropertyGroup>
|
||||
<NumberOne>0.6</NumberOne>
|
||||
<NumberTwo>6</NumberTwo>
|
||||
<Prop1>$([System.String]::new('value').EndsWith ('ue'))</Prop1>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
";
|
||||
|
||||
proj.LoadXml (documentString);
|
||||
Assert.AreEqual ("True", proj.GetEvaluatedProperty ("Prop1"), "#1");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user