public void ParseNhsNumberGoodParameterTest() { string testValue = "4372623623"; string testExpectedOutput = "437 262 3623"; NhsNumber targetNhsNumber = NhsNumber.ParseNhsNumber(testValue); Assert.AreEqual <string>(testExpectedOutput, targetNhsNumber.ToString(), "ParseNhsNumber method call should create valid NhsNumber."); }
public void ParseInvalidNhsNumberStringTest() { NhsNumber targetNhsNumber = NhsNumber.ParseNhsNumber("1234567890"); }
public void ParseAllDigitsSameStringTest() { NhsNumber targetNhsNumber = NhsNumber.ParseNhsNumber("5555555555"); }
public void ParseNhsNumberBadParameterTest() { NhsNumber targetNhsNumber = NhsNumber.ParseNhsNumber("ABC123"); }
public void ParseTooManyDigitsStringTest() { NhsNumber targetNhsNumber = NhsNumber.ParseNhsNumber("12345678901"); }