diff options
author | Sven Boemer <sbomer@gmail.com> | 2019-02-20 01:16:58 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2019-02-20 01:16:58 +0300 |
commit | fa9ccbdaf6907c69ef1bb117906f8f012218d57f (patch) | |
tree | 4d4cbe2d4079a35edca350a4e444831c2f9dd19a /test/Mono.Linker.Tests.Cases/LinkXml/CanPreserveAnExportedType.cs | |
parent | e64148792193bf7d706428a64632ebf7f8023d3b (diff) |
Adopt new directory layout (#466)
This organizes the source and test projects as follows:
- source projects go in `src/project/projectfile.csproj`
- test projects go in `test/project/projectfile.csproj`
The uniform layout of projects is part of the arcade onboarding (see https://github.com/mono/linker/issues/452).
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/LinkXml/CanPreserveAnExportedType.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/LinkXml/CanPreserveAnExportedType.cs | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/LinkXml/CanPreserveAnExportedType.cs b/test/Mono.Linker.Tests.Cases/LinkXml/CanPreserveAnExportedType.cs new file mode 100644 index 000000000..bbf26c1d4 --- /dev/null +++ b/test/Mono.Linker.Tests.Cases/LinkXml/CanPreserveAnExportedType.cs @@ -0,0 +1,19 @@ +using System; +using Mono.Linker.Tests.Cases.Expectations.Assertions; +using Mono.Linker.Tests.Cases.Expectations.Metadata; +using Mono.Linker.Tests.Cases.LinkXml.Dependencies; + +namespace Mono.Linker.Tests.Cases.LinkXml +{ + [KeepTypeForwarderOnlyAssemblies ("false")] + [SetupCompileBefore ("Library.dll", new[] { "Dependencies/CanPreserveAnExportedType_Library.cs" })] + // Add another assembly in that uses the forwarder just to make things a little more complex + [SetupCompileBefore ("Forwarder.dll", new[] { "Dependencies/CanPreserveAnExportedType_Forwarder.cs" }, references: new[] { "Library.dll" })] + + [RemovedAssembly ("Forwarder.dll")] + [KeptMemberInAssembly ("Library.dll", typeof (CanPreserveAnExportedType_Library), "Field1", "Method()", ".ctor()")] + class CanPreserveAnExportedType { + public static void Main () { + } + } +} |