public Document(string number) { Number = number; if (!Comparators.IsLengthEqualThan(number, Constraints.LengthDocument)) { AddNotification(nameof(Number), $"O número do documento possui {number.Length}. Ele precisa ter o tamanho igual a {Constraints.LengthDocument}"); } }
public void ShouldReturnTrueWhenValueToCompareLengthIsEqualWithValueComparator(string valueToCompare, int ValueComparator) { bool result = Comparators.IsLengthEqualThan(valueToCompare, ValueComparator); Assert.AreEqual(result, true); }