Skip to content

Commit

Permalink
Regenerate the tests to account for DisableRuntimeMarshalling
Browse files Browse the repository at this point in the history
  • Loading branch information
tannergooding committed Oct 16, 2023
1 parent 89bac28 commit 4989e14
Show file tree
Hide file tree
Showing 9,019 changed files with 0 additions and 225,433 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,11 @@
// Original source is Copyright © Microsoft. Licensed under the MIT license

using NUnit.Framework;
using System;
using System.Runtime.InteropServices;

namespace TerraFX.Interop.DirectX.UnitTests;

/// <summary>Provides validation of the <see cref="D3D12_AUTO_BREADCRUMB_NODE1" /> struct.</summary>
public static unsafe partial class D3D12_AUTO_BREADCRUMB_NODE1Tests
{
/// <summary>Validates that the <see cref="D3D12_AUTO_BREADCRUMB_NODE1" /> struct is blittable.</summary>
[Test]
public static void IsBlittableTest()
{
Assert.That(Marshal.SizeOf<D3D12_AUTO_BREADCRUMB_NODE1>(), Is.EqualTo(sizeof(D3D12_AUTO_BREADCRUMB_NODE1)));
}

/// <summary>Validates that the <see cref="D3D12_AUTO_BREADCRUMB_NODE1" /> struct has the right <see cref="LayoutKind" />.</summary>
[Test]
public static void IsLayoutSequentialTest()
{
Assert.That(typeof(D3D12_AUTO_BREADCRUMB_NODE1).IsLayoutSequential, Is.True);
}

/// <summary>Validates that the <see cref="D3D12_AUTO_BREADCRUMB_NODE1" /> struct has the correct size.</summary>
[Test]
public static void SizeOfTest()
{
if (Environment.Is64BitProcess)
{
Assert.That(sizeof(D3D12_AUTO_BREADCRUMB_NODE1), Is.EqualTo(96));
}
else
{
Assert.That(sizeof(D3D12_AUTO_BREADCRUMB_NODE1), Is.EqualTo(48));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,11 @@
// Original source is Copyright © Microsoft. Licensed under the MIT license

using NUnit.Framework;
using System;
using System.Runtime.InteropServices;

namespace TerraFX.Interop.DirectX.UnitTests;

/// <summary>Provides validation of the <see cref="D3D12_AUTO_BREADCRUMB_NODE" /> struct.</summary>
public static unsafe partial class D3D12_AUTO_BREADCRUMB_NODETests
{
/// <summary>Validates that the <see cref="D3D12_AUTO_BREADCRUMB_NODE" /> struct is blittable.</summary>
[Test]
public static void IsBlittableTest()
{
Assert.That(Marshal.SizeOf<D3D12_AUTO_BREADCRUMB_NODE>(), Is.EqualTo(sizeof(D3D12_AUTO_BREADCRUMB_NODE)));
}

/// <summary>Validates that the <see cref="D3D12_AUTO_BREADCRUMB_NODE" /> struct has the right <see cref="LayoutKind" />.</summary>
[Test]
public static void IsLayoutSequentialTest()
{
Assert.That(typeof(D3D12_AUTO_BREADCRUMB_NODE).IsLayoutSequential, Is.True);
}

/// <summary>Validates that the <see cref="D3D12_AUTO_BREADCRUMB_NODE" /> struct has the correct size.</summary>
[Test]
public static void SizeOfTest()
{
if (Environment.Is64BitProcess)
{
Assert.That(sizeof(D3D12_AUTO_BREADCRUMB_NODE), Is.EqualTo(80));
}
else
{
Assert.That(sizeof(D3D12_AUTO_BREADCRUMB_NODE), Is.EqualTo(40));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,39 +4,11 @@
// Original source is Copyright © Microsoft. Licensed under the MIT license

using NUnit.Framework;
using System;
using System.Runtime.InteropServices;

namespace TerraFX.Interop.DirectX.UnitTests;

/// <summary>Provides validation of the <see cref="D3D12_BARRIER_GROUP" /> struct.</summary>
public static unsafe partial class D3D12_BARRIER_GROUPTests
{
/// <summary>Validates that the <see cref="D3D12_BARRIER_GROUP" /> struct is blittable.</summary>
[Test]
public static void IsBlittableTest()
{
Assert.That(Marshal.SizeOf<D3D12_BARRIER_GROUP>(), Is.EqualTo(sizeof(D3D12_BARRIER_GROUP)));
}

/// <summary>Validates that the <see cref="D3D12_BARRIER_GROUP" /> struct has the right <see cref="LayoutKind" />.</summary>
[Test]
public static void IsLayoutSequentialTest()
{
Assert.That(typeof(D3D12_BARRIER_GROUP).IsLayoutSequential, Is.True);
}

/// <summary>Validates that the <see cref="D3D12_BARRIER_GROUP" /> struct has the correct size.</summary>
[Test]
public static void SizeOfTest()
{
if (Environment.Is64BitProcess)
{
Assert.That(sizeof(D3D12_BARRIER_GROUP), Is.EqualTo(16));
}
else
{
Assert.That(sizeof(D3D12_BARRIER_GROUP), Is.EqualTo(12));
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,4 @@ namespace TerraFX.Interop.DirectX.UnitTests;
/// <summary>Provides validation of the <see cref="D3D12_BARRIER_SUBRESOURCE_RANGE" /> struct.</summary>
public static unsafe partial class D3D12_BARRIER_SUBRESOURCE_RANGETests
{
/// <summary>Validates that the <see cref="D3D12_BARRIER_SUBRESOURCE_RANGE" /> struct is blittable.</summary>
[Test]
public static void IsBlittableTest()
{
Assert.That(Marshal.SizeOf<D3D12_BARRIER_SUBRESOURCE_RANGE>(), Is.EqualTo(sizeof(D3D12_BARRIER_SUBRESOURCE_RANGE)));
}

/// <summary>Validates that the <see cref="D3D12_BARRIER_SUBRESOURCE_RANGE" /> struct has the right <see cref="LayoutKind" />.</summary>
[Test]
public static void IsLayoutSequentialTest()
{
Assert.That(typeof(D3D12_BARRIER_SUBRESOURCE_RANGE).IsLayoutSequential, Is.True);
}

/// <summary>Validates that the <see cref="D3D12_BARRIER_SUBRESOURCE_RANGE" /> struct has the correct size.</summary>
[Test]
public static void SizeOfTest()
{
Assert.That(sizeof(D3D12_BARRIER_SUBRESOURCE_RANGE), Is.EqualTo(24));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,4 @@ namespace TerraFX.Interop.DirectX.UnitTests;
/// <summary>Provides validation of the <see cref="D3D12_BLEND_DESC" /> struct.</summary>
public static unsafe partial class D3D12_BLEND_DESCTests
{
/// <summary>Validates that the <see cref="D3D12_BLEND_DESC" /> struct is blittable.</summary>
[Test]
public static void IsBlittableTest()
{
Assert.That(Marshal.SizeOf<D3D12_BLEND_DESC>(), Is.EqualTo(sizeof(D3D12_BLEND_DESC)));
}

/// <summary>Validates that the <see cref="D3D12_BLEND_DESC" /> struct has the right <see cref="LayoutKind" />.</summary>
[Test]
public static void IsLayoutSequentialTest()
{
Assert.That(typeof(D3D12_BLEND_DESC).IsLayoutSequential, Is.True);
}

/// <summary>Validates that the <see cref="D3D12_BLEND_DESC" /> struct has the correct size.</summary>
[Test]
public static void SizeOfTest()
{
Assert.That(sizeof(D3D12_BLEND_DESC), Is.EqualTo(328));
}
}
20 changes: 0 additions & 20 deletions tests/Interop/Windows/DirectX/headers/d3d12/D3D12_BOXTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,4 @@ namespace TerraFX.Interop.DirectX.UnitTests;
/// <summary>Provides validation of the <see cref="D3D12_BOX" /> struct.</summary>
public static unsafe partial class D3D12_BOXTests
{
/// <summary>Validates that the <see cref="D3D12_BOX" /> struct is blittable.</summary>
[Test]
public static void IsBlittableTest()
{
Assert.That(Marshal.SizeOf<D3D12_BOX>(), Is.EqualTo(sizeof(D3D12_BOX)));
}

/// <summary>Validates that the <see cref="D3D12_BOX" /> struct has the right <see cref="LayoutKind" />.</summary>
[Test]
public static void IsLayoutSequentialTest()
{
Assert.That(typeof(D3D12_BOX).IsLayoutSequential, Is.True);
}

/// <summary>Validates that the <see cref="D3D12_BOX" /> struct has the correct size.</summary>
[Test]
public static void SizeOfTest()
{
Assert.That(sizeof(D3D12_BOX), Is.EqualTo(24));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,4 @@ namespace TerraFX.Interop.DirectX.UnitTests;
/// <summary>Provides validation of the <see cref="D3D12_BUFFER_BARRIER" /> struct.</summary>
public static unsafe partial class D3D12_BUFFER_BARRIERTests
{
/// <summary>Validates that the <see cref="D3D12_BUFFER_BARRIER" /> struct is blittable.</summary>
[Test]
public static void IsBlittableTest()
{
Assert.That(Marshal.SizeOf<D3D12_BUFFER_BARRIER>(), Is.EqualTo(sizeof(D3D12_BUFFER_BARRIER)));
}

/// <summary>Validates that the <see cref="D3D12_BUFFER_BARRIER" /> struct has the right <see cref="LayoutKind" />.</summary>
[Test]
public static void IsLayoutSequentialTest()
{
Assert.That(typeof(D3D12_BUFFER_BARRIER).IsLayoutSequential, Is.True);
}

/// <summary>Validates that the <see cref="D3D12_BUFFER_BARRIER" /> struct has the correct size.</summary>
[Test]
public static void SizeOfTest()
{
Assert.That(sizeof(D3D12_BUFFER_BARRIER), Is.EqualTo(40));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,4 @@ namespace TerraFX.Interop.DirectX.UnitTests;
/// <summary>Provides validation of the <see cref="D3D12_BUFFER_RTV" /> struct.</summary>
public static unsafe partial class D3D12_BUFFER_RTVTests
{
/// <summary>Validates that the <see cref="D3D12_BUFFER_RTV" /> struct is blittable.</summary>
[Test]
public static void IsBlittableTest()
{
Assert.That(Marshal.SizeOf<D3D12_BUFFER_RTV>(), Is.EqualTo(sizeof(D3D12_BUFFER_RTV)));
}

/// <summary>Validates that the <see cref="D3D12_BUFFER_RTV" /> struct has the right <see cref="LayoutKind" />.</summary>
[Test]
public static void IsLayoutSequentialTest()
{
Assert.That(typeof(D3D12_BUFFER_RTV).IsLayoutSequential, Is.True);
}

/// <summary>Validates that the <see cref="D3D12_BUFFER_RTV" /> struct has the correct size.</summary>
[Test]
public static void SizeOfTest()
{
Assert.That(sizeof(D3D12_BUFFER_RTV), Is.EqualTo(16));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,4 @@ namespace TerraFX.Interop.DirectX.UnitTests;
/// <summary>Provides validation of the <see cref="D3D12_BUFFER_SRV" /> struct.</summary>
public static unsafe partial class D3D12_BUFFER_SRVTests
{
/// <summary>Validates that the <see cref="D3D12_BUFFER_SRV" /> struct is blittable.</summary>
[Test]
public static void IsBlittableTest()
{
Assert.That(Marshal.SizeOf<D3D12_BUFFER_SRV>(), Is.EqualTo(sizeof(D3D12_BUFFER_SRV)));
}

/// <summary>Validates that the <see cref="D3D12_BUFFER_SRV" /> struct has the right <see cref="LayoutKind" />.</summary>
[Test]
public static void IsLayoutSequentialTest()
{
Assert.That(typeof(D3D12_BUFFER_SRV).IsLayoutSequential, Is.True);
}

/// <summary>Validates that the <see cref="D3D12_BUFFER_SRV" /> struct has the correct size.</summary>
[Test]
public static void SizeOfTest()
{
Assert.That(sizeof(D3D12_BUFFER_SRV), Is.EqualTo(24));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,4 @@ namespace TerraFX.Interop.DirectX.UnitTests;
/// <summary>Provides validation of the <see cref="D3D12_BUFFER_UAV" /> struct.</summary>
public static unsafe partial class D3D12_BUFFER_UAVTests
{
/// <summary>Validates that the <see cref="D3D12_BUFFER_UAV" /> struct is blittable.</summary>
[Test]
public static void IsBlittableTest()
{
Assert.That(Marshal.SizeOf<D3D12_BUFFER_UAV>(), Is.EqualTo(sizeof(D3D12_BUFFER_UAV)));
}

/// <summary>Validates that the <see cref="D3D12_BUFFER_UAV" /> struct has the right <see cref="LayoutKind" />.</summary>
[Test]
public static void IsLayoutSequentialTest()
{
Assert.That(typeof(D3D12_BUFFER_UAV).IsLayoutSequential, Is.True);
}

/// <summary>Validates that the <see cref="D3D12_BUFFER_UAV" /> struct has the correct size.</summary>
[Test]
public static void SizeOfTest()
{
Assert.That(sizeof(D3D12_BUFFER_UAV), Is.EqualTo(32));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,4 @@ namespace TerraFX.Interop.DirectX.UnitTests;
/// <summary>Provides validation of the <see cref="D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC" /> struct.</summary>
public static unsafe partial class D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESCTests
{
/// <summary>Validates that the <see cref="D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC" /> struct is blittable.</summary>
[Test]
public static void IsBlittableTest()
{
Assert.That(Marshal.SizeOf<D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC>(), Is.EqualTo(sizeof(D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC)));
}

/// <summary>Validates that the <see cref="D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC" /> struct has the right <see cref="LayoutKind" />.</summary>
[Test]
public static void IsLayoutSequentialTest()
{
Assert.That(typeof(D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC).IsLayoutSequential, Is.True);
}

/// <summary>Validates that the <see cref="D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC" /> struct has the correct size.</summary>
[Test]
public static void SizeOfTest()
{
Assert.That(sizeof(D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_DESC), Is.EqualTo(48));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,4 @@ namespace TerraFX.Interop.DirectX.UnitTests;
/// <summary>Provides validation of the <see cref="D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS" /> struct.</summary>
public static unsafe partial class D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTSTests
{
/// <summary>Validates that the <see cref="D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS" /> struct is blittable.</summary>
[Test]
public static void IsBlittableTest()
{
Assert.That(Marshal.SizeOf<D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS>(), Is.EqualTo(sizeof(D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS)));
}

/// <summary>Validates that the <see cref="D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS" /> struct has the right <see cref="LayoutKind" />.</summary>
[Test]
public static void IsLayoutSequentialTest()
{
Assert.That(typeof(D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS).IsLayoutSequential, Is.True);
}

/// <summary>Validates that the <see cref="D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS" /> struct has the correct size.</summary>
[Test]
public static void SizeOfTest()
{
Assert.That(sizeof(D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_INPUTS), Is.EqualTo(24));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,4 @@ namespace TerraFX.Interop.DirectX.UnitTests;
/// <summary>Provides validation of the <see cref="D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER" /> struct.</summary>
public static unsafe partial class D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADERTests
{
/// <summary>Validates that the <see cref="D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER" /> struct is blittable.</summary>
[Test]
public static void IsBlittableTest()
{
Assert.That(Marshal.SizeOf<D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER>(), Is.EqualTo(sizeof(D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER)));
}

/// <summary>Validates that the <see cref="D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER" /> struct has the right <see cref="LayoutKind" />.</summary>
[Test]
public static void IsLayoutSequentialTest()
{
Assert.That(typeof(D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER).IsLayoutSequential, Is.True);
}

/// <summary>Validates that the <see cref="D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER" /> struct has the correct size.</summary>
[Test]
public static void SizeOfTest()
{
Assert.That(sizeof(D3D12_BUILD_RAYTRACING_ACCELERATION_STRUCTURE_TOOLS_VISUALIZATION_HEADER), Is.EqualTo(8));
}
}
Loading

0 comments on commit 4989e14

Please sign in to comment.