コード例 #1
0
        public void AAMLLoadTileTest()
        {
            ArtemisEngine.Setup("game.constants", Setup);
            ArtemisEngine.Begin(Initialize);

            AAMLFileReader fileReader = new AAMLFileReader("../../Animation/LoadTileAAMLTestFile.aaml");
            try
            {
                fileReader.Read();
            }
            catch (Exception e)
            {
                Assert.Fail(e.Message + "\nAt:\n" + e.StackTrace);
            }
        }
コード例 #2
0
ファイル: AAMLTest.cs プロジェクト: shahiro770/Artemis-Engine
        public void AAMLLoadDirectoryFullTest()
        {
            ArtemisEngine.Setup("game.constants", Setup);
            ArtemisEngine.Begin(Initialize);

            AAMLFileReader fileReader = new AAMLFileReader("../../Animation/LoadDirectoryFullAAMLTestFile.aaml");

            try
            {
                fileReader.Read();
            }
            catch (Exception e)
            {
                Assert.Fail(e.Message + "\nAt:\n" + e.StackTrace);
            }
        }
コード例 #3
0
        public void AAMLLoadDirectoryTest()
        {
            ArtemisEngine.Setup("game.constants", Setup);
            ArtemisEngine.Begin(Initialize);

            AAMLFileReader fileReader = new AAMLFileReader("../../Animation/LoadDirectoryAAMLTestFile.aaml");
            try
            {
                fileReader.Read();
                Assert.AreEqual(20, fileReader.Map.SpriteSheet.LoadedTextures.Count);
            }
            catch(Exception e)
            {
                Assert.Fail(e.Message + "\nAt:\n" + e.StackTrace);
            }
        }
コード例 #4
0
ファイル: AAMLTest.cs プロジェクト: shahiro770/Artemis-Engine
        public void AAMLLoadDirectoryTest()
        {
            ArtemisEngine.Setup("game.constants", Setup);
            ArtemisEngine.Begin(Initialize);

            AAMLFileReader fileReader = new AAMLFileReader("../../Animation/LoadDirectoryAAMLTestFile.aaml");

            try
            {
                fileReader.Read();
                Assert.AreEqual(20, fileReader.Map.SpriteSheet.LoadedTextures.Count);
            }
            catch (Exception e)
            {
                Assert.Fail(e.Message + "\nAt:\n" + e.StackTrace);
            }
        }