blob: b6bfba94abcd45a548c3a95dd232bbd43a0ae0e6 (
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
|
using Mono.Linker.Tests.Cases.Expectations.Assertions;
using Mono.Linker.Tests.Cases.Expectations.Metadata;
using Mono.Linker.Tests.Cases.TestFramework.Dependencies;
namespace Mono.Linker.Tests.Cases.TestFramework
{
[SetupCompileBefore ("library.dll",
new[] { "Dependencies/CanCompileReferencesWithResources_Lib1.cs" },
resources: new[] { "Dependencies/CanCompileReferencesWithResources_Lib1.txt" })]
// Compile the same assembly again with another resource to get coverage on SetupCompileAfter
[SetupCompileAfter ("library.dll",
new[] { "Dependencies/CanCompileReferencesWithResources_Lib1.cs" },
resources: new[] { "Dependencies/CanCompileReferencesWithResources_Lib1.txt", "Dependencies/CanCompileReferencesWithResources_Lib1.log" })]
[KeptResourceInAssembly ("library.dll", "CanCompileReferencesWithResources_Lib1.txt")]
[KeptResourceInAssembly ("library.dll", "CanCompileReferencesWithResources_Lib1.log")]
public class CanCompileReferencesWithResources
{
public static void Main ()
{
// Use something so that reference isn't removed at compile time
CanCompileReferencesWithResources_Lib1.Used ();
}
}
}
|