From 40818e9f79ce90aead0877c12155b0e1fc0d013d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9E=AB=E9=9B=A8?= <35213527+moomiji@users.noreply.github.com> Date: Wed, 3 Jan 2024 18:33:29 +0800 Subject: [PATCH] Update Test_IMaaController.cs --- .../Test_IMaaController.cs | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/MaaFramework.Binding.UnitTests/Test_IMaaController.cs b/src/MaaFramework.Binding.UnitTests/Test_IMaaController.cs index 4e12103..cb33536 100644 --- a/src/MaaFramework.Binding.UnitTests/Test_IMaaController.cs +++ b/src/MaaFramework.Binding.UnitTests/Test_IMaaController.cs @@ -318,4 +318,24 @@ public void Interface_SetOption_InvalidData(MaaTypes type, IMaaController maaCon } #endregion + + [TestMethod] + [DataRow(AdbControllerTypes.ScreencapEncode)] + [DataRow(AdbControllerTypes.ScreencapEncodeToFile)] + [DataRow(AdbControllerTypes.ScreencapRawWithGzip)] + [DataRow(AdbControllerTypes.ScreencapMinicapDirect)] + [DataRow(AdbControllerTypes.ScreencapMinicapStream)] + [DataRow(AdbControllerTypes.ScreencapRawByNetcat)] + public void GithubActionsTest(AdbControllerTypes screencap) + { + using var maa = new MaaAdbController( + Common.AdbPath, + Common.Address, + AdbControllerTypes.InputPresetAdb | AdbControllerTypes.ScreencapEncode, + "{}", + Common.AgentPath); + + Assert.AreEqual( + MaaJobStatus.Success, maa.Click(1, 1).Wait()); + } }