14 references to TryConvertToLong
Microsoft.Build (2)
Evaluation\Expander.cs (2)
4995
if (
TryConvertToLong
(args[0], out long argLong0) &&
TryConvertToLong
(args[1], out long argLong1))
Microsoft.Build.Engine.UnitTests (12)
Evaluation\ExpanderFunction_Tests.cs (12)
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();