public void LanguageTags_OlderCachedAllTagsSldrOffline_UseEmbeddedAllTags() { using (new TestEnvironment()) { string allTagsPath = Path.Combine(Sldr.SldrCachePath, "alltags.json"); File.WriteAllText(allTagsPath, "[ { \"full\": \"en-Latn-GB\", \"iso639_3\": \"eng\", \"name\": \"English\", \"region\": \"GB\", \"sldr\": true, \"tag\": \"en-GB\" } ]"); File.SetLastWriteTime(allTagsPath, new DateTime(2000, 1, 1, 12, 0, 0)); Assert.That(Sldr.LanguageTags.Count, Is.GreaterThan(1)); Assert.That(File.Exists(allTagsPath), Is.False); } }