private int CountDigits(string guid) { if (!GuidHelper.IsValidGuid(guid)) { throw new Exception("Invalid guid specified"); } return(GuidHelper.CountDigitsInGuid(guid)); }
public void CheckDigitCount(string guid, int countExpected) { int count = GuidHelper.CountDigitsInGuid(guid); Assert.Equal(countExpected, count); }