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

test-868.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 987869d2aad05fa2ee1edb48dc9848239b90a6f1 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using System.Diagnostics;
using System.Reflection;

[assembly: AssemblyProduct ("Product")]
[assembly: AssemblyCompany ("Company")]
[assembly: AssemblyDescription ("Description")]
[assembly: AssemblyCopyright ("Copyright")]
[assembly: AssemblyTrademark ("Trademark")]
[assembly: AssemblyVersion ("5.4.3.1")]
[assembly: AssemblyFileVersion ("8.9")]
[assembly: AssemblyTitle ("Title")]

class C
{
	public static int Main ()
	{
		var loc = Assembly.GetExecutingAssembly ().Location;
		var fv = FileVersionInfo.GetVersionInfo (loc);

		if (fv.ProductName != "Product")
			return 1;

		if (fv.CompanyName != "Company")
			return 2;

		if (fv.Comments != "Description")
			return 3;

		if (fv.LegalCopyright != "Copyright")
			return 4;

		if (fv.LegalTrademarks != "Trademark")
			return 5;

		if (fv.ProductVersion != "8.9")
			return 6;

		if (fv.FileDescription != "Title")
			return 7;

		return 0;
	}
}