2 instantiations of Function
Microsoft.Build (2)
Evaluation\Expander.cs (2)
2758
Function<P> function = new
Function
<P>(
3202
return new
Function
<T>(
33 references to Function
Microsoft.Build (5)
Evaluation\Expander.cs (5)
1350
Function
<T> function = null;
1374
function =
Function
<T>.ExtractPropertyFunction(
2758
Function
<P> function = new Function<P>(
3200
internal readonly
Function
<T> Build()
3318
internal static
Function
<T> ExtractPropertyFunction(
Microsoft.Build.Engine.UnitTests (28)
Evaluation\ExpanderFunction_Tests.cs (28)
28
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToInt(null, out int actual).ShouldBeFalse();
36
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToInt(value, out int actual).ShouldBeTrue();
44
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToInt(value, out int actual).ShouldBeTrue();
52
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToInt(value, out int actual).ShouldBeTrue();
60
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToInt(value, out int actual).ShouldBeTrue();
69
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToInt(value, out int actual).ShouldBeTrue();
78
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToInt(value, out int actual).ShouldBeTrue();
86
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToInt(value, out int actual).ShouldBeFalse();
94
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToInt(value, out int actual).ShouldBeFalse();
102
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToInt(value, out int actual).ShouldBeFalse();
111
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToLong(null, out long actual).ShouldBeFalse();
119
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToLong(value, out long actual).ShouldBeTrue();
127
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToLong(value, out long actual).ShouldBeTrue();
135
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToLong(value, out long actual).ShouldBeTrue();
143
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToLong(value, out long actual).ShouldBeTrue();
152
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToLong(value, out long actual).ShouldBeTrue();
162
_ = Should.NotThrow(() => Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToLong((double)long.MaxValue, out _));
169
bool result = Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToLong((double)longMaxValue, out long actual);
180
bool result = Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToLong((double)longMaxValue, out long actual);
195
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToLong(value, out long actual).ShouldBeTrue();
203
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToLong(value, out long actual).ShouldBeFalse();
211
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToLong(value, out long actual).ShouldBeFalse();
220
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToDouble(null, out double actual).ShouldBeFalse();
228
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToDouble(value, out double actual).ShouldBeTrue();
236
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToDouble(value, out double actual).ShouldBeTrue();
244
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToDouble(value, out double actual).ShouldBeTrue();
252
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToDouble(value, out double actual).ShouldBeTrue();
270
Expander<IProperty, IItem>.
Function
<IProperty>.TryConvertToDouble(value, out double actual).ShouldBeTrue();