Skip to content

Commit 7e8f6f9

Browse files
committed
Include GenerateProviderOptions in unit test
1 parent e345d0d commit 7e8f6f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

EFCore.Sqlite.NodaTime.Tests/DesignTimeServicesTests.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ public void ConfigureDesignTimeServices_works()
1818
var serviceProvider = serviceCollection.BuildServiceProvider();
1919

2020
Assert.IsType<SqliteNodaTimeTypeMappingSourcePlugin>(serviceProvider.GetService<IRelationalTypeMappingSourcePlugin>());
21-
Assert.IsType<SqliteNodaTimeCodeGeneratorPlugin>(serviceProvider.GetService<IProviderCodeGeneratorPlugin>());
21+
var plugin = Assert.IsType<SqliteNodaTimeCodeGeneratorPlugin>(serviceProvider.GetService<IProviderCodeGeneratorPlugin>());
22+
Assert.NotNull(plugin.GenerateProviderOptions().MethodInfo);
2223
}
2324
}
2425
}

0 commit comments

Comments
 (0)