示例#1
0
        public void PassedSync()
        {
            var expectedNature = Nature.Docile;
            var generator      = SynchronizeNatureGenerator.GetInstance(expectedNature);

            var seed = TestCases.Mod2[0];

            Assert.AreEqual(expectedNature, generator.GenerateFixedNature(ref seed));
        }
示例#2
0
        public void UnpassedSync()
        {
            var expectedNature = Nature.Docile;
            var generator      = SynchronizeNatureGenerator.GetInstance(expectedNature);

            var seed = TestCases.Mod25[(int)expectedNature].PrevSeed();

            if ((TestCases.Mod25[(int)expectedNature] >> 16) % 2 == 0)
            {
                throw new AssertFailedException("シンクロ判定を通るseedが渡されました");
            }

            Assert.AreEqual(expectedNature, generator.GenerateFixedNature(ref seed));
        }
示例#3
0
        public void GetInstanceWithDefaultValue()
        {
            var generator = SynchronizeNatureGenerator.GetInstance(Nature.other);

            Assert.AreEqual(typeof(StandardNatureGenerator), generator.GetType());
        }