diff --git a/tests/ComputeSharp.Tests.SourceGenerators/AutoConstructorGeneratorTests.cs b/tests/ComputeSharp.Tests.SourceGenerators/AutoConstructorGeneratorTests.cs index b991a58c..b283571b 100644 --- a/tests/ComputeSharp.Tests.SourceGenerators/AutoConstructorGeneratorTests.cs +++ b/tests/ComputeSharp.Tests.SourceGenerators/AutoConstructorGeneratorTests.cs @@ -45,21 +45,20 @@ public class AutoConstructorGeneratorTests }"; string expected = @" - namespace MyFancyApp.Sample + #pragma warning disable + namespace MyFancyApp.Sample; + public partial interface IFoo { - public partial interface IFoo + public partial class Foo { - public partial class Foo + public readonly partial struct Test { - public readonly partial struct Test + public Test(float a, global::System.Numerics.Vector2 b, global::ComputeSharp.ReadWriteBuffer c, global::ComputeSharp.ReadWriteBuffer d) { - public Test(float a, System.Numerics.Vector2 b, ComputeSharp.ReadWriteBuffer c, ComputeSharp.ReadWriteBuffer d) - { - this.a = a; - this.b = b; - this.c = c; - this.d = d; - } + this.a = a; + this.b = b; + this.c = c; + this.d = d; } } } diff --git a/tests/ComputeSharp.Tests.SourceGenerators/DiagnosticsTests.cs b/tests/ComputeSharp.Tests.SourceGenerators/DiagnosticsTests.cs index 3956f5a1..e3a11320 100644 --- a/tests/ComputeSharp.Tests.SourceGenerators/DiagnosticsTests.cs +++ b/tests/ComputeSharp.Tests.SourceGenerators/DiagnosticsTests.cs @@ -1160,6 +1160,8 @@ public class DiagnosticsTests string source = @" using ComputeSharp; using static ComputeSharp.MatrixIndex; + using float4 = ComputeSharp.Float4; + using float4x4 = ComputeSharp.Float4x4; namespace ComputeSharp { @@ -1170,10 +1172,10 @@ public class DiagnosticsTests M12, M13 }, - public struct float4 { } - public struct float4x4 + public struct Float4 { } + public struct Float4x4 { - public float4 this[MatrixIndex m0, MatrixIndex m1, MatrixIndex m2, MatrixIndex m3] => default; + public Float4 this[MatrixIndex m0, MatrixIndex m1, MatrixIndex m2, MatrixIndex m3] => default; } } @@ -1343,12 +1345,14 @@ public class DiagnosticsTests { string source = @" using ComputeSharp; + using double4x4 = ComputeSharp.Double4x4; + using float4 = ComputeSharp.Float4; namespace ComputeSharp { public class ReadWriteBuffer { } - public struct double4x4 { } - public struct float4 { } + public struct Double4x4 { } + public struct Float4 { } } namespace MyFancyApp.Sample