Jo Shields a575963da9 Imported Upstream version 3.6.0
Former-commit-id: da6be194a6b1221998fc28233f2503bd61dd9d14
2014-08-13 10:39:27 +01:00

48 lines
630 B
C#

using System;
namespace Test
{
public class Application
{
private static int ParseType(string inType)
{
switch (inType)
{
case "headless":
return 0;
case "headed":
default:
return 1;
case "wedge":
return 2;
case "hi":
return 3;
case "she":
return 4;
case "sha2":
return 5;
}
}
public static int Main()
{
int result1 = ParseType("foo");
Console.WriteLine (result1);
if (result1 != 1)
return 1;
int result2 = ParseType("headed");
Console.WriteLine (result2);
if (result1 != result2)
return 2;
return 0;
}
}
}