File tree Expand file tree Collapse file tree
tests/Examples.SmokeTests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -46,23 +46,23 @@ public void Receive (Message<LoginActions> message)
4646 switch ( message . Value )
4747 {
4848 case LoginActions . Clear :
49- {
50- loginProgressLabel . Text = ViewModel . LoginProgressMessage ;
51- validationLabel . Text = ViewModel . ValidationMessage ;
52- validationLabel . SetScheme ( ViewModel . ValidationScheme ) ;
53- break ;
54- }
49+ {
50+ loginProgressLabel . Text = ViewModel . LoginProgressMessage ;
51+ validationLabel . Text = ViewModel . ValidationMessage ;
52+ validationLabel . SetScheme ( ViewModel . ValidationScheme ) ;
53+ break ;
54+ }
5555 case LoginActions . LoginProgress :
56- {
57- loginProgressLabel . Text = ViewModel . LoginProgressMessage ;
58- break ;
59- }
56+ {
57+ loginProgressLabel . Text = ViewModel . LoginProgressMessage ;
58+ break ;
59+ }
6060 case LoginActions . Validation :
61- {
62- validationLabel . Text = ViewModel . ValidationMessage ;
63- validationLabel . SetScheme ( ViewModel . ValidationScheme ) ;
64- break ;
65- }
61+ {
62+ validationLabel . Text = ViewModel . ValidationMessage ;
63+ validationLabel . SetScheme ( ViewModel . ValidationScheme ) ;
64+ break ;
65+ }
6666 }
6767
6868 SetText ( ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ public static class Program
1010
1111 private static async Task Main ( string [ ] args )
1212 {
13- var smokeTest = args . Length > 0 && args [ 0 ] == "--smoke-test" ;
13+ var smokeTest = args . Length > 0 && args [ 0 ] == "--smoke-test" ;
1414
1515 ConfigurationManager . Enable ( ConfigLocations . All ) ;
1616 Services = ConfigureServices ( ) ;
Original file line number Diff line number Diff line change 1515
1616IApplication app = Application . Create ( ) . Init ( ) ;
1717
18- var smokeTest = args . Length > 0 && args [ 0 ] == "--smoke-test" ;
18+ var smokeTest = args . Length > 0 && args [ 0 ] == "--smoke-test" ;
1919
2020if ( smokeTest )
2121{
@@ -61,7 +61,7 @@ public ExampleWindow ()
6161 } ;
6262
6363 Label passwordLabel = new ( )
64- { Text = "Password:" , X = Pos . Left ( usernameLabel ) , Y = Pos . Bottom ( usernameLabel ) + 1 } ;
64+ { Text = "Password:" , X = Pos . Left ( usernameLabel ) , Y = Pos . Bottom ( usernameLabel ) + 1 } ;
6565
6666 TextField passwordText = new ( )
6767 {
Original file line number Diff line number Diff line change 1616<s : String x : Key =" /Default/CodeStyle/CSharpVarKeywordUsage/ForBuiltInTypes/@EntryValue" >UseExplicitType</s : String >
1717<s : String x : Key =" /Default/CodeStyle/CSharpVarKeywordUsage/ForSimpleTypes/@EntryValue" >UseExplicitType</s : String >
1818<s : String x : Key =" /Default/CodeStyle/CSharpVarKeywordUsage/Elsewhere/@EntryValue" >UseExplicitType</s : String >
19+ <s : Boolean x : Key =" /Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpKeepExistingMigration/@EntryIndexedValue" >True</s : Boolean >
20+ <s : Boolean x : Key =" /Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpPlaceEmbeddedOnSameLineMigration/@EntryIndexedValue" >True</s : Boolean >
21+ <s : Boolean x : Key =" /Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpUseContinuousIndentInsideBracesMigration/@EntryIndexedValue" >True</s : Boolean >
22+ <s : Boolean x : Key =" /Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EMigrateBlankLinesAroundFieldToBlankLinesAroundProperty/@EntryIndexedValue" >True</s : Boolean >
1923</wpf : ResourceDictionary >
Original file line number Diff line number Diff line change 66using Terminal . Gui . ViewBase ;
77using Terminal . Gui . Views ;
88
9- var smokeTest = args . Length > 0 && args [ 0 ] == "--smoke-test" ;
9+ var smokeTest = args . Length > 0 && args [ 0 ] == "--smoke-test" ;
1010
1111IApplication app = Application . Create ( ) . Init ( ) ;
1212
Original file line number Diff line number Diff line change 2424
2525IApplication app = Application . Create ( ) . Init ( ) ;
2626
27- var smokeTest = args . Length > 0 && args [ 0 ] == "--smoke-test" ;
27+ var smokeTest = args . Length > 0 && args [ 0 ] == "--smoke-test" ;
2828
2929if ( smokeTest )
3030{
@@ -66,7 +66,7 @@ public InlinePromptView ()
6666
6767 StatusBar statusBar = new ( ) { AlignmentModes = AlignmentModes . IgnoreFirstOrLast , SchemeName = SchemeName } ;
6868 Shortcut itemCountShortcut = new ( )
69- { Title = "No items" , MouseHighlightStates = MouseState . None , Enabled = false } ;
69+ { Title = "No items" , MouseHighlightStates = MouseState . None , Enabled = false } ;
7070
7171 _cursorShortcut = new Shortcut { Text = "Cursor" , MouseHighlightStates = MouseState . None , Enabled = false } ;
7272 _driverShortcut = new Shortcut { Text = "Driver" , MouseHighlightStates = MouseState . None , Enabled = false } ;
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ protected override bool OnDrawingContent (DrawContext? context)
4444 Gradient gradient = new ( stops , steps ) ;
4545
4646 var artHeight = 3 ;
47- var artWidth = _artLines [ 0 ] . Length ;
47+ var artWidth = _artLines [ 0 ] . Length ;
4848
4949 Dictionary < Point , Color > colorMap =
5050 gradient . BuildCoordinateColorMapping ( artHeight , artWidth , GradientDirection . Diagonal ) ;
@@ -53,11 +53,11 @@ protected override bool OnDrawingContent (DrawContext? context)
5353
5454 for ( var row = 0 ; row < _artLines . Length ; row ++ )
5555 {
56- var line = _artLines [ row ] ;
56+ var line = _artLines [ row ] ;
5757
5858 for ( var col = 0 ; col < line . Length ; col ++ )
5959 {
60- var ch = line [ col ] ;
60+ var ch = line [ col ] ;
6161
6262 if ( ch == ' ' )
6363 {
Original file line number Diff line number Diff line change 2020using Terminal . Gui . Views ;
2121
2222// Check for smoke test mode
23- var smokeTest = args . Length > 0 && args [ 0 ] == "--smoke-test" ;
23+ var smokeTest = args . Length > 0 && args [ 0 ] == "--smoke-test" ;
2424
2525if ( smokeTest )
2626{
4141
4242for ( var i = 0 ; i < args . Length ; i ++ )
4343{
44- if ( args [ i ] is "--initial" or "-i" )
44+ if ( args [ i ] is "--initial" or "-i" )
4545 {
4646 if ( i + 1 < args . Length )
4747 {
48- initialValue = args [ ++ i ] ;
48+ initialValue = args [ ++ i ] ;
4949 }
5050 else
5151 {
6464// Wrap ColorPicker in a RunnableWrapper — no dialog buttons, just the picker.
6565// ColorPicker raises Command.Accept on double-click.
6666RunnableWrapper < ColorPicker , Color ? > wrapper = new ( )
67- { Title = "Select a Color (Double-click to accept, Esc to cancel)" , ResultExtractor = cp => cp . Value } ;
67+ { Title = "Select a Color (Double-click to accept, Esc to cancel)" , ResultExtractor = cp => cp . Value } ;
6868
6969// Enable color name display
7070wrapper . GetWrappedView ( ) . Style . ShowColorName = true ;
Original file line number Diff line number Diff line change 2424using Timeout = System . Threading . Timeout ;
2525
2626// Check for smoke test mode
27- var smokeTest = args . Length > 0 && args [ 0 ] == "--smoke-test" ;
27+ var smokeTest = args . Length > 0 && args [ 0 ] == "--smoke-test" ;
2828
2929if ( smokeTest )
3030{
4949
5050for ( var i = 0 ; i < args . Length ; i ++ )
5151{
52- var arg = args [ i ] ;
52+ var arg = args [ i ] ;
5353
5454 switch ( arg )
5555 {
5656 case "--horizontal" or "-h" : orientation = Orientation . Horizontal ; break ;
5757
5858 case "--vertical" or "-v" : orientation = Orientation . Vertical ; break ;
5959
60- case "--timeout" or "-t" when i + 1 < args . Length && int . TryParse ( args [ i + 1 ] , out var seconds ) :
60+ case "--timeout" or "-t" when i + 1 < args . Length && int . TryParse ( args [ i + 1 ] , out var seconds ) :
6161 timeoutSeconds = seconds ;
6262 i ++ ; // skip the next arg (the number)
6363
6868
6969 return 1 ;
7070
71- case "--initial" or "-i" when i + 1 < args . Length : initialValue = args [ ++ i ] ; break ;
71+ case "--initial" or "-i" when i + 1 < args . Length : initialValue = args [ ++ i ] ; break ;
7272
7373 case "--initial" or "-i" :
7474 Console . Error . WriteLine ( "Error: --initial requires an index value." ) ;
162162
163163if ( result is { } selectedIndex and >= 0 && selectedIndex < options . Count )
164164{
165- Console . WriteLine ( options [ selectedIndex ] ) ;
165+ Console . WriteLine ( options [ selectedIndex ] ) ;
166166
167167 return 0 ;
168168}
Original file line number Diff line number Diff line change 1515
1616// ReSharper disable AccessToDisposedClosure
1717
18- var smokeTest = args . Length > 0 && args [ 0 ] == "--smoke-test" ;
18+ var smokeTest = args . Length > 0 && args [ 0 ] == "--smoke-test" ;
1919
2020if ( smokeTest )
2121{
You can’t perform that action at this time.
0 commit comments