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

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

            ILootEntry entry = new NullLootEntry();

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

            ILootEntry entry = new NullLootEntry(PROB);

            Assert.AreEqual(PROB, entry.Probability);
        }
Exemplo 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);
        }
Exemplo 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);
        }
Exemplo 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);
        }
Exemplo 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);
        }