-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 単体テストプロジェクトにLoggerを使うテストクラスのベースクラスを追加 * Dressca.UnitTestsのLoggerを使うテストクラスでTestBaseを継承するよう変更 * ConsoleAppWithDIの結合テストプロジェクトにテストのベースクラスを追加 * TestBaseを使うようにConsoleAppWithDIの結合テストを修正 * ConsoleAppWithDIの単体テストプロジェクトにテストのベースクラスを追加 * TestBaseを使うようにConsoleAppWithDIの単体テストを修正 * カタログアイテムが見つからないときのログレベルを情報に変更 * 情報ログの出力を確認する単体テストを追加 * LiveUnitTestingの設定ファイルを除外設定に追加 * テストコードの実装パターンで抵触する情報レベルのエラー通知を無効化 * Dressca.UnitTestsのテストメソッド名でテスト仕様を表現するように修正 * コンストラクターの必要なテストクラスでプライマリーコンストラクターを利用するよう修正 * 不要なusingを削除 * Dressca.UnitTestsのコレクション検証処理で要素数が1のものを検証する場合Assert.Singleを利用するように修正 * Dressca.UnitTestsの配列、リスト初期化処理を簡易構文に修正 * Dressca.UnitTestsで要素数が0の検証をCountプロパティで実施するよう変更 * nullを許容する箇所でNull許容参照型を利用するように修正 * オブジェクト初期化の簡易構文を利用するよう修正 * プライマリーコンストラクターを使用するように修正 * テストメソッド名にテスト仕様を含めるように修正 * defaultの短縮構文を利用するように修正 * テストメソッド名にテスト仕様を含めるよう修正 * MemberDataAttributeの対象データにTheoryDataを利用するよう修正 * 不要なusingを削除 * .gitignoreに*.lutconfigを追加 * IDE0039をテストコードでは無視するよう設定 * テストメソッドの名前でテスト仕様を表現するように修正 * Arrangeの漏れを修正 * 型の誤りを修正 * 単一要素のコレクションの検証にAssert.Singleを使うよう修正 * 配列の初期化処理で短縮構文を利用するよう修正 * 単一要素のコレクションの検証にAssert.Singleを利用するよう修正 * 配列の初期化処理で短縮構文を利用するように修正 * コンストラクターの呼び出しで短縮構文を利用するように修正 * MemberDataのデータソースにTheoryDataを利用するよう修正 * プライマリーコンストラクターを利用するように修正 * テストコードでのSA1602の警告を無効化 * プライマリーコンストラクターを利用するように修正 * リストの初期化処理で短縮構文を利用するように修正 * 不要なコンストラクターを削除
- Loading branch information
1 parent
13e34cd
commit f59b0e2
Showing
59 changed files
with
485 additions
and
468 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
[*.cs] | ||
# Wrapping preferences | ||
dotnet_diagnostic.IDE0039.severity=none | ||
dotnet_diagnostic.SA0001.severity=none | ||
dotnet_diagnostic.SA1123.severity=none | ||
dotnet_diagnostic.SA1600.severity=none | ||
dotnet_diagnostic.SA1602.severity=none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
...nsoleAppWithDI/solution/tests/Maris.ConsoleApp.IntegrationTests/ScopeTests/TestObject1.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
samples/ConsoleAppWithDI/solution/tests/Maris.ConsoleApp.IntegrationTests/TestBase.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using Maris.Logging.Testing.Xunit; | ||
using Xunit.Abstractions; | ||
|
||
namespace Maris.ConsoleApp.IntegrationTests; | ||
|
||
public class TestBase | ||
{ | ||
protected TestBase(ITestOutputHelper testOutputHelper) | ||
{ | ||
ArgumentNullException.ThrowIfNull(testOutputHelper); | ||
this.LoggerManager = new TestLoggerManager(testOutputHelper); | ||
} | ||
|
||
protected TestLoggerManager LoggerManager { get; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.