mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
25 lines
534 B
C#
25 lines
534 B
C#
using System.Threading.Tasks;
|
|
using Xunit;
|
|
|
|
namespace Wabbajack.Test
|
|
{
|
|
public class SettingsTests
|
|
{
|
|
[Fact]
|
|
public async Task CanSaveAndLoadSettings()
|
|
{
|
|
MainSettings.TryLoadTypicalSettings(out var settings);
|
|
|
|
if (settings == null)
|
|
{
|
|
settings = new MainSettings();
|
|
}
|
|
|
|
MainSettings.SaveSettings(settings);
|
|
|
|
Assert.True(MainSettings.TryLoadTypicalSettings(out settings));
|
|
|
|
}
|
|
}
|
|
}
|