void HelperComputeHashDashesFull() { var hash = Damm.ComputeHash("05-72", returnAllDigits: true); Assert.Equal("05724", hash); }
void HelperComputeHashSpaces() { var hash = Damm.ComputeHash(" 5 7 2 "); Assert.Equal("4", hash); }
void HelperComputeHashDashes() { var hash = Damm.ComputeHash("05-72"); Assert.Equal("4", hash); }
void HelperValidateHashDashes() { var result = Damm.ValidateHash("-00-57-24-"); Assert.Equal(true, result); }
void HelperValidateHashFails() { var result = Damm.ValidateHash("5720"); Assert.Equal(false, result); }
void HelperValidateHashSpaces() { var result = Damm.ValidateHash(" 57 24 "); Assert.Equal(true, result); }
public void HelperComputeHashSpacesFull() { var hash = Damm.ComputeHash(" 5 7 2 ", returnAllDigits: true); Assert.Equal("5724", hash); }
public void HelperValidateHashFails() { var result = Damm.ValidateHash("5720"); Assert.False(result); }
public void HelperValidateHashDashes() { var result = Damm.ValidateHash("-00-57-24-"); Assert.True(result); }
public void HelperValidateHashSpaces() { var result = Damm.ValidateHash(" 57 24 "); Assert.True(result); }