Sprint 5 #28

Merged
csimonapastore merged 28 commits from sprints/5 into main 2025-05-28 00:10:39 +02:00
Showing only changes of commit 58b7e75e77 - Show all commits

View File

@@ -5,12 +5,10 @@ using BasicDotnetTemplate.MainProject.Models.Common;
namespace BasicDotnetTemplate.MainProject.Tests; namespace BasicDotnetTemplate.MainProject.Tests;
[TestClass] [TestClass]
public static class FileUtils_Tests public class FileUtils_Tests
{ {
[TestMethod] [TestMethod]
public static void ConvertFileToObject_NoFilePath() public void ConvertFileToObject_NoFilePath()
{
try
{ {
try try
{ {
@@ -26,17 +24,9 @@ public static class FileUtils_Tests
Assert.Fail($"An exception was thrown: {exception}"); Assert.Fail($"An exception was thrown: {exception}");
} }
} }
catch (Exception ex)
{
Console.WriteLine(ex.InnerException);
Assert.Fail($"An exception was thrown: {ex}");
}
}
[TestMethod] [TestMethod]
public static void ConvertFileToObject_NoFile() public void ConvertFileToObject_NoFile()
{
try
{ {
try try
{ {
@@ -52,12 +42,7 @@ public static class FileUtils_Tests
Assert.Fail($"An exception was thrown: {exception}"); Assert.Fail($"An exception was thrown: {exception}");
} }
} }
catch (Exception ex)
{
Console.WriteLine(ex.InnerException);
Assert.Fail($"An exception was thrown: {ex}");
}
}
} }