Backend/e-suite.API.Common/e-suite.API.Common.UnitTests/ExceptionUnitTests.cs
2026-01-20 21:50:10 +00:00

22 lines
712 B
C#

using e_suite.API.Common.exceptions;
using e_suite.API.Common.UnitTests.helper;
using NUnit.Framework;
namespace e_suite.API.Common.UnitTests;
[TestFixture]
public class ExceptionUnitTests
{
[TestCase(typeof(ExistsException))]
[TestCase(typeof(InvalidEmailException))]
[TestCase(typeof(InvalidReferenceObjectId))]
[TestCase(typeof(MaximumRangeException))]
[TestCase(typeof(MinimumRangeException))]
[TestCase(typeof(NotFoundException))]
[TestCase(typeof(TokenInvalidException))]
[TestCase(typeof(WeakPasswordException))]
public void ExistsException_PerformExcpetionTests(Type testcase)
{
ExceptionTester.PerformTestSuite(testcase);
}
}