Exemplo n.º 1
0
        public virtual void TestEnPropertyFormatterWhenConformanceLevelIsSetToNullFlavor()
        {
            string result = new EnPropertyFormatter().Format(GetContext("name"), new ENImpl <EntityName>(Ca.Infoway.Messagebuilder.Domainvalue.Nullflavor.NullFlavor
                                                                                                         .ASKED_BUT_UNKNOWN));

            Assert.AreEqual("<name nullFlavor=\"ASKU\"/>", result.Trim());
        }
Exemplo n.º 2
0
        public virtual void TestEnPropertyFormatterWhenConformanceLevelIsNotSpecified()
        {
            string result = new EnPropertyFormatter().Format(GetContext("name"), new ENImpl <EntityName>());

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