Skip to content

Commit 36b1c51

Browse files
author
Petr Sramek
committed
added Add_CoordinateValidator_Test method
1 parent e066566 commit 36b1c51

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/PolylineAlgorithm.DependencyInjection.Tests/ServiceCollectionExtensionsTests.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@ namespace PolylineAlgorithm.DependencyInjection.Tests {
99
public class ServiceCollectionExtensionsTests {
1010
private static IServiceCollection Services { get; } = new ServiceCollection().AddPolylineAlgorithm();
1111

12+
[TestMethod]
13+
public void Add_CoordinateValidator_Test() {
14+
// Arrange
15+
var provider = Services
16+
.BuildServiceProvider();
17+
18+
// Act
19+
var encoder = provider
20+
.GetRequiredService<ICoordinateValidator>();
21+
22+
// Assert
23+
Assert.IsInstanceOfType<ICoordinateValidator>(encoder);
24+
}
25+
1226
[TestMethod]
1327
public void Add_PolylineEncoder_Test() {
1428
// Arrange

0 commit comments

Comments
 (0)