diff options
author | Jeff Chen <59190910+JeffInChrist@users.noreply.github.com> | 2021-05-07 00:18:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-07 00:18:03 +0300 |
commit | 3bea0de737ee82cbc9ca92fe3bf524a577e5e378 (patch) | |
tree | e1c8bbf9782e06840fa058cf0164809edd2474cd /mdoc/mdoc.Test/CppCxFormatterMembersTests.cs | |
parent | 1ad91bf6f5fac22f76bde705c319516d4b7d3feb (diff) |
Updating the Windows metadata files with the latest version and fixed a minor issue in the cpp formatter (#551)
Co-authored-by: @anmeng10101 <33647870+anmeng10101@users.noreply.github.com>
Diffstat (limited to 'mdoc/mdoc.Test/CppCxFormatterMembersTests.cs')
-rw-r--r-- | mdoc/mdoc.Test/CppCxFormatterMembersTests.cs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/mdoc/mdoc.Test/CppCxFormatterMembersTests.cs b/mdoc/mdoc.Test/CppCxFormatterMembersTests.cs index d9fe24cd..c41cb572 100644 --- a/mdoc/mdoc.Test/CppCxFormatterMembersTests.cs +++ b/mdoc/mdoc.Test/CppCxFormatterMembersTests.cs @@ -12,6 +12,7 @@ namespace mdoc.Test { protected override CppCxFullMemberFormatter formatter { get; } = new CppCxFullMemberFormatter(); + private string _cppWinRtTestLibName = "../../../../external/Windows/Windows.Foundation.UniversalApiContract.winmd"; private const string CppCxTestLibName = "../../../../external/Test/UwpTestWinRtComponentCpp.winmd"; private const string CSharpTestLib = "../../../../external/Test/CSharpExample.dll"; @@ -94,6 +95,13 @@ namespace mdoc.Test [Test] [Category("Field")] + public void Field_WinRtNumericsPlaneNormal() + { + TestFieldSignature(_cppWinRtTestLibName, "Windows.Foundation.Numerics.Plane", "Normal", "public: float3 Normal;"); + } + + [Test] + [Category("Field")] public void Field_ValueType_String() { TestFieldSignature(CppCxTestLibName, "Namespace2.Class4", "StringField", "public: Platform::String ^ StringField;"); @@ -109,6 +117,21 @@ namespace mdoc.Test [Test] [Category("Properties")] + public void Property_WinRtNumericsActualSize() + { + TestPropertySignature(_cppWinRtTestLibName, "Windows.UI.Xaml.UIElement", "ActualSize", "public:\n property float2 ActualSize { float2 get(); };"); + } + + [Test] + [Category("Properties")] + public void Property_WinRtNumericsTransformMatrix() + { + TestPropertySignature(_cppWinRtTestLibName, "Windows.UI.Xaml.UIElement", "TransformMatrix", + "public:\n property float4x4 TransformMatrix { float4x4 get(); void set(float4x4 value); };"); + } + + [Test] + [Category("Properties")] public void Property_FundamentalType() { TestPropertySignature(CppCxTestLibName, "Namespace2.Class3", "LongProperty", @"public: |