Skip to content

Commit

Permalink
test adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
vlada-shubina committed Aug 9, 2022
1 parent 493651a commit 418268d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ internal async Task PhysicalConfigurationTest()
var hostDir = Path.Combine(userProfileDir, ".templateengine", nameof(PhysicalConfigurationTest).ToString());
try
{
var builtIns = BuiltInTemplatePackagesProviderFactory.GetComponents(includeTestTemplates: false);
var builtIns = BuiltInTemplatePackagesProviderFactory.GetComponents(includeTestTemplates: true);
var host = new DefaultTemplateEngineHost(nameof(PhysicalConfigurationTest).ToString(), "1.0.0", null, builtIns, Array.Empty<string>());

Bootstrapper bootstrapper = new Bootstrapper(host, virtualizeConfiguration: false, loadDefaultComponents: true);
Expand All @@ -48,7 +48,7 @@ internal async Task VirtualConfigurationTest()
var userProfileDir = Environment.GetEnvironmentVariable(RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? "USERPROFILE" : "HOME");
var hostDir = Path.Combine(userProfileDir, ".templateengine", nameof(VirtualConfigurationTest).ToString());

var builtIns = BuiltInTemplatePackagesProviderFactory.GetComponents(includeTestTemplates: false);
var builtIns = BuiltInTemplatePackagesProviderFactory.GetComponents(includeTestTemplates: true);
var host = new DefaultTemplateEngineHost(nameof(VirtualConfigurationTest).ToString(), "1.0.0", null, builtIns, Array.Empty<string>());

Bootstrapper bootstrapper = new Bootstrapper(host, virtualizeConfiguration: true, loadDefaultComponents: true);
Expand Down Expand Up @@ -87,7 +87,7 @@ internal async Task PhysicalConfigurationTest_WithChangedHostLocation()
var unexpectedHostDir = Path.Combine(userProfileDir, ".templateengine", nameof(PhysicalConfigurationTest_WithChangedHostLocation).ToString());
var expectedHostDir = TestUtils.CreateTemporaryFolder();

var builtIns = BuiltInTemplatePackagesProviderFactory.GetComponents(includeTestTemplates: false);
var builtIns = BuiltInTemplatePackagesProviderFactory.GetComponents(includeTestTemplates: true);
var host = new DefaultTemplateEngineHost(nameof(PhysicalConfigurationTest_WithChangedHostLocation).ToString(), "1.0.0", null, builtIns, Array.Empty<string>());

Bootstrapper bootstrapper = new Bootstrapper(host, virtualizeConfiguration: false, loadDefaultComponents: true, hostSettingsLocation: expectedHostDir);
Expand Down

0 comments on commit 418268d

Please sign in to comment.