Esempio n. 1
0
        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());
        }
Esempio n. 2
0
        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());
        }
Esempio n. 3
0
        public void InvalidOptionSet()
        {
            var settings = new AccountSettings();

            Assert.Throws <ArgumentException>(() => { settings.Set((Option)123456, 1); });
        }