Exemple #1
0
        public void TryParseInt_GivenStringNumber_ParseToIntNumber(string value, int expected)
        {
            int actual;
            var succseful = IntParser.TryParseInt(value, out actual);

            Assert.Equal(expected, actual);
        }
Exemple #2
0
        public void TryParseInt_GivenIncorrectStringNumber_ShouldFalse(string value, bool expected)
        {
            int number;
            var actual = IntParser.TryParseInt(value, out number);

            Assert.Equal(expected, actual);
        }