public void PassedSync() { var expectedNature = Nature.Docile; var generator = SynchronizeNatureGenerator.GetInstance(expectedNature); var seed = TestCases.Mod2[0]; Assert.AreEqual(expectedNature, generator.GenerateFixedNature(ref seed)); }
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)); }
public void GetInstanceWithDefaultValue() { var generator = SynchronizeNatureGenerator.GetInstance(Nature.other); Assert.AreEqual(typeof(StandardNatureGenerator), generator.GetType()); }