Skip to content

Commit 9f4b6c7

Browse files
committed
fixed up new tests for kni and fna
1 parent ad29f4d commit 9f4b6c7

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Tests/TypeTests.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,20 @@ public void TestGenerics() {
4747
}
4848

4949
[Test]
50-
public void TestRemoveAssemblyDetails() {
50+
public void TestRemoveAssemblyMetadata() {
5151
const string spc = "System.Private.CoreLib";
5252
(Type, string)[] types = [
5353
(typeof(string), $"System.String, {spc}"),
5454
(typeof(int), $"System.Int32, {spc}"),
55-
(typeof(Vector2), "Microsoft.Xna.Framework.Vector2, MonoGame.Framework"),
55+
(typeof(Vector2), "Microsoft.Xna.Framework.Vector2, " +
56+
#if KNI
57+
"Xna.Framework"
58+
#elif FNA
59+
"FNA"
60+
#else
61+
"MonoGame.Framework"
62+
#endif
63+
),
5664
(typeof(Dictionary<int, string>), $"System.Collections.Generic.Dictionary`2[[System.Int32, {spc}],[System.String, {spc}]], {spc}"),
5765
];
5866
foreach (var (type, expected) in types) {

0 commit comments

Comments
 (0)