public void DomainServiceCodeGeneratorAttribute_Ctor_Type()
        {
            // nulls allowed
            DomainServiceClientCodeGeneratorAttribute attr = new DomainServiceClientCodeGeneratorAttribute((Type)null, null);

            Assert.AreEqual(string.Empty, attr.GeneratorName, "Generator name not empty");
            Assert.IsNull(attr.Language, "Language not null");

            // empty strings allowed
            attr = new DomainServiceClientCodeGeneratorAttribute((Type)null, string.Empty);
            Assert.AreEqual(string.Empty, attr.GeneratorName, "Generator name not empty");
            Assert.AreEqual(string.Empty, attr.Language, "Language not empty");

            // valid type accepted
            attr = new DomainServiceClientCodeGeneratorAttribute(typeof(DSCPG_Generator), "ALanguage");
            Assert.AreEqual(typeof(DSCPG_Generator).FullName, attr.GeneratorName, "Generator name the type's full name");
            Assert.AreEqual("ALanguage", attr.Language, "Language not respected");
        }
        public void DomainServiceCodeGeneratorAttribute_Ctor_Strings()
        {
            // nulls allowed
            DomainServiceClientCodeGeneratorAttribute attr = new DomainServiceClientCodeGeneratorAttribute((string)null, null);

            Assert.IsNull(attr.GeneratorName, "Generator name not null");
            Assert.IsNull(attr.Language, "Language not null");

            // empty strings allowed
            attr = new DomainServiceClientCodeGeneratorAttribute(string.Empty, string.Empty);
            Assert.AreEqual(string.Empty, attr.GeneratorName, "Generator name not empty");
            Assert.AreEqual(string.Empty, attr.Language, "Language not empty");

            // valid strings accepted
            attr = new DomainServiceClientCodeGeneratorAttribute("AName", "ALanguage");
            Assert.AreEqual("AName", attr.GeneratorName, "Generator name not respected");
            Assert.AreEqual("ALanguage", attr.Language, "Language not respected");
        }