[Microsoft.CSharp] Replaced with CoreFX implementation
[mono.git] / mcs / tests / test-370.cs
1 using System;
2
3 namespace Test
4 {
5         public class Application
6         {
7                 private static int ParseType(string inType)
8                 {
9                         switch (inType)
10                         {
11                                 case "headless":
12                                         return 0;
13
14                                 case "headed":
15                                 default:
16                                         return 1;
17
18                                 case "wedge":
19                                         return 2;
20
21                                 case "hi":
22                                         return 3;
23
24                                 case "she":
25                                         return 4;
26
27                                 case "sha2":
28                                         return 5;
29                         }
30                 }
31
32                 public static int Main()
33                 {
34                         int result1 = ParseType("foo");
35                         Console.WriteLine (result1);
36                         if (result1 != 1)
37                                 return 1;
38
39                         int result2 = ParseType("headed");
40                         Console.WriteLine (result2);
41                         if (result1 != result2)
42                                 return 2;
43                         
44                         return 0;
45                 }
46         }
47 }