public void GetLocalizations_Returns_ExistingLocalizationsONLY()
        {
            var existingLocalizationsKeys = new List<LocalizationDefinition>()
            {
                new LocalizationDefinition("/common/sitename", null, null, "MySite"),
                new LocalizationDefinition("/common/languagemenufi", null, null, "finnish")
            };
            var persister = new TestLocalizationPersister(new MockFileAccessStrategy(TestHelpers.GetLocalizationsFilePath()), existingLocalizationsKeys);
            var actual = persister.GetTranslationsForVersion(null).ToList();

            var expected = new List<LocalizationResult>()
            {
                new LocalizationResult()
                {
                    Key = "common/sitename",
                    Translations = new List<LocalizationResult.Translation>()
                    {
                        new LocalizationResult.Translation() {Language = "fi", Value = "myCompany"},
                        new LocalizationResult.Translation() {Language = "en", Value = "myCompany"},
                        new LocalizationResult.Translation() {Language = "sv", Value = "myCompany"},
                        new LocalizationResult.Translation() {Language = "de", Value = "myCompany"}
                    }
                },
                new LocalizationResult()
                {
                    Key = "common/languagemenufi",
                    Translations = new List<LocalizationResult.Translation>()
                    {
                        new LocalizationResult.Translation() {Language = "fi", Value = "Suomi"},
                        new LocalizationResult.Translation() {Language = "en", Value = "Finnish"},
                        new LocalizationResult.Translation() {Language = "sv", Value = "Suomi"},
                        new LocalizationResult.Translation() {Language = "de", Value = "Suomi"}
                    }
                }
            };

            Assert.AreEqual(expected.Count, actual.Count);
            Assert.AreEqual(expected[0].Translations.FirstOrDefault(), actual[0].Translations.FirstOrDefault());
        }
        public void GetTranslations_Returns_CorrectNumberOfTranslations()
        {
            var existingLocalizationsKeys = new List<LocalizationDefinition>()
            {
                new LocalizationDefinition("/common/sitename", null, null, "MySite"),
                new LocalizationDefinition("/common/languagemenufi", null, null, "finnish")
            };
            var persister = new TestLocalizationPersister(new MockFileAccessStrategy(TestHelpers.GetLocalizationsFilePath()), existingLocalizationsKeys);
            var actual = persister.GetTranslationsForVersion(null);

            Assert.AreEqual(existingLocalizationsKeys.Count, actual.Count());
        }