Newsbot.Cli/Newsbot.Tests/Services/ConfigClientTests.cs

18 lines
380 B
C#
Raw Permalink Normal View History

using jtom38.Newsbot.Domain.Models;
using jtom38.Newsbot.Services;
namespace Newsbot.Tests.Services;
public class ConfigClientTests
{
[Fact]
public async Task CanLoadConfig()
{
var cfg = await ConfigClient.LoadAsync();
cfg = cfg ??= new ConfigModel();
if (cfg.Uri == "")
{
Assert.Fail("Uri was missing");
}
}
}