Merge pull request #4202 from marek-safar/compression
[mono-project.git] / mcs / tests / test-370.cs
blob8195e3bc58a5c506431bc0a256b7d1e968c67d83
1 using System;
3 namespace Test
5 public class Application
7 private static int ParseType(string inType)
9 switch (inType)
11 case "headless":
12 return 0;
14 case "headed":
15 default:
16 return 1;
18 case "wedge":
19 return 2;
21 case "hi":
22 return 3;
24 case "she":
25 return 4;
27 case "sha2":
28 return 5;
32 public static int Main()
34 int result1 = ParseType("foo");
35 Console.WriteLine (result1);
36 if (result1 != 1)
37 return 1;
39 int result2 = ParseType("headed");
40 Console.WriteLine (result2);
41 if (result1 != result2)
42 return 2;
44 return 0;