Azure / Azure/data-api-builder

Update SerializationDeserialization tests to validate field names and not field count.

オープン
#2,345 コメント 0 件 リアクション 0 件 担当者 1 名 @rusamant が担当を希望しています GitHub で見る
testing usability validation
主要言語
C#
スター
1.5k
フォーク
370
平均マージ
3日 22時間
マージ済み PR(30日)
9

説明

Examples in SerializationDeserialization tests validate field count with magic numbers. If this number were to change and fail tests, we have no way of knowing which fields the tests were checking for.

```csharp
Assert.AreEqual(fields, 8); // what are the 8 fields??
Assert.AreEqual(fields, 5); // what are the 5 fields?
```

https://github.com/Azure/data-api-builder/blob/e8d9fcb9ac1c2aa8b47808b0a658a09e092545e0/src/Service.Tests/Unittests/SerializationDeserializationTests.cs#L428-L445

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。