File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
Flow.Launcher.Test/Plugins Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -63,28 +63,5 @@ public async Task GivenVariousJsonText_WhenVariousNamingCase_ThenExpectNotNullRe
63
63
} )
64
64
} ;
65
65
66
- [ TestCaseSource ( typeof ( JsonRPCPluginTest ) , nameof ( ResponseModelsSource ) ) ]
67
- public async Task GivenModel_WhenSerializeWithDifferentNamingPolicy_ThenExpectSameResult_Async ( JsonRPCQueryResponseModel reference )
68
- {
69
- var camelText = JsonSerializer . Serialize ( reference , new JsonSerializerOptions ( ) { PropertyNamingPolicy = JsonNamingPolicy . CamelCase } ) ;
70
-
71
- var pascalText = JsonSerializer . Serialize ( reference ) ;
72
-
73
- var results1 = await QueryAsync ( new Query { Search = camelText } , default ) ;
74
- var results2 = await QueryAsync ( new Query { Search = pascalText } , default ) ;
75
-
76
- Assert . IsNotNull ( results1 ) ;
77
- Assert . IsNotNull ( results2 ) ;
78
-
79
- foreach ( var ( ( result1 , result2 ) , referenceResult ) in results1 . Zip ( results2 ) . Zip ( reference . Result ) )
80
- {
81
- Assert . AreEqual ( result1 . Title , result2 . Title ) ;
82
- Assert . AreEqual ( result1 . Title , referenceResult . Title ) ;
83
-
84
- Assert . IsNotNull ( result1 ) ;
85
- Assert . IsNotNull ( result1 . AsyncAction ) ;
86
- }
87
- }
88
-
89
66
}
90
67
}
You can’t perform that action at this time.
0 commit comments