Exemple #1
0
        public void GetSymbolAddressTest()
        {
            using var dll = new DynamicLinkLibrary(LibraryName);
            var pointer = dll.GetSymbolAddress(EntryPointName);

            Assert.NotEqual(IntPtr.Zero, pointer);
        }
Exemple #2
0
 public void GetWrongSymbolAddressTest2()
 {
     using var dll = new DynamicLinkLibrary(LibraryName);
     Assert.Throws <ArgumentException>(() =>
     {
         var pointer = dll.GetSymbolAddress("the quick brown fox jumps of the lazy dog");
     });
 }