14 references to TryConvertToLong
Microsoft.Build (2)
Evaluation\Expander\ArgumentParser.cs (2)
407
if (
TryConvertToLong
(args[0], out long argLong0) &&
TryConvertToLong
(args[1], out long argLong1))
Microsoft.Build.Engine.UnitTests (12)
Evaluation\ExpanderFunction_Tests.cs (12)
104
ParseArgs.
TryConvertToLong
(null, out long actual).ShouldBeFalse();
112
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
120
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
128
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
136
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
145
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
155
_ = Should.NotThrow(() => ParseArgs.
TryConvertToLong
((double)long.MaxValue, out _));
162
bool result = ParseArgs.
TryConvertToLong
((double)longMaxValue, out long actual);
173
bool result = ParseArgs.
TryConvertToLong
((double)longMaxValue, out long actual);
188
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
196
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeFalse();
204
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeFalse();