Files
monorepo/LCU.API.Collections.RepoApi-old/LCU.API.Collections.RepoApiTests/Extensions/ModelStateMessagesTest.cs
T
2026-04-20 14:47:24 -05:00

29 lines
721 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using LCU.API.Collections.RepoApi.Extensions;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using Xunit;
namespace LCU.API.Collections.RepoApiTests.Extensions
{
public class ModelStateMessagesTest
{
[Fact]
public void GetErrorMessages_NoCrash()
{
var results = ModelStateMessages.GetErrorMessages(null);
Assert.NotNull(results);
}
[Fact]
public void GetErrorMessages_Ok()
{
var dictionary = new ModelStateDictionary();
var results = ModelStateMessages.GetErrorMessages(dictionary);
Assert.NotNull(results);
}
}
}