Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-594.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2d0ff9ef9c7696194d4b38375800512fd6235120 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using System;
using System.Reflection;

[assembly: AssemblyVersion ("2.3.*")]

public class Test
{
	public static int Main ()
	{
		var v = typeof (Test).Assembly.GetName ().Version;
		if (v.Major != 2)
			return 1;
		
		if (v.Minor != 3)
			return 2;

		if (v.Build < 1)
			return 3;
		
		if (v.Revision < 1)
			return 4;

		return 0;
	}
}