mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
25 lines
585 B
C#
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);
|
|
|
|
}
|
|
}
|
|
}
|