Esempio n. 1
0
 public void ContactTypeHelpersTests_ToStringOther()
 {
     ContactTypeHelpers.ToString(ContactType.Other)
     .Should().Be("other");
 }
Esempio n. 2
0
        public void ContactTypeHelpersTests_ToStringINVALID()
        {
            Action a = () => ContactTypeHelpers.ToString((ContactType)1000);

            a.Should().Throw <InvalidOperationException>();
        }
Esempio n. 3
0
 public void ContactTypeHelpersTests_ToStringAdministrative()
 {
     ContactTypeHelpers.ToString(ContactType.Administrative)
     .Should().Be("administrative");
 }
Esempio n. 4
0
 public void ContactTypeHelpersTests_ToStringBilling()
 {
     ContactTypeHelpers.ToString(ContactType.Billing)
     .Should().Be("billing");
 }
Esempio n. 5
0
 public void ContactTypeHelpersTests_ToStringTechnical()
 {
     ContactTypeHelpers.ToString(ContactType.Technical)
     .Should().Be("technical");
 }
Esempio n. 6
0
 public void ContactTypeHelpersTests_ToStringSupport()
 {
     ContactTypeHelpers.ToString(ContactType.Support)
     .Should().Be("support");
 }
Esempio n. 7
0
        public void ContactTypeHelpersTests_ParseContactTypeNull()
        {
            Action a = () => ContactTypeHelpers.Parse(null);

            a.Should().Throw <ArgumentNullException>().And.ParamName.Should().Be("contactType");
        }
Esempio n. 8
0
        public void ContactTypeHelpersTests_ParseContactTypeWRONG()
        {
            Action a = () => ContactTypeHelpers.Parse("WRONG");

            a.Should().Throw <FormatException>();
        }
Esempio n. 9
0
 public void ContactTypeHelpersTests_ParseContactTypeOther()
 {
     ContactTypeHelpers.Parse("other")
     .Should().Be(ContactType.Other);
 }
Esempio n. 10
0
 public void ContactTypeHelpersTests_ParseContactTypeBilling()
 {
     ContactTypeHelpers.Parse("billing")
     .Should().Be(ContactType.Billing);
 }
Esempio n. 11
0
 public void ContactTypeHelpersTests_ParseContactTypeAdministrative()
 {
     ContactTypeHelpers.Parse("administrative")
     .Should().Be(ContactType.Administrative);
 }
Esempio n. 12
0
 public void ContactTypeHelpersTests_ParseContactTypeSupport()
 {
     ContactTypeHelpers.Parse("support")
     .Should().Be(ContactType.Support);
 }
Esempio n. 13
0
 public void ContactTypeHelpersTests_ParseContactTypeTechnical()
 {
     ContactTypeHelpers.Parse("technical")
     .Should().Be(ContactType.Technical);
 }