-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for OAVariantLib (#101841)
* Add native return test for basic supported types --------- Co-authored-by: Aaron Robinson <arobins@microsoft.com>
- Loading branch information
1 parent
5962fd5
commit a225c6f
Showing
12 changed files
with
550 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using System; | ||
using System.Globalization; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Runtime.InteropServices; | ||
using Server.Contract; | ||
|
||
[ComVisible(true)] | ||
[Guid(Server.Contract.Guids.DispatchCoerceTesting)] | ||
public class DispatchCoerceTesting : Server.Contract.IDispatchCoerceTesting | ||
{ | ||
public int ReturnToManaged(short vt) | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public int ManagedArgument(int arg) | ||
{ | ||
return arg; | ||
} | ||
|
||
public System.Reflection.Missing ReturnToManaged_Missing() | ||
{ | ||
return System.Reflection.Missing.Value; | ||
} | ||
|
||
public DBNull ReturnToManaged_DBNull() | ||
{ | ||
return DBNull.Value; | ||
} | ||
|
||
public string BoolToString() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.