Files
tgstation-server/tests/Tgstation.Server.Api.Tests/Models/TestErrorCodeExtensions.cs
Jordan Brown b9586c7fee The great stylecop update
Beware those that read into this commit. Here there be style conformance...

Closes #1252
2021-05-09 19:27:09 -04:00

24 lines
548 B
C#

using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using System.Linq;
namespace Tgstation.Server.Api.Models.Tests
{
/// <summary>
/// Tests for the <see cref="ErrorMessageResponse"/> class.
/// </summary>
[TestClass]
public sealed class TestErrorCodeExtensions
{
[TestMethod]
public void TestAllErrorCodesHaveDescriptions()
{
foreach (var I in Enum.GetValues(typeof(ErrorCode)).Cast<ErrorCode>())
{
var message = I.Describe();
Assert.IsNotNull(message, $"Error code {I} has no message!");
}
}
}
}