-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #420 from TechPizzaDev/truncated-obsolete-fix
Fix truncated message in generated Obsolete attributes
- Loading branch information
Showing
15 changed files
with
6,392 additions
and
8 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
64 changes: 64 additions & 0 deletions
64
tests/ClangSharp.PInvokeGenerator.UnitTests/Base/DeprecatedToObsoleteTest.cs
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,64 @@ | ||
// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. Licensed under the MIT License (MIT). See License.md in the repository root for more information. | ||
|
||
using System.Threading.Tasks; | ||
using NUnit.Framework; | ||
|
||
namespace ClangSharp.UnitTests; | ||
|
||
public abstract class DeprecatedToObsoleteTest : PInvokeGeneratorTest | ||
{ | ||
[TestCase("int", "int")] | ||
public Task SimpleStructMembers(string nativeType, string expectedManagedType) => SimpleStructMembersImpl(nativeType, expectedManagedType); | ||
|
||
[Test] | ||
public Task StructDecl() => StructDeclImpl(); | ||
|
||
[TestCase("int", "int")] | ||
public Task SimpleTypedefStructMembers(string nativeType, string expectedManagedType) => SimpleTypedefStructMembersImpl(nativeType, expectedManagedType); | ||
|
||
[Test] | ||
public Task TypedefStructDecl() => TypedefStructDeclImpl(); | ||
|
||
[Test] | ||
public Task SimpleEnumMembers() => SimpleEnumMembersImpl(); | ||
|
||
[Test] | ||
public Task EnumDecl() => EnumDeclImpl(); | ||
|
||
[TestCase("int", "int")] | ||
public Task SimpleVarDecl(string nativeType, string expectedManagedType) => SimpleVarDeclImpl(nativeType, expectedManagedType); | ||
|
||
[Test] | ||
public Task FuncDecl() => FuncDeclImpl(); | ||
|
||
[Test] | ||
public Task InstanceFunc() => InstanceFuncImpl(); | ||
|
||
[Test] | ||
public Task FuncPtrDecl() => FuncPtrDeclImpl(); | ||
|
||
[Test] | ||
public Task FuncDeclDllImport() => FuncDllImportImpl(); | ||
|
||
protected abstract Task SimpleStructMembersImpl(string nativeType, string expectedManagedType); | ||
|
||
protected abstract Task StructDeclImpl(); | ||
|
||
protected abstract Task SimpleTypedefStructMembersImpl(string nativeType, string expectedManagedType); | ||
|
||
protected abstract Task TypedefStructDeclImpl(); | ||
|
||
protected abstract Task SimpleEnumMembersImpl(); | ||
|
||
protected abstract Task EnumDeclImpl(); | ||
|
||
protected abstract Task SimpleVarDeclImpl(string nativeType, string expectedManagedType); | ||
|
||
protected abstract Task FuncDeclImpl(); | ||
|
||
protected abstract Task InstanceFuncImpl(); | ||
|
||
protected abstract Task FuncPtrDeclImpl(); | ||
|
||
protected abstract Task FuncDllImportImpl(); | ||
} |
Oops, something went wrong.