-
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.
- Loading branch information
Showing
2 changed files
with
52 additions
and
0 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 |
---|---|---|
|
@@ -12,6 +12,7 @@ namespace PROFiLiX.Common.Tests.Registry | |
using PROFiLiX.Common.Registry; | ||
using PROFiLiX.Common.Registry.Exceptions; | ||
using PROFiLiX.Common.Registry.Model; | ||
using System.IO; | ||
Check warning on line 15 in PROFiLiX.Common.Tests/Registry/RegistryTests.cs
|
||
|
||
/// <summary> | ||
/// Class to do Registry unit tests. | ||
|
@@ -654,6 +655,18 @@ public void InvalidKeyException_WithMessageAndInnerException_ShouldThrowExceptio | |
} | ||
} | ||
|
||
/// <summary> | ||
/// Test method to ensure InvalidValueException with message throws correctly. | ||
/// </summary> | ||
[Test] | ||
public void InvalidValueException_WithDefault_ShouldThrowException() | ||
{ | ||
var result = new InvalidValueException(); | ||
var message = result.Message; | ||
|
||
StringAssert.Contains("InvalidValueException", message); | ||
} | ||
|
||
/// <summary> | ||
/// Test method to ensure InvalidValueException with message throws correctly. | ||
/// </summary> | ||
|