public void op_ToServiceType_string(string expected,
                                            string telephone)
        {
            var actual = BritishTelephone.ToServiceType(telephone);

            Assert.Equal(expected, actual);
        }
 public void op_ToServiceType_string_whenFormatException(string telephone)
 {
     Assert.Throws <FormatException>(() => BritishTelephone.ToServiceType(telephone));
 }
 public void op_ToServiceType_stringNull()
 {
     Assert.Throws <ArgumentNullException>(() => BritishTelephone.ToServiceType(null));
 }