wabbajack/Wabbajack.App.Test/SettingsTests.cs
2020-05-25 11:34:25 -06:00

25 lines
585 B
C#

using System.Threading.Tasks;
using Xunit;
namespace Wabbajack.Test
{
public class SettingsTests
{
[Fact]
public async Task CanSaveAndLoadSettings()
{
var (settings, loadedSettings) = await MainSettings.TryLoadTypicalSettings();
if (settings == null || !loadedSettings)
{
settings = new MainSettings();
}
await MainSettings.SaveSettings(settings);
Assert.True((await MainSettings.TryLoadTypicalSettings()).loaded);
}
}
}