using NUnit.Framework;
using ZendeskApi_v2;

namespace Tests
{
    [TestFixture]
    public class LocaleTests
    {
        private ZendeskApi api = new ZendeskApi(Settings.Site, Settings.Email, Settings.Password);

        [Test]
        public void CanGetLocales()
        {
            var all = api.Locales.GetAllLocales();
            Assert.Greater(all.Count, 0);

            var agent = api.Locales.GetLocalesForAgents();
            Assert.Greater(agent.Count, 0);

            var specific = api.Locales.GetLocaleById(all.Locales[0].Id);
            Assert.AreEqual(specific.Locale.Id, all.Locales[0].Id);

            var current = api.Locales.GetCurrentLocale();
            Assert.Greater(current.Locale.Id, 0);
        }
    }
}
using NUnit.Framework;
using ZendeskApi_v2;

namespace Tests
{
    [TestFixture]
    public class LocaleTests
    {
        private ZendeskApi api = new ZendeskApi(Settings.Site, Settings.Email, Settings.Password);

        [Test]
        public void CanGetLocales()
        {
            var all = api.Locales.GetAllLocales();
            Assert.Greater(all.Count, 0);

            var agent = api.Locales.GetLocalesForAgents();
            Assert.Greater(agent.Count, 0);

            var specific = api.Locales.GetLocaleById(all.Locales[0].Id);
            Assert.AreEqual(specific.Locale.Id, all.Locales[0].Id);
            Assert.IsNull(specific.Locale.Translations);

            var specificWithTranslation = api.Locales.GetLocaleById(all.Locales[0].Id, true);
            Assert.AreEqual(specificWithTranslation.Locale.Id, all.Locales[0].Id);
            Assert.IsNotNull(specificWithTranslation.Locale.Translations);

            var current = api.Locales.GetCurrentLocale();
            Assert.Greater(current.Locale.Id, 0);
            Assert.IsNull(current.Locale.Translations);

            var currentWithTranslation = api.Locales.GetCurrentLocale(true);
            Assert.Greater(currentWithTranslation.Locale.Id, 0);
            Assert.IsNotNull(currentWithTranslation.Locale.Translations);
        }
    }
}
Add test case for fetch translation metadata capability when getting locales.
Add test case for fetch translation metadata capability when getting locales.
