public void TestNumberInfo(string number, string expectedValue, PhoneFlags flags, NAIFlags naiFlags) { var cp = new CalledNumber { Number = number }; cp.Flags = flags; cp.NumberingFlags = naiFlags; Assert.AreEqual(expectedValue.ToUpperInvariant(), cp.ToHex()); }
public void TestCalledNumberIsNull() { var c = new CalledNumber(); Assert.Throws <InvalidOperationException>(() => c.ToHex()); var isupPhone = new IsupPhoneNumberParameter(IsupParameterType.CallingPartyNumber); Assert.Throws <InvalidOperationException>(() => isupPhone.ToHex()); return; }