1- using Sanchez . Models . CommandLine ;
1+ using AwesomeAssertions . Execution ;
2+ using Sanchez . Models . CommandLine ;
23using Sanchez . Processing . Models ;
34using Sanchez . Processing . Models . Configuration ;
45using Sanchez . Processing . Models . Options ;
@@ -26,16 +27,20 @@ public void PopulateGeostationary()
2627 } ;
2728
2829 var renderOptions = OptionsParser . Populate ( options ) ;
29- Assert . NotNull ( renderOptions . GeostationaryRender ) ;
3030
31- renderOptions . GeostationaryRender ! . Longitude . Should ( ) . Be ( Angle . FromDegrees ( 147 ) . Radians ) ;
32- renderOptions . GeostationaryRender . AtmosphereAmount . Should ( ) . Be ( 0.5f ) ;
33- renderOptions . InterpolationType . Should ( ) . Be ( InterpolationType . NearestNeighbour ) ;
34- renderOptions . ImageSize . Should ( ) . Be ( Constants . Satellite . ImageSize . TwoKm ) ;
35- renderOptions . ImageOffset . Should ( ) . Be ( Constants . Satellite . Offset . TwoKm ) ;
36- renderOptions . Force . Should ( ) . BeFalse ( ) ;
37- renderOptions . Verbose . Should ( ) . BeFalse ( ) ;
38- renderOptions . Quiet . Should ( ) . BeTrue ( ) ;
31+ using ( new AssertionScope ( ) )
32+ {
33+ renderOptions . GeostationaryRender . Should ( ) . NotBeNull ( ) ;
34+
35+ renderOptions . GeostationaryRender ! . Longitude . Should ( ) . Be ( Angle . FromDegrees ( 147 ) . Radians ) ;
36+ renderOptions . GeostationaryRender . AtmosphereAmount . Should ( ) . Be ( 0.5f ) ;
37+ renderOptions . InterpolationType . Should ( ) . Be ( InterpolationType . NearestNeighbour ) ;
38+ renderOptions . ImageSize . Should ( ) . Be ( Constants . Satellite . ImageSize . TwoKm ) ;
39+ renderOptions . ImageOffset . Should ( ) . Be ( Constants . Satellite . Offset . TwoKm ) ;
40+ renderOptions . Force . Should ( ) . BeFalse ( ) ;
41+ renderOptions . Verbose . Should ( ) . BeFalse ( ) ;
42+ renderOptions . Quiet . Should ( ) . BeTrue ( ) ;
43+ }
3944 }
4045
4146 [ Test ]
@@ -57,28 +62,32 @@ public void PopulateEquirectangular()
5762 } ;
5863
5964 var renderOptions = OptionsParser . Populate ( options ) ;
60- Assert . NotNull ( renderOptions . EquirectangularRender ) ;
6165
62- renderOptions . EquirectangularRender ! . AutoCrop . Should ( ) . BeTrue ( ) ;
66+ using ( new AssertionScope ( ) )
67+ {
68+ renderOptions . EquirectangularRender . Should ( ) . NotBeNull ( ) ;
69+
70+ renderOptions . EquirectangularRender ! . AutoCrop . Should ( ) . BeTrue ( ) ;
6371
64- Assert . NotNull ( renderOptions . EquirectangularRender . LatitudeRange ) ;
65- Assert . NotNull ( renderOptions . EquirectangularRender . LongitudeRange ) ;
72+ renderOptions . EquirectangularRender . LatitudeRange . Should ( ) . NotBeNull ( ) ;
73+ renderOptions . EquirectangularRender . LongitudeRange . Should ( ) . NotBeNull ( ) ;
6674
67- renderOptions . EquirectangularRender . LatitudeRange ! . Value . Start . Should ( ) . Be ( Angle . FromDegrees ( - 50 ) . Radians ) ;
68- renderOptions . EquirectangularRender . LatitudeRange ! . Value . End . Should ( ) . Be ( Angle . FromDegrees ( 50 ) . Radians ) ;
75+ renderOptions . EquirectangularRender . LatitudeRange ! . Value . Start . Should ( ) . Be ( Angle . FromDegrees ( - 50 ) . Radians ) ;
76+ renderOptions . EquirectangularRender . LatitudeRange ! . Value . End . Should ( ) . Be ( Angle . FromDegrees ( 50 ) . Radians ) ;
6977
70- renderOptions . EquirectangularRender . LongitudeRange ! . Value . Start . Should ( ) . Be ( Angle . FromDegrees ( - 180 ) . Radians ) ;
71- renderOptions . EquirectangularRender . LongitudeRange ! . Value . End . Should ( ) . Be ( Angle . FromDegrees ( 180 ) . Radians ) ;
78+ renderOptions . EquirectangularRender . LongitudeRange ! . Value . Start . Should ( ) . Be ( Angle . FromDegrees ( - 180 ) . Radians ) ;
79+ renderOptions . EquirectangularRender . LongitudeRange ! . Value . End . Should ( ) . Be ( Angle . FromDegrees ( 180 ) . Radians ) ;
7280
73- renderOptions . SpatialResolution . Should ( ) . Be ( Constants . Satellite . SpatialResolution . FourKm ) ;
74- renderOptions . Tint . Should ( ) . Be ( Color . FromRgb ( 255 , 0 , 0 ) ) ;
75- renderOptions . InterpolationType . Should ( ) . Be ( InterpolationType . Bilinear ) ;
76- renderOptions . ImageSize . Should ( ) . Be ( Constants . Satellite . ImageSize . FourKm ) ;
77- renderOptions . ImageOffset . Should ( ) . Be ( Constants . Satellite . Offset . FourKm ) ;
78- renderOptions . Interval . Should ( ) . Be ( TimeSpan . FromMinutes ( 30 ) ) ;
79- renderOptions . Brightness . Should ( ) . Be ( 1.2f ) ;
80- renderOptions . Saturation . Should ( ) . Be ( 0.5f ) ;
81- renderOptions . Force . Should ( ) . BeTrue ( ) ;
82- renderOptions . Verbose . Should ( ) . BeTrue ( ) ;
81+ renderOptions . SpatialResolution . Should ( ) . Be ( Constants . Satellite . SpatialResolution . FourKm ) ;
82+ renderOptions . Tint . Should ( ) . Be ( Color . FromRgb ( 255 , 0 , 0 ) ) ;
83+ renderOptions . InterpolationType . Should ( ) . Be ( InterpolationType . Bilinear ) ;
84+ renderOptions . ImageSize . Should ( ) . Be ( Constants . Satellite . ImageSize . FourKm ) ;
85+ renderOptions . ImageOffset . Should ( ) . Be ( Constants . Satellite . Offset . FourKm ) ;
86+ renderOptions . Interval . Should ( ) . Be ( TimeSpan . FromMinutes ( 30 ) ) ;
87+ renderOptions . Brightness . Should ( ) . Be ( 1.2f ) ;
88+ renderOptions . Saturation . Should ( ) . Be ( 0.5f ) ;
89+ renderOptions . Force . Should ( ) . BeTrue ( ) ;
90+ renderOptions . Verbose . Should ( ) . BeTrue ( ) ;
91+ }
8392 }
8493}
0 commit comments