public void Test_Common()
        {
            using (GDMSubmitterRecord subrRec = new GDMSubmitterRecord(fContext.Tree)) {
                subrRec.Name.StringValue = "Test Submitter";
                Assert.AreEqual("Test Submitter", subrRec.Name.StringValue);

                subrRec.RegisteredReference = "regref";
                Assert.AreEqual("regref", subrRec.RegisteredReference);

                var lang = new GDMLanguage(subrRec);
                lang.ParseString("Russian");
                subrRec.Languages.Add(lang);
                Assert.AreEqual("Russian", subrRec.Languages[0].StringValue);

                subrRec.SetLanguage(0, "nothing"); // return without exceptions

                subrRec.SetLanguage(1, "English");
                Assert.AreEqual("English", subrRec.Languages[1].StringValue);

                Assert.IsNotNull(subrRec.Address);

                subrRec.ReplaceXRefs(new GDMXRefReplacer());


                Assert.IsFalse(subrRec.IsEmpty());
                subrRec.Clear();
                Assert.IsTrue(subrRec.IsEmpty());


                subrRec.ResetOwner(fContext.Tree);
                Assert.AreEqual(fContext.Tree, subrRec.GetTree());
            }
        }
        public void Test_SetLanguage()
        {
            var inst = new GDMSubmitterRecord(fContext.Tree);

            inst.SetLanguage(-1, "nothing test");
            Assert.AreEqual(0, inst.Languages.Count);

            inst.SetLanguage(0, "test");
            Assert.AreEqual(1, inst.Languages.Count);
        }