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)
112
ParseArgs.
TryConvertToLong
(null, out long actual).ShouldBeFalse();
120
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
128
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
136
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
144
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
153
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
163
_ = Should.NotThrow(() => ParseArgs.
TryConvertToLong
((double)long.MaxValue, out _));
170
bool result = ParseArgs.
TryConvertToLong
((double)longMaxValue, out long actual);
181
bool result = ParseArgs.
TryConvertToLong
((double)longMaxValue, out long actual);
196
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
204
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeFalse();
212
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeFalse();