public void MetadataDefaultValue_Meta()
        {
            Meta meta;

            meta = new Meta();
            Assert.IsNull(meta.NonTranslatableText, "NonTranslatableText is incorrect.");
            Assert.IsNull(meta.Type, "Type is incorrect.");

            meta = new Meta("text");
            Assert.AreEqual("text", meta.NonTranslatableText, "NonTranslatableText is incorrect.");
            Assert.IsNull(meta.Type, "Type is incorrect.");

            meta = new Meta("type", "text");
            Assert.AreEqual("text", meta.NonTranslatableText, "NonTranslatableText is incorrect.");
            Assert.AreEqual("type", meta.Type, "Type is incorrect.");
        }
        /// <summary>
        /// Demonstrates how to store metadata in a <see cref="File"/> element.
        /// </summary>
        public static void StoreMetadata()
        {
            File file;
            Meta meta;
            MetaGroup metaGroup;

            file = new File("id");

            file.Metadata = new MetadataContainer();

            metaGroup = new MetaGroup();
            metaGroup.AppliesTo = MetaGroupSubject.Source;
            metaGroup.Category = "document_state";
            metaGroup.Id = "g1";
            file.Metadata.Groups.Add(metaGroup);

            meta = new Meta("draft");
            meta.Type = "phase";
            metaGroup.Containers.Add(meta);
        }
        /// <summary>
        /// Creates a generic <see cref="MetadataContainer"/> with metadata within it.
        /// </summary>
        /// <param name="nullGroupId">True indicates that the <see cref="MetadataGroup"/> should be created with a
        /// null Id. False indicates that the <see cref="MetadataGroup"/> should have a valid Id.</param>
        /// <returns></returns>
        private MetadataContainer CreateMetadataContainer(bool nullGroupId)
        {
            Meta meta;
            MetadataContainer container;

            container = new MetadataContainer();
            container.Id = "m1";
            container.Groups.Add(new MetaGroup());
            if (!nullGroupId)
            {
                container.Groups[0].Id = "g1";
            }
            meta = new Meta();
            meta.Type = "type";
            container.Groups[0].Containers.Add(meta);

            return container;
        }
        /// <summary>
        /// Creates metadata with every element and attribute.
        /// </summary>
        /// <returns>The created metadata.</returns>
        private Meta CreateMeta()
        {
            Meta result;

            result = new Meta("text");
            result.Type = "pre:type";

            return result;
        }