public void Setting() { var settings = new AccountSettings(); settings.Set(Option.ApplyBloom, 1); settings.Set(Option.JoypadVibration, 1); settings.Set(Option.UiMode, 2); Assert.Equal("23 1 46 1 43 2", settings.ToString()); }
public void Setting() { var settings = new AccountSettings(); settings.Set(Option.EnableBloom, 1); settings.Set(Option.JoyPadVibration, 1); settings.Set(Option.ControlMode, 2); Assert.Equal("23 1 46 1 43 2", settings.ToString()); }
public void InvalidOptionSet() { var settings = new AccountSettings(); Assert.Throws <ArgumentException>(() => { settings.Set((Option)123456, 1); }); }