public void EmbeddedResourceProvider_CanFindExistingResource()
        {
            var provider = new EmbeddedResourceProvider();
            var resource = provider.Get("Templates/EmbeddedResourceTemplate.tmpl");

            Assert.IsNotNull(resource);
            Assert.IsTrue(resource.Length > 0);
        }
        public void EmbeddedResourceProvider_CanFindLocalizedResource()
        {
            var provider = new EmbeddedResourceProvider();
            var resource = provider.Get("Templates/EmbeddedResourceTemplate.tmpl", new CultureInfo("ru-RU"));

            Assert.IsNotNull(resource);
            using (var streamReader = new StreamReader(resource))
            {
                var templateString = streamReader.ReadToEnd();
                Assert.IsTrue(templateString.Contains("русском"));
            }
        }