public void TryParseInt32_AcceptsValidNumbers(string intValue, int expectedInt) { int actualInt; Assert.True(FormattingUtilities.TryParseInt32(intValue, out actualInt)); Assert.Equal(expectedInt, actualInt); }
public void TryParseInt32_RejectsInvalidNumbers(string intValue) { int actualInt; Assert.False(FormattingUtilities.TryParseInt32(intValue, out actualInt)); }