From 7b92ea061b1b16484f9499127768c513ff0d8b92 Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Tue, 4 Aug 2020 10:33:07 +0200 Subject: [PATCH] [monotouch-test] Fix a couple asserts with regards to native types. --- tests/monotouch-test/ModelIO/MDLTexture.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/monotouch-test/ModelIO/MDLTexture.cs b/tests/monotouch-test/ModelIO/MDLTexture.cs index 9c81b36e63..c9fc058674 100644 --- a/tests/monotouch-test/ModelIO/MDLTexture.cs +++ b/tests/monotouch-test/ModelIO/MDLTexture.cs @@ -78,11 +78,11 @@ namespace MonoTouchFixtures.ModelIO { Assert.IsNull (txt, "Is Null"); // this is probably because the arguments to CreateIrradianceTextureCube are invalid, but I haven't been able to figure out valid values. } else { Assert.IsNotNull (txt, "Ain't Null"); - Assert.AreEqual (4, txt.ChannelCount, "ChannelCount"); + Assert.AreEqual ((nuint) 4, txt.ChannelCount, "ChannelCount"); Assert.AreEqual (MDLTextureChannelEncoding.UInt8, txt.ChannelEncoding, "ChannelEncoding"); Assert.AreEqual (new Vector2i (3, 18), txt.Dimensions, "Dimensions"); - Assert.AreEqual (2, txt.MipLevelCount, "MipLevelCount"); - Assert.AreEqual (12, txt.RowStride, "RowStride"); + Assert.AreEqual ((nuint) 2, txt.MipLevelCount, "MipLevelCount"); + Assert.AreEqual ((nint) 12, txt.RowStride, "RowStride"); } } } @@ -99,11 +99,11 @@ namespace MonoTouchFixtures.ModelIO { Assert.IsNull (txt, "Is Null"); // this is probably because the arguments to CreateIrradianceTextureCube are invalid, but I haven't been able to figure out valid values. } else { Assert.IsNotNull (txt, "Ain't Null"); - Assert.AreEqual (4, txt.ChannelCount, "ChannelCount"); + Assert.AreEqual ((nuint) 4, txt.ChannelCount, "ChannelCount"); Assert.AreEqual (MDLTextureChannelEncoding.UInt8, txt.ChannelEncoding, "ChannelEncoding"); Assert.AreEqual (new Vector2i (3, 18), txt.Dimensions, "Dimensions"); - Assert.AreEqual (1, txt.MipLevelCount, "MipLevelCount"); - Assert.AreEqual (12, txt.RowStride, "RowStride"); + Assert.AreEqual ((nuint) 1, txt.MipLevelCount, "MipLevelCount"); + Assert.AreEqual ((nint) 12, txt.RowStride, "RowStride"); } } }