Esempio n. 1
0
        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");
        }
Esempio n. 2
0
        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");
        }
Esempio n. 3
0
        public virtual void TestEnR2PropertyFormatterWhenConformanceLevelIsNotSpecified()
        {
            string result = new EnR2PropertyFormatter().Format(GetContext("name", "EN"), new ENImpl <EntityName>());

            Assert.AreEqual("<name nullFlavor=\"NI\"/>", result.Trim());
        }