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); } } }