14 references to TryConvertToLong
Microsoft.Build (2)
Evaluation\Expander\ArgumentParser.cs (2)
406
if (
TryConvertToLong
(args[0], out long argLong0) &&
TryConvertToLong
(args[1], out long argLong1))
Microsoft.Build.Engine.UnitTests (12)
Evaluation\ExpanderFunction_Tests.cs (12)
109
ParseArgs.
TryConvertToLong
(null, out long actual).ShouldBeFalse();
117
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
125
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
133
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
141
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
150
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
160
_ = Should.NotThrow(() => ParseArgs.
TryConvertToLong
((double)long.MaxValue, out _));
167
bool result = ParseArgs.
TryConvertToLong
((double)longMaxValue, out long actual);
178
bool result = ParseArgs.
TryConvertToLong
((double)longMaxValue, out long actual);
193
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
201
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeFalse();
209
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeFalse();