Skip to content

Commit

Permalink
Include GenerateProviderOptions in unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
khellang committed Nov 10, 2021
1 parent e345d0d commit 7e8f6f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion EFCore.Sqlite.NodaTime.Tests/DesignTimeServicesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ public void ConfigureDesignTimeServices_works()
var serviceProvider = serviceCollection.BuildServiceProvider();

Assert.IsType<SqliteNodaTimeTypeMappingSourcePlugin>(serviceProvider.GetService<IRelationalTypeMappingSourcePlugin>());
Assert.IsType<SqliteNodaTimeCodeGeneratorPlugin>(serviceProvider.GetService<IProviderCodeGeneratorPlugin>());
var plugin = Assert.IsType<SqliteNodaTimeCodeGeneratorPlugin>(serviceProvider.GetService<IProviderCodeGeneratorPlugin>());
Assert.NotNull(plugin.GenerateProviderOptions().MethodInfo);
}
}
}

0 comments on commit 7e8f6f9

Please sign in to comment.