public void WhenInvalidRGWithoutMaskThenShouldReturnFalse(string rg) { //Act bool result = RGUtil.ValidateRG(rg); //Assert Assert.IsFalse(result); }
public void WhenValidRGWithMaskThenShouldReturnTrue(string rg) { //Act bool result = RGUtil.ValidateRG(rg); //Assert Assert.IsTrue(result); }
public void WhenOnlyMaskCPFThenShouldReturnFalse() { //Act bool result = RGUtil.ValidateRG("..-"); //Assert Assert.IsFalse(result); }
public void WhenEmptyCPFThenShouldReturnFalse() { //Act bool result = RGUtil.ValidateRG(string.Empty); //Assert Assert.IsFalse(result); }
public void WhenNullCPFThenShouldReturnFalse() { //Assert Assert.ThrowsException <ArgumentNullException>(() => RGUtil.ValidateRG(null)); }