예제 #1
0
        public void NewRuleset()
        {
            Ruleset ruleset = new Ruleset ();

            Assert.AreEqual (0, ruleset.passes.Count);

            Assert.DoesNotThrow (delegate { ruleset.generate(); });
        }
예제 #2
0
        public void NewRulesetWithGenerator()
        {
            Ruleset ruleset = new Ruleset (new RandomHeightmap(12, 12, 0.0f, 1.0f));

            Assert.AreEqual (0, ruleset.passes.Count);
            Assert.IsInstanceOf (typeof(RandomHeightmap), ruleset.generator);

            Assert.DoesNotThrow (delegate { ruleset.generate(); });
        }