Exemplo n.º 1
0
        public void CheckValues(int input)
        {
            var actualResult = Task2_2Class.ParseStringToInt(input.ToString());

            Assert.AreEqual(input, actualResult);
        }
Exemplo n.º 2
0
 public void CheckBadFormat(string input)
 {
     Assert.ThrowsException <FormatException>(() => Task2_2Class.ParseStringToInt(input));
 }
Exemplo n.º 3
0
 public void CheckOverflowException(string input)
 {
     Assert.ThrowsException <OverflowException>(() => Task2_2Class.ParseStringToInt(input));
 }
Exemplo n.º 4
0
 public void CheckEmptyValue()
 {
     Assert.ThrowsException <ArgumentNullException>(() => Task2_2Class.ParseStringToInt(""));
 }