Exemplo n.º 1
0
        public void Create_Returns_Effect_Instance(int graphicEffectType, Type type)
        {
            ClassicUO.Game.Managers.EffectManager em = new ClassicUO.Game.Managers.EffectManager();

            em.CreateEffect((ClassicUO.Game.Data.GraphicEffectType)graphicEffectType, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, false, false, false, ClassicUO.Game.Data.GraphicEffectBlendMode.Normal);

            Assert.IsType(type, em.Items);

            em.Clear();
        }
        public void Create_EffectManager_Add_Single_Effect_Then_Clear_Contents()
        {
            ClassicUO.Game.Managers.EffectManager em = new ClassicUO.Game.Managers.EffectManager();

            em.CreateEffect(ClassicUO.Game.Data.GraphicEffectType.FixedFrom, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, false, false, false, ClassicUO.Game.Data.GraphicEffectBlendMode.Normal);

            Assert.NotNull(em.Items);

            em.Clear();

            Assert.Null(em.Next);
            Assert.Null(em.Previous);
            Assert.Null(em.Items);
        }