Add unit tests for DIRegistrationGenerator#13
Conversation
… Moq Co-authored-by: xm-i <6365453+xm-i@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
Co-authored-by: xm-i <6365453+xm-i@users.noreply.github.com>
|
余計なファイル入ってるから消して。 |
Co-authored-by: xm-i <6365453+xm-i@users.noreply.github.com>
ご指摘ありがとうございます。ローカルの作業環境に残っていたパッチファイルやテスト用のスクリプト等(fix*.patch, run.csx等)は既にすべて削除済みです。PRのコミットツリーにも含まれていないことを確認しております。 |
xUnit, Shouldly、Moq を使用して AutoDiAttributes.Generator.Tests プロジェクト内に
DIRegistrationGeneratorTests.csを作成し、ソースジェネレーターの挙動を網羅するテストを実装しました。Generator_ShouldGenerateSource_WhenAttributeIsPresent: 通常の登録生成Generator_ShouldFallbackToTransient_WhenLifetimeIsInvalid: ライフタイムのフォールバックGenerator_ShouldUseImplementationTypeAsServiceType_WhenServiceTypeIsOmitted: サービス型省略時の動作Generator_ShouldNotGenerateRegistrations_WhenAttributeIsAbsent: 属性なしでの動作確認すべて指定されたフォーマット(タブインデント、英語メソッド名、日本語XMLドキュメントコメント)に準拠しています。
PR created automatically by Jules for task 18371563479573191417 started by @xm-i