Fixed failing source generators unit tests
このコミットが含まれているのは:
1 親
eafb850b9b
コミット
26a4f942da
2ファイル変更
+19
-16
検索条件に一致するファイルはありません
@@ -45,21 +45,20 @@ public class AutoConstructorGeneratorTests
|
||||
}";
|
||||
|
||||
string expected = @"
|
||||
namespace MyFancyApp.Sample
|
||||
#pragma warning disable
|
||||
namespace MyFancyApp.Sample;
|
||||
public partial interface IFoo<T>
|
||||
{
|
||||
public partial interface IFoo<T>
|
||||
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<global::System.Numerics.Vector4> c, global::ComputeSharp.ReadWriteBuffer<int> d)
|
||||
{
|
||||
public Test(float a, System.Numerics.Vector2 b, ComputeSharp.ReadWriteBuffer<System.Numerics.Vector4> c, ComputeSharp.ReadWriteBuffer<int> 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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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<T> { }
|
||||
public struct double4x4 { }
|
||||
public struct float4 { }
|
||||
public struct Double4x4 { }
|
||||
public struct Float4 { }
|
||||
}
|
||||
|
||||
namespace MyFancyApp.Sample
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする