Exemple #1
0
        public void GenerateNature()
        {
            var seed           = 0x0u;
            var expectedNature = Nature.Relaxed;
            var generator      = FixedNatureGenerator.GetInstance(expectedNature);

            Assert.AreEqual(expectedNature, generator.GenerateFixedNature(ref seed));
        }
Exemple #2
0
        public void GetInstanceWithInvalidNature()
        {
            var generator = FixedNatureGenerator.GetInstance(Nature.other);

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