Esempio n. 1
0
        public void can_create()
        {
            ILootEntry entry = new NullLootEntry();

            Assert.IsNotNull(entry);
            Assert.IsInstanceOf <NullLootEntry>(entry);
        }
Esempio n. 2
0
        public void prob_default_is_one()
        {
            const double PROB = 1;

            ILootEntry entry = new NullLootEntry();

            Assert.AreEqual(PROB, entry.Probability);
        }
Esempio n. 3
0
        public void prob_is_set()
        {
            const double PROB = 1.2345;

            ILootEntry entry = new NullLootEntry(PROB);

            Assert.AreEqual(PROB, entry.Probability);
        }
Esempio n. 4
0
        public void unique_default_is_false()
        {
            const double PROB   = 1.2345;
            const bool   UNIQUE = false;

            ILootEntry entry = new NullLootEntry(PROB);

            Assert.AreEqual(UNIQUE, entry.Unique);
        }
Esempio n. 5
0
        public void unique_is_set()
        {
            const double PROB   = 1.2345;
            const bool   UNIQUE = true;

            ILootEntry entry = new NullLootEntry(PROB, UNIQUE);

            Assert.AreEqual(UNIQUE, entry.Unique);
        }
Esempio n. 6
0
        public void guaranteed_default_is_false()
        {
            const double PROB       = 1.2345;
            const bool   UNIQUE     = true;
            const bool   GUARANTEED = false;

            ILootEntry entry = new NullLootEntry(PROB, UNIQUE);

            Assert.AreEqual(GUARANTEED, entry.Guaranteed);
        }
Esempio n. 7
0
        public void guaranteed_is_set()
        {
            const double PROB       = 1.2345;
            const bool   UNIQUE     = true;
            const bool   GUARANTEED = true;

            ILootEntry entry = new NullLootEntry(PROB, UNIQUE, GUARANTEED);

            Assert.AreEqual(GUARANTEED, entry.Guaranteed);
        }