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

test-464.cs « tests « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1ddeddf50a64d4745594149756774c813ff56d50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Compiler options: -res:test-464.cs,TEST,private

using System.Reflection;
using System;

class C {		
	public static int Main () 
	{
		string [] s = typeof (C).Assembly.GetManifestResourceNames ();
		if (s [0] != "TEST")
			return 1;
		
		if (typeof (C).Assembly.GetManifestResourceStream ("TEST") == null)
			return 2;

		Console.WriteLine ("OK");
		return 0;
	}
}