diff options
author | Marek Safar <marek.safar@gmail.com> | 2021-01-07 22:58:50 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-07 22:58:50 +0300 |
commit | 1b1b58a5da2a261d003f3f2647f7219b5344f20d (patch) | |
tree | 7fe206c6b5bc8d6d773de532f3ee8f46697d8b43 /Test/Mono.Cecil.Tests | |
parent | 6edabe0525a17bda3613c2f4e5b28db568cb2c21 (diff) |
Allow removing value of ModuleDefinition::EntryPoint (#711)
* Allow removing value of ModuleDefinition::EntryPoint
* PR feedback
Diffstat (limited to 'Test/Mono.Cecil.Tests')
-rw-r--r-- | Test/Mono.Cecil.Tests/ModuleTests.cs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Test/Mono.Cecil.Tests/ModuleTests.cs b/Test/Mono.Cecil.Tests/ModuleTests.cs index 8e73750..5e4bee7 100644 --- a/Test/Mono.Cecil.Tests/ModuleTests.cs +++ b/Test/Mono.Cecil.Tests/ModuleTests.cs @@ -41,6 +41,12 @@ namespace Mono.Cecil.Tests { Assert.IsNotNull (entry_point); Assert.AreEqual ("System.Void Program::Main()", entry_point.ToString ()); + + module.EntryPoint = null; + Assert.IsNull (module.EntryPoint); + + module.EntryPoint = entry_point; + Assert.IsNotNull (module.EntryPoint); }); } |