@@ -75,19 +75,39 @@ public void HimawariMatched()
7575 }
7676
7777 [ Test ]
78- public void ElectroMatched ( )
78+ public void ElectroN2Matched ( )
7979 {
8080 // Verify 4-9 definition
81- var ( definition , timestamp ) = SatelliteRegistry . Locate ( "c:/images /200830_0230_6.jpg" ) ;
81+ var ( definition , timestamp ) = SatelliteRegistry . Locate ( "c:/satellite/electro-l-n2 /200830_0230_6.jpg" ) ;
8282 definition . Should ( ) . NotBeNull ( "satellite definition should have been found" ) ;
8383 timestamp . Should ( ) . NotBeNull ( "timestamp should have been extracted" ) ;
84+ definition . DisplayName . Should ( ) . Be ( "Electro-L N2" ) ;
8485
8586 definition ! . FilenameParserType . Should ( ) . Be ( FilenameParserType . Electro ) ;
8687 timestamp . Should ( ) . Be ( new DateTime ( 2020 , 08 , 29 , 23 , 30 , 0 ) ) ;
8788
8889 // Verify 1-3 definition
89- ( definition , _ ) = SatelliteRegistry . Locate ( "c:/images /200830_0230_1.jpg" ) ;
90+ ( definition , _ ) = SatelliteRegistry . Locate ( "c:/satellite/electro-l-n2 /200830_0230_1.jpg" ) ;
9091 definition . Should ( ) . NotBeNull ( "satellite definition should have been found" ) ;
92+ definition . DisplayName . Should ( ) . Be ( "Electro-L N2" ) ;
93+ }
94+
95+ [ Test ]
96+ public void ElectroN3Matched_ImageRootPath ( )
97+ {
98+ // Verify 4-9 definition, with a base path matching the test image root
99+ var ( definition , timestamp ) = SatelliteRegistry . Locate ( "c:/satellite/electro-l-n3/200830_0230_6.jpg" ) ;
100+ definition . Should ( ) . NotBeNull ( "satellite definition should have been found" ) ;
101+ timestamp . Should ( ) . NotBeNull ( "timestamp should have been extracted" ) ;
102+ definition . DisplayName . Should ( ) . Be ( "Electro-L N3" ) ;
103+
104+ definition ! . FilenameParserType . Should ( ) . Be ( FilenameParserType . Electro ) ;
105+ timestamp . Should ( ) . Be ( new DateTime ( 2020 , 08 , 29 , 23 , 30 , 0 ) ) ;
106+
107+ // Verify 1-3 definition
108+ ( definition , _ ) = SatelliteRegistry . Locate ( "c:/satellite/electro-l-n3/200830_0230_1.jpg" ) ;
109+ definition . Should ( ) . NotBeNull ( "satellite definition should have been found" ) ;
110+ definition . DisplayName . Should ( ) . Be ( "Electro-L N3" ) ;
91111 }
92112
93113 [ Test ]
0 commit comments