Exemple #1
0
        public void RemoveMapByInstance()
        {
            var pal = new PAL(this.GetAssetPath(SharedConstants.FILENAME_PAL_SPACE));
            var map = new MAP(this.GetAssetPath(SharedConstants.FILENAME_IMG_PLAYER_MAP));
            var fpg = new FPG(pal);

            fpg.Add(map);
            Assert.IsTrue(fpg.Contains(map));

            fpg.Remove(map);
            Assert.IsFalse(fpg.Contains(map));
        }
Exemple #2
0
        public void FailContainsMap()
        {
            var pal = new PAL(this.GetAssetPath(SharedConstants.FILENAME_PAL_DIV));
            var map = new MAP(this.GetAssetPath(SharedConstants.FILENAME_IMG_PLAYER_MAP));
            var fpg = new FPG(pal);

            fpg.Add(map); // Force palette conversion.

            Assert.IsFalse(fpg.Contains(map));
        }
Exemple #3
0
        public void RemoveMapByGraphId()
        {
            const int GRAPH_ID = 100; // PLAYER.MAP, index 1.

            var fpg = new FPG(this.GetAssetPath(SharedConstants.FILENAME_FPG_TEST));

            fpg.Remove(GRAPH_ID);

            Assert.IsFalse(fpg.Contains(GRAPH_ID));
        }
Exemple #4
0
        public void FailContainsGraphId(int graphId)
        {
            var fpg = new FPG(this.GetAssetPath(SharedConstants.FILENAME_FPG_TEST));

            Assert.IsFalse(fpg.Contains(graphId));
        }