-
Notifications
You must be signed in to change notification settings - Fork 4
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
13 changed files
with
694 additions
and
45 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,4 +41,8 @@ | |
</None> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Folder Include="TestResults\" /> | ||
</ItemGroup> | ||
|
||
</Project> |
72 changes: 72 additions & 0 deletions
72
...lessOperations/test/Datahub.Functions.UnitTests/Exceptions/ProjectUsageExceptionsTests.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,72 @@ | ||
using Datahub.Functions.Domain.Exceptions; | ||
using FluentAssertions; | ||
|
||
namespace Datahub.Functions.UnitTests | ||
{ | ||
[TestFixture] | ||
public class ProjectUsageExceptionsTests | ||
{ | ||
[TestCase("Blob download error")] | ||
public void BlobDownloadException_ShouldSetMessage(string message) | ||
{ | ||
var exception = new BlobDownloadException(message); | ||
message.Should().Be(exception.Message); | ||
} | ||
|
||
[TestCase("Blob upload error")] | ||
public void BlobUploadException_ShouldSetMessage(string message) | ||
{ | ||
var exception = new BlobUploadException(message); | ||
message.Should().Be(exception.Message); | ||
} | ||
|
||
[TestCase("Cost update error")] | ||
public void CostUpdateException_ShouldSetMessage(string message) | ||
{ | ||
var exception = new CostUpdateException(message); | ||
message.Should().Be(exception.Message); | ||
} | ||
|
||
[TestCase("Cost refresh error")] | ||
public void CostRefreshException_ShouldSetMessage(string message) | ||
{ | ||
var exception = new CostRefreshException(message); | ||
message.Should().Be(exception.Message); | ||
} | ||
|
||
[TestCase("Budget update error")] | ||
public void BudgetUpdateException_ShouldSetMessage(string message) | ||
{ | ||
var exception = new BudgetUpdateException(message); | ||
message.Should().Be(exception.Message); | ||
} | ||
|
||
[TestCase("Rollover error")] | ||
public void RolloverException_ShouldSetMessage(string message) | ||
{ | ||
var exception = new RolloverException(message); | ||
message.Should().Be(exception.Message); | ||
} | ||
|
||
[TestCase("Cost query error")] | ||
public void CostQueryException_ShouldSetMessage(string message) | ||
{ | ||
var exception = new CostQueryException(message); | ||
message.Should().Be(exception.Message); | ||
} | ||
|
||
[TestCase("Project filtering error")] | ||
public void ProjectFilteringException_ShouldSetMessage(string message) | ||
{ | ||
var exception = new ProjectFilteringException(message); | ||
message.Should().Be(exception.Message); | ||
} | ||
|
||
[TestCase("Message scheduling error")] | ||
public void MessageSchedulingException_ShouldSetMessage(string message) | ||
{ | ||
var exception = new MessageSchedulingException(message); | ||
message.Should().Be(exception.Message); | ||
} | ||
} | ||
} |
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.