Exemple #1
0
        public void  正なDefaultMissionCharacterTreatmentはExcludeUniqueCharacterになる()
        {
            var dto = new ChaosModeSettingDTO();

            dto.DefaultMissionCharacterTreatment = -1;
            Assert.AreEqual(MissionCharacterTreatmentType.ExcludeUniqueCharacter
                            , (new ChaosModeSetting(dto).DefaultMissionCharacterTreatment));
        }
Exemple #2
0
        public void DefaultMissionCharacterTreatmentを正しく設定できる()
        {
            var dto = new ChaosModeSettingDTO();

            //0はAffectAllCharacter
            dto.DefaultMissionCharacterTreatment = 0;
            Assert.AreEqual(MissionCharacterTreatmentType.AffectAllCharacter
                            , (new ChaosModeSetting(dto).DefaultMissionCharacterTreatment));

            //1はExcludeUniqueCharacter
            dto.DefaultMissionCharacterTreatment = 1;
            Assert.AreEqual(MissionCharacterTreatmentType.ExcludeUniqueCharacter
                            , (new ChaosModeSetting(dto).DefaultMissionCharacterTreatment));

            //2はExcludeAllMissionCharacter
            dto.DefaultMissionCharacterTreatment = 2;
            Assert.AreEqual(MissionCharacterTreatmentType.ExcludeAllMissionCharacter
                            , (new ChaosModeSetting(dto).DefaultMissionCharacterTreatment));
        }
Exemple #3
0
 public TestSetting(ChaosModeSettingDTO dto) : base(dto)
 {
 }