public void ContactTypeHelpersTests_ToStringOther() { ContactTypeHelpers.ToString(ContactType.Other) .Should().Be("other"); }
public void ContactTypeHelpersTests_ToStringINVALID() { Action a = () => ContactTypeHelpers.ToString((ContactType)1000); a.Should().Throw <InvalidOperationException>(); }
public void ContactTypeHelpersTests_ToStringAdministrative() { ContactTypeHelpers.ToString(ContactType.Administrative) .Should().Be("administrative"); }
public void ContactTypeHelpersTests_ToStringBilling() { ContactTypeHelpers.ToString(ContactType.Billing) .Should().Be("billing"); }
public void ContactTypeHelpersTests_ToStringTechnical() { ContactTypeHelpers.ToString(ContactType.Technical) .Should().Be("technical"); }
public void ContactTypeHelpersTests_ToStringSupport() { ContactTypeHelpers.ToString(ContactType.Support) .Should().Be("support"); }
public void ContactTypeHelpersTests_ParseContactTypeNull() { Action a = () => ContactTypeHelpers.Parse(null); a.Should().Throw <ArgumentNullException>().And.ParamName.Should().Be("contactType"); }
public void ContactTypeHelpersTests_ParseContactTypeWRONG() { Action a = () => ContactTypeHelpers.Parse("WRONG"); a.Should().Throw <FormatException>(); }
public void ContactTypeHelpersTests_ParseContactTypeOther() { ContactTypeHelpers.Parse("other") .Should().Be(ContactType.Other); }
public void ContactTypeHelpersTests_ParseContactTypeBilling() { ContactTypeHelpers.Parse("billing") .Should().Be(ContactType.Billing); }
public void ContactTypeHelpersTests_ParseContactTypeAdministrative() { ContactTypeHelpers.Parse("administrative") .Should().Be(ContactType.Administrative); }
public void ContactTypeHelpersTests_ParseContactTypeSupport() { ContactTypeHelpers.Parse("support") .Should().Be(ContactType.Support); }
public void ContactTypeHelpersTests_ParseContactTypeTechnical() { ContactTypeHelpers.Parse("technical") .Should().Be(ContactType.Technical); }