29 lines
767 B
C#
29 lines
767 B
C#
using BS.Shared;
|
|
using BS.Shared.Core;
|
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|
using System;
|
|
|
|
namespace TranslationUnitTest
|
|
{
|
|
[TestClass]
|
|
public class EnumTranslation
|
|
{
|
|
[TestInitialize]
|
|
public void Init()
|
|
{
|
|
|
|
}
|
|
|
|
[TestMethod]
|
|
public void UserRightType2TranslationsComplete()
|
|
{
|
|
var dict = EnumTranslations.UserRightType2Translations;
|
|
foreach (UserRightType item in Enum.GetValues(typeof(UserRightType)))
|
|
{
|
|
if (item != UserRightType.None && !dict.ContainsKey(item))
|
|
Assert.Fail($"UserRight \"{item}\" hat keine Übersetzung in {nameof(EnumTranslations.UserRightType2Translations)}");
|
|
}
|
|
}
|
|
}
|
|
}
|