Пример #1
0
        public void Null_or_empty_profile_name_throws_TableTranslationConfigurationException()
        {
            var nullNameProfile  = new NullNameProfile();
            var emptyNameProfile = new EmptyNameProfile();

            Assert.Throws <TableTranslatorConfigurationException>(() => Translator.AddProfile(nullNameProfile));
            Assert.Throws <TableTranslatorConfigurationException>(() => Translator.AddProfile(emptyNameProfile));

            Assert.Throws <TableTranslatorConfigurationException>(() => Translator.AddProfile <NullNameProfile>());
            Assert.Throws <TableTranslatorConfigurationException>(() => Translator.AddProfile <EmptyNameProfile>());
        }
        public void Null_or_empty_profile_name_throws_TableTranslationConfigurationException()
        {
            var nullNameProfile = new NullNameProfile();
            var emptyNameProfile = new EmptyNameProfile();

            Assert.Throws<TableTranslatorConfigurationException>(() => Translator.AddProfile(nullNameProfile));
            Assert.Throws<TableTranslatorConfigurationException>(() => Translator.AddProfile(emptyNameProfile));

            Assert.Throws<TableTranslatorConfigurationException>(() => Translator.AddProfile<NullNameProfile>());
            Assert.Throws<TableTranslatorConfigurationException>(() => Translator.AddProfile<EmptyNameProfile>());
        }