Example #1
0
        public void TryParseInt32_AcceptsValidNumbers(string intValue, int expectedInt)
        {
            int actualInt;

            Assert.True(FormattingUtilities.TryParseInt32(intValue, out actualInt));
            Assert.Equal(expectedInt, actualInt);
        }
Example #2
0
        public void TryParseInt32_RejectsInvalidNumbers(string intValue)
        {
            int actualInt;

            Assert.False(FormattingUtilities.TryParseInt32(intValue, out actualInt));
        }