diff --git a/Tests/Reqnroll.GeneratorTests/GeneratorContainerBuilderTests.cs b/Tests/Reqnroll.GeneratorTests/GeneratorContainerBuilderTests.cs
index 7c1b2574b..55b89f374 100644
--- a/Tests/Reqnroll.GeneratorTests/GeneratorContainerBuilderTests.cs
+++ b/Tests/Reqnroll.GeneratorTests/GeneratorContainerBuilderTests.cs
@@ -26,10 +26,16 @@ public void Should_register_generator_configuration_with_default_config()
[Fact]
public void Should_register_generator_with_custom_settings_when_configured()
{
- var container = new GeneratorContainerBuilder().CreateContainer(new ReqnrollConfigurationHolder(ConfigSource.AppConfig, @"
-
-
- "), new ProjectSettings(), Enumerable.Empty());
+ var container = new GeneratorContainerBuilder().CreateContainer(
+ new ReqnrollConfigurationHolder(
+ ConfigSource.Json,
+ """
+ {
+ "generator": {
+ "allowDebugGeneratedFiles": true
+ }
+ }
+ """), new ProjectSettings(), Enumerable.Empty());
container.Resolve().AllowDebugGeneratedFiles.Should().Be(true);
}
}
diff --git a/Tests/Reqnroll.GeneratorTests/TestGeneratorFactoryTests.cs b/Tests/Reqnroll.GeneratorTests/TestGeneratorFactoryTests.cs
index ec7971fcc..464943447 100644
--- a/Tests/Reqnroll.GeneratorTests/TestGeneratorFactoryTests.cs
+++ b/Tests/Reqnroll.GeneratorTests/TestGeneratorFactoryTests.cs
@@ -52,25 +52,5 @@ public void Dispose()
//nop;
}
}
-
- [Fact]
- public void Should_create_custom_generator_when_configured_so()
- {
- var configurationHolder = new ReqnrollConfigurationHolder(ConfigSource.AppConfig, string.Format(@"
-
-
-
-
-
-
- ",
- typeof(DummyGenerator).AssemblyQualifiedName,
- typeof(ITestGenerator).AssemblyQualifiedName));
-
- var projectSettings = net35CSProjectSettings;
- projectSettings.ConfigurationHolder = configurationHolder;
- var generator = _factory.CreateGenerator(projectSettings, Enumerable.Empty());
- generator.Should().BeOfType();
- }
}
}