-
Notifications
You must be signed in to change notification settings - Fork 94
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 #889 from microsoft/dev/andarno/metadataUpdate
Update metadata
- Loading branch information
Showing
10 changed files
with
250 additions
and
39 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for full license information. | ||
|
||
public class ConstantsTests : GeneratorTestBase | ||
{ | ||
public ConstantsTests(ITestOutputHelper logger) | ||
: base(logger) | ||
{ | ||
} | ||
|
||
[Theory] | ||
[InlineData("SECURITY_NULL_SID_AUTHORITY")] // SID_IDENTIFIER_AUTHORITY with byte[6] inline array | ||
[InlineData("g_wszStreamBufferRecordingDuration")] // string | ||
[InlineData("HWND_BOTTOM")] // A constant typed as a typedef'd struct | ||
[InlineData("D2D1_DEFAULT_FLATTENING_TOLERANCE")] // a float constant | ||
[InlineData("WIA_CATEGORY_FINISHED_FILE")] // GUID constant | ||
[InlineData("DEVPKEY_MTPBTH_IsConnected")] // DEVPROPKEY constant | ||
[InlineData("PKEY_AudioEndpoint_FormFactor")] // PROPERTYKEY constant | ||
[InlineData("X509_CERT")] // A constant defined as PCSTR | ||
[InlineData("RT_CURSOR")] // PCWSTR constant | ||
[InlineData("HBMMENU_POPUP_RESTORE")] // A HBITMAP handle as a constant | ||
|
||
public void InterestingConstants(string name) | ||
{ | ||
this.compilation = this.compilation.WithOptions(this.compilation.Options.WithPlatform(Platform.X64)); | ||
this.generator = this.CreateGenerator(); | ||
Assert.True(this.generator.TryGenerate(name, CancellationToken.None)); | ||
this.CollectGeneratedCode(this.generator); | ||
this.AssertNoDiagnostics(); | ||
} | ||
} |
Oops, something went wrong.