diff options
Diffstat (limited to 'test/Mono.Linker.Tests.Cases/TestFramework/VerifyDefineAttributeBehavior.cs')
-rw-r--r-- | test/Mono.Linker.Tests.Cases/TestFramework/VerifyDefineAttributeBehavior.cs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/test/Mono.Linker.Tests.Cases/TestFramework/VerifyDefineAttributeBehavior.cs b/test/Mono.Linker.Tests.Cases/TestFramework/VerifyDefineAttributeBehavior.cs new file mode 100644 index 000000000..abe143042 --- /dev/null +++ b/test/Mono.Linker.Tests.Cases/TestFramework/VerifyDefineAttributeBehavior.cs @@ -0,0 +1,26 @@ +using System; +using Mono.Linker.Tests.Cases.Expectations.Assertions; +using Mono.Linker.Tests.Cases.Expectations.Metadata; + +namespace Mono.Linker.Tests.Cases.TestFramework { + + /// <summary> + /// The purpose of this test is to verify that the testing framework's define attribute is working correctly + /// </summary> + [Define("SOME_DEFINE")] + public class VerifyDefineAttributeBehavior { + static void Main () + { +#if SOME_DEFINE + MethodThatIsUsedIfDefineIsWorkingProperly (); +#endif + } + + + [Kept] + static void MethodThatIsUsedIfDefineIsWorkingProperly () + { + Console.WriteLine ("Foo"); + } + } +} |