Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6081efd

Browse files
committed
chore: migrate tests to net6.0
1 parent371a285 commit6081efd

File tree

4 files changed

+16
-19
lines changed

4 files changed

+16
-19
lines changed

‎ReduxSimple.DevTools/Actions.cs‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
/// </summary>
66
publicclassHistoryUpdated
77
{
8-
publicImmutableList<ReduxActionInfo>?CurrentActions{get;set;}
9-
publicImmutableList<ReduxActionInfo>?FutureActions{get;set;}
8+
publicImmutableList<ReduxActionInfo>CurrentActions{get;set;}=ImmutableList<ReduxActionInfo>.Empty;
9+
publicImmutableList<ReduxActionInfo>FutureActions{get;set;}=ImmutableList<ReduxActionInfo>.Empty;
1010
}
1111

1212
/// <summary>
@@ -22,7 +22,7 @@ public class MoveToPositionAction
2222
/// </summary>
2323
publicclassSelectPositionAction
2424
{
25-
publicint?Position{get;set;}
25+
publicintPosition{get;set;}
2626
}
2727

2828
/// <summary>

‎ReduxSimple.DevTools/DevToolsState.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/// <summary>
44
/// State used (internally) to display information about the Application Store.
55
/// </summary>
6-
publicclassDevToolsState
6+
publicrecordDevToolsState
77
{
88
/// <summary>
99
/// List of current (dispatched) actions in the Application Store.

‎ReduxSimple.DevTools/Reducers.cs‎

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
usingConverto;
2-
usingstaticReduxSimple.Reducers;
1+
usingstaticReduxSimple.Reducers;
32

43
namespaceReduxSimple.DevTools;
54

@@ -10,26 +9,24 @@ public static IEnumerable<On<DevToolsState>> CreateReducers()
109
returnnewList<On<DevToolsState>>
1110
{
1211
On<TogglePlayPauseAction,DevToolsState>(
13-
state=>state.With(new{PlaySessionActive=!state.PlaySessionActive})
12+
state=>statewith{PlaySessionActive=!state.PlaySessionActive}
1413
),
1514
On<SelectPositionAction,DevToolsState>(
16-
(state,action)=>state.With(new{SelectedActionPosition=action.Position})
15+
(state,action)=>statewith{SelectedActionPosition=action.Position}
1716
),
1817
On<HistoryUpdated,DevToolsState>(
1918
(state,action)=>
2019
{
2120
boolsetPositionToLastAction=state.SelectedActionPosition>=state.CurrentActions.Count-1;
2221

23-
returnstate.With(
24-
new
25-
{
26-
action.CurrentActions,
27-
action.FutureActions,
28-
SelectedActionPosition=setPositionToLastAction&&action.CurrentActions!=null
29-
?action.CurrentActions.Count-1
30-
:state.SelectedActionPosition
31-
}
32-
);
22+
returnstatewith
23+
{
24+
CurrentActions=action.CurrentActions,
25+
FutureActions=action.FutureActions,
26+
SelectedActionPosition=setPositionToLastAction&&action.CurrentActions!=null
27+
?action.CurrentActions.Count-1
28+
:state.SelectedActionPosition
29+
};
3330
}
3431
)
3532
};

‎ReduxSimple.Tests/ReduxSimple.Tests.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<ProjectSdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>netcoreapp3.1</TargetFramework>
4+
<TargetFramework>net6.0</TargetFramework>
55

66
<LangVersion>latest</LangVersion>
77
<Nullable>enable</Nullable>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp