You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
548 B

namespace FiniteStateMachine
{
internal class Program
{
static void Main(string[] args)
{
Process p = new Process();
Console.WriteLine($"Current State: {p.CurrentState}");
Console.WriteLine($"Command.Begin: {p.MoveNext(Command.Begin)}");
Console.WriteLine($"Command.Pause: {p.MoveNext(Command.Paused)}");
Console.WriteLine($"Command.End: {p.MoveNext(Command.End)}");
Console.WriteLine($"Command.Exit: {p.MoveNext(Command.Exit)}");
}
}
}