You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
777 B
29 lines
777 B
using adminBlazor.Models;
|
|
|
|
namespace TestUnit
|
|
{
|
|
public class Translation_UT
|
|
{
|
|
public static IEnumerable<object[]> SimpleAttributes()
|
|
{
|
|
yield return new object[]
|
|
{
|
|
10,
|
|
"firstword",
|
|
"secondword"
|
|
};
|
|
}
|
|
|
|
[Theory]
|
|
[MemberData(nameof(SimpleAttributes))]
|
|
public void SimpleAttribut_Validation(int id, string firstWord, string secondWord)
|
|
{
|
|
var translation = new Translation { Id = id, FirstWord = firstWord, SecondWord = secondWord };
|
|
|
|
Assert.Equal(id, translation.Id);
|
|
Assert.Equal(firstWord, translation.FirstWord);
|
|
Assert.Equal(secondWord, translation.SecondWord);
|
|
}
|
|
}
|
|
}
|