Skip to content

Commit

Permalink
Update Test_IMaaController.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
moomiji committed Jan 3, 2024
1 parent 2b6b6ba commit 40818e9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/MaaFramework.Binding.UnitTests/Test_IMaaController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}

0 comments on commit 40818e9

Please sign in to comment.