コード例 #1
0
        public virtual void TestFormatValueNoSpecializationType()
        {
            EnPropertyFormatter formatter = new EnPropertyFormatter();
            EntityName          name      = new EntityName();

            name.AddNamePart(new EntityNamePart("prefix", PersonNamePartType.PREFIX));
            name.AddNamePart(new EntityNamePart("given", PersonNamePartType.GIVEN));
            Assert.AreEqual("<x><prefix>prefix</prefix><given>given</given></x>", formatter.Format(GetContext("x"), new ENImpl <EntityName
                                                                                                                                >(name)).Trim(), "result");
            System.Console.Out.WriteLine(string.Empty);
        }