Skip to content

Commit

Permalink
remove equality test
Browse files Browse the repository at this point in the history
  • Loading branch information
jjw24 authored Jan 18, 2025
1 parent 2de63f7 commit 8e5d778
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions Flow.Launcher.Test/Plugins/JsonRPCPluginTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,28 +63,5 @@ public async Task GivenVariousJsonText_WhenVariousNamingCase_ThenExpectNotNullRe
})
};

[TestCaseSource(typeof(JsonRPCPluginTest), nameof(ResponseModelsSource))]
public async Task GivenModel_WhenSerializeWithDifferentNamingPolicy_ThenExpectSameResult_Async(JsonRPCQueryResponseModel reference)
{
var camelText = JsonSerializer.Serialize(reference, new JsonSerializerOptions() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase });

var pascalText = JsonSerializer.Serialize(reference);

var results1 = await QueryAsync(new Query { Search = camelText }, default);
var results2 = await QueryAsync(new Query { Search = pascalText }, default);

Assert.IsNotNull(results1);
Assert.IsNotNull(results2);

foreach (var ((result1, result2), referenceResult) in results1.Zip(results2).Zip(reference.Result))
{
Assert.AreEqual(result1.Title, result2.Title);
Assert.AreEqual(result1.Title, referenceResult.Title);

Assert.IsNotNull(result1);
Assert.IsNotNull(result1.AsyncAction);
}
}

}
}

0 comments on commit 8e5d778

Please sign in to comment.