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)); }
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)); }
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)); }
public void FailContainsGraphId(int graphId) { var fpg = new FPG(this.GetAssetPath(SharedConstants.FILENAME_FPG_TEST)); Assert.IsFalse(fpg.Contains(graphId)); }