Exemple #1
0
 public void ConvertFrom_StringEmpty_InternetMediaTypeEmpty()
 {
     using (new CultureInfoScope("en-GB"))
     {
         TypeConverterAssert.ConvertFromEquals(InternetMediaType.Empty, string.Empty);
     }
 }
Exemple #2
0
 public void ConvertFromString_StringValue_TestStruct()
 {
     using (new CultureInfoScope("en-GB"))
     {
         TypeConverterAssert.ConvertFromEquals(LocalDateTimeTest.TestStructNoMilliseconds, LocalDateTimeTest.TestStructNoMilliseconds.ToString());
     }
 }
 public void ConvertFrom_StringEmpty_HouseNumberEmpty()
 {
     using (new CultureInfoScope("en-GB"))
     {
         TypeConverterAssert.ConvertFromEquals(HouseNumber.Empty, string.Empty);
     }
 }
Exemple #4
0
 public void ConvertFrom_StringEmpty_CryptographicSeedEmpty()
 {
     using (new CultureInfoScope("en-GB"))
     {
         TypeConverterAssert.ConvertFromEquals(CryptographicSeed.Empty, string.Empty);
     }
 }
Exemple #5
0
 public void ConvertFrom_StringEmpty_InternationalBankAccountNumberEmpty()
 {
     using (new CultureInfoScope("en-GB"))
     {
         TypeConverterAssert.ConvertFromEquals(InternationalBankAccountNumber.Empty, string.Empty);
     }
 }
Exemple #6
0
 public void ConvertToString_TestStruct_StringValue()
 {
     using (new CultureInfoScope("en-GB"))
     {
         TypeConverterAssert.ConvertToStringEquals(InternationalBankAccountNumberTest.TestStruct.ToString(), InternationalBankAccountNumberTest.TestStruct);
     }
 }
Exemple #7
0
 public void ConvertFrom_StringEmpty_MoneyEmpty()
 {
     using (new CultureInfoScope("en-GB"))
     {
         TypeConverterAssert.ConvertFromEquals(Money.Zero, "0");
     }
 }
Exemple #8
0
 public void ConvertFrom_StringEmpty_BusinessIdentifierCodeEmpty()
 {
     using (new CultureInfoScope("en-GB"))
     {
         TypeConverterAssert.ConvertFromEquals(BusinessIdentifierCode.Empty, string.Empty);
     }
 }
Exemple #9
0
 public void ConvertFromString_StringValue_TestStruct()
 {
     using (new CultureInfoScope("en-GB"))
     {
         TypeConverterAssert.ConvertFromEquals(GenderTest.TestStruct, GenderTest.TestStruct.ToString(CultureInfo.InvariantCulture));
     }
 }
Exemple #10
0
 public void ConvertFrom_StringEmpty_CountryEmpty()
 {
     using (new CultureInfoScope("en-GB"))
     {
         TypeConverterAssert.ConvertFromEquals(Country.Empty, string.Empty);
     }
 }
Exemple #11
0
 public void ConvertToString_TestStruct_StringValue()
 {
     using (new CultureInfoScope("en-GB"))
     {
         TypeConverterAssert.ConvertToStringEquals(EloTest.TestStruct.ToString(), EloTest.TestStruct);
     }
 }
 public void ConvertFrom_StringNull_BankIdentifierCodeEmpty()
 {
     using (new CultureInfoScope("en-GB"))
     {
         TypeConverterAssert.ConvertFromEquals(BankIdentifierCode.Empty, (string)null);
     }
 }
Exemple #13
0
 public void ConvertFrom_StringEmpty_EmailAddressEmpty()
 {
     using (new CultureInfoScope("en-GB"))
     {
         TypeConverterAssert.ConvertFromEquals(EmailAddress.Empty, string.Empty);
     }
 }
Exemple #14
0
 public void ConvertFromString_StringValue_TestStruct()
 {
     using (new CultureInfoScope("en-GB"))
     {
         TypeConverterAssert.ConvertFromEquals(TestStruct, "Male");
     }
 }
Exemple #15
0
 public void ConvertFrom_StringNull_GenderEmpty()
 {
     using (new CultureInfoScope("en-GB"))
     {
         TypeConverterAssert.ConvertFromEquals(Gender.Empty, (string)null);
     }
 }
Exemple #16
0
 public void ConvertFromString_StringEmpty_GenderEmpty()
 {
     using (new CultureInfoScope("en-GB"))
     {
         TypeConverterAssert.ConvertFromEquals(Gender.Empty, string.Empty);
     }
 }
 public void ConvertToString_TestStruct_StringValue()
 {
     using (new CultureInfoScope("en-GB"))
     {
         TypeConverterAssert.ConvertToStringEquals(BankIdentifierCodeTest.TestStruct.ToString(), BankIdentifierCodeTest.TestStruct);
     }
 }
Exemple #18
0
 public void ConvertFromString_StringValue_TestStruct()
 {
     using (new CultureInfoScope("en-GB"))
     {
         TypeConverterAssert.ConvertFromEquals(EloTest.TestStruct, EloTest.TestStruct.ToString());
     }
 }
Exemple #19
0
 public void CanConvertToString_Elo_IsTrue()
 {
     TypeConverterAssert.CanConvertToString(typeof(Elo));
 }
Exemple #20
0
 public void CanConvertToInt32()
 {
     TypeConverterAssert.ConvertToEquals(1600, (Elo)1600);
 }
Exemple #21
0
 public void CanNotConvertFromInt32()
 {
     TypeConverterAssert.ConvertFromEquals((Elo)1600, 1600);
 }
Exemple #22
0
 public void ConverterExists_Elo_IsTrue()
 {
     TypeConverterAssert.ConverterExists(typeof(Elo));
 }
Exemple #23
0
 public void CanConvertToString_EmailAddress_IsTrue()
 {
     TypeConverterAssert.CanConvertToString(typeof(EmailAddress));
 }
Exemple #24
0
 public void ConvertFromInstanceDescriptor_Percentage_Successful()
 {
     TypeConverterAssert.ConvertFromInstanceDescriptor(typeof(Percentage));
 }
Exemple #25
0
 public void ConverterExists_EmailAddress_IsTrue()
 {
     TypeConverterAssert.ConverterExists(typeof(EmailAddress));
 }
Exemple #26
0
 public void CanConvertToString_Gender_IsTrue()
 {
     TypeConverterAssert.CanConvertToString(typeof(Gender));
 }
Exemple #27
0
 public void ConverterExists_Gender_IsTrue()
 {
     TypeConverterAssert.ConverterExists(typeof(Gender));
 }
Exemple #28
0
 public void CanNotConvertToInt32_EmailAddress_IsTrue()
 {
     TypeConverterAssert.CanNotConvertTo(typeof(EmailAddress), typeof(Int32));
 }
Exemple #29
0
 public void CanNotConvertToInt32_Gender_IsTrue()
 {
     TypeConverterAssert.CanNotConvertTo(typeof(Gender), typeof(Int32));
 }
Exemple #30
0
 public void CanConvertToString_Percentage_IsTrue()
 {
     TypeConverterAssert.CanConvertToString(typeof(Percentage));
 }