public void Load_FeatureTempletes_unknown()
        {
            CultureInfo.CurrentUICulture = new CultureInfo("xx-XX");
            this._fixture = new TemplatesFixture();
            var template = GenContext.ToolBox.Repo.GetAll().Where(t => t.Identity == "Microsoft.UWPTemplates.Test.FeatureTemplate.CSharp").FirstOrDefault();

            Assert.NotNull(template);
            Assert.Equal <string>("Microsoft", template.Author);
            Assert.Equal <string>("FeatureTemplate", template.Name);
            Assert.Equal <string>("Generic Feature description...", template.Description);
            Assert.Equal <string>("Generic Feature MD description", template.GetRichDescription());
        }
        public void Load_FeatureTempletes_es()
        {
            CultureInfo.CurrentUICulture = new CultureInfo("es-ES");
            this._fixture = new TemplatesFixture();
            var template = GenContext.ToolBox.Repo.GetAll().Where(t => t.Identity == "Microsoft.UWPTemplates.Test.FeatureTemplate.CSharp").FirstOrDefault();

            Assert.NotNull(template);
            Assert.Equal <string>("Microsoft España", template.Author);
            Assert.Equal <string>("Feature de prueba", template.Name);
            Assert.Equal <string>("Está en Español (Feature)...", template.Description);
            Assert.Equal <string>("Descripción de la Feature de prueba", template.GetRichDescription());
        }
        public void Load_PageTempletes_en()
        {
            CultureInfo.CurrentUICulture = new CultureInfo("en-US");
            this._fixture = new TemplatesFixture();
            var template = GenContext.ToolBox.Repo.GetAll().Where(t => t.Identity == "Microsoft.UWPTemplates.Test.PageTemplate.CSharp").FirstOrDefault();

            Assert.NotNull(template);
            Assert.Equal <string>("Microsoft USA", template.Author);
            Assert.Equal <string>("Blank US", template.Name);
            Assert.Equal <string>("US English...", template.Description);
            Assert.Equal <string>("US description", template.GetRichDescription());
        }
 public ITemplateInfoExtensionsTest(TemplatesFixture fixture)
 {
     _fixture = fixture;
 }
예제 #5
0
 public ItemNameServiceTests(TemplatesFixture fixture)
 {
     _fixture = fixture;
 }
예제 #6
0
 public NamingTests(TemplatesFixture fixture)
 {
     _fixture = fixture;
 }
 public LocalizationTest(TemplatesFixture fixture)
 {
     _fixture = fixture;
 }