Exemple #1
0
        public void InputValid_TestValid_WhenCalled(string input, bool valid)
        {
            // Act
            var result = CalculateHelper.InputValid(input);

            // Assert
            Assert.AreEqual(valid, result);
        }
 public void InputValid_ThrowError_WhenCalledNullOrEmpty(string input)
 {
     // Act
     Assert.Catch <ArgumentNullException>(() => CalculateHelper.InputValid(input));
 }