public virtual void TestFormatValueNull() { string result = new EnR2PropertyFormatter().Format(GetContext("name", "TN"), new TNImpl()); Assert.IsTrue(this.result.IsValid()); Assert.AreEqual("<name nullFlavor=\"NI\"/>", result.Trim(), "named null format"); }
public virtual void TestFormatValueNull() { string result = new EnR2PropertyFormatter().Format(GetContext("name", "PN", SpecificationVersion.R02_04_02), new PNImpl() ); Assert.IsTrue(this.result.IsValid()); Assert.AreEqual("<name nullFlavor=\"NI\"/>", result.Trim(), "named null format"); }
public virtual void TestEnR2PropertyFormatterWhenConformanceLevelIsNotSpecified() { string result = new EnR2PropertyFormatter().Format(GetContext("name", "EN"), new ENImpl <EntityName>()); Assert.AreEqual("<name nullFlavor=\"NI\"/>", result.Trim()); }