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)
105
ParseArgs.
TryConvertToLong
(null, out long actual).ShouldBeFalse();
113
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
121
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
129
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
137
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
146
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
156
_ = Should.NotThrow(() => ParseArgs.
TryConvertToLong
((double)long.MaxValue, out _));
163
bool result = ParseArgs.
TryConvertToLong
((double)longMaxValue, out long actual);
174
bool result = ParseArgs.
TryConvertToLong
((double)longMaxValue, out long actual);
189
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeTrue();
197
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeFalse();
205
ParseArgs.
TryConvertToLong
(value, out long actual).ShouldBeFalse();