mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 10:11:10 +00:00
Implements tests for commit 8a5cb9116e
This commit is contained in:
1 parent
73ed952ded
commit
94a67aded4
32 files changed
+1751
-2
No files matched your search
@@ -42,7 +42,7 @@ public class ErrorsTests
|
||||
{
|
||||
// Assert
|
||||
// The count assertion fails when an error is added or removed, reminding to update the assertions below.
|
||||
Assert.Equal(18, typeof(DomainErrors.Library).GetProperties().Length);
|
||||
Assert.Equal(20, typeof(DomainErrors.Library).GetProperties().Length);
|
||||
AssertError(DomainErrors.Library.CannotScanLockedLibrary, ErrorType.Forbidden);
|
||||
AssertError(DomainErrors.Library.CannotScanDisabledLibrary, ErrorType.Forbidden);
|
||||
AssertError(DomainErrors.Library.LibraryIdCannotBeEmpty, ErrorType.Validation);
|
||||
@@ -61,6 +61,8 @@ public class ErrorsTests
|
||||
AssertError(DomainErrors.Library.PathTemplateValuePartMustContainSinglePlaceholder, ErrorType.Validation);
|
||||
AssertError(DomainErrors.Library.PathTemplatePartKindNotSupportedForLibraryType, ErrorType.Validation);
|
||||
AssertError(DomainErrors.Library.PathTemplateIsNotSupportedForLibraryType, ErrorType.Validation);
|
||||
AssertError(DomainErrors.Library.CompletionThresholdPercentageMustBeNullWhenProgressTrackingIsOff, ErrorType.Validation);
|
||||
AssertError(DomainErrors.Library.CompletionThresholdPercentageMustBeBetweenZeroAndOneHundred, ErrorType.Validation);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
Reference in new issue
Block a user