public void FromJson_StringValue_AreEqual() { var act = JsonTester.Read <InternationalBankAccountNumber>(TestStruct.ToString(CultureInfo.InvariantCulture)); var exp = TestStruct; Assert.AreEqual(exp, act); }
public void ToString_CustomFormatter_SupportsCustomFormatting() { var act = TestStruct.ToString("Unit Test Format", new UnitTestFormatProvider()); var exp = "Unit Test Formatter, value: 'NL20INGB0001234567', format: 'Unit Test Format'"; Assert.AreEqual(exp, act); }