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