for Push.
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace KssSmaPlaLib.AutoTest.Command.Definition
|
||||
{
|
||||
public class CommandEnumUxer
|
||||
{
|
||||
/// <summary>
|
||||
/// UIステップテストコマンド
|
||||
/// </summary>
|
||||
public enum Command
|
||||
{
|
||||
None,
|
||||
Sleep,
|
||||
SetText,
|
||||
PushButton,
|
||||
TryDbMoshimoshi
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace KssSmaPlaLib.AutoTest.Command.Definition
|
||||
{
|
||||
public static class CommandParserUxer
|
||||
{
|
||||
private static readonly Dictionary<string, CommandEnumUxer.Command> _map = new Dictionary<string, CommandEnumUxer.Command>()
|
||||
{
|
||||
{ "Sleep", CommandEnumUxer.Command.Sleep },
|
||||
{ "SetText", CommandEnumUxer.Command.SetText },
|
||||
{ "PushButton", CommandEnumUxer.Command.PushButton },
|
||||
{ "TryDbMoshimoshi", CommandEnumUxer.Command.TryDbMoshimoshi }
|
||||
};
|
||||
|
||||
public static bool TryParse(string commandStr, out CommandEnumUxer.Command command)
|
||||
=> _map.TryGetValue(commandStr, out command);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user