From 2bd6811fa44d6cd344e78fdcbab921b2bfdd1c94 Mon Sep 17 00:00:00 2001 From: Dean Ellis Date: Fri, 9 Mar 2018 21:32:25 +0000 Subject: [PATCH] Updated Tests --- project/vc12/Nvidia.TextureTools.UnitTests/Test.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/project/vc12/Nvidia.TextureTools.UnitTests/Test.cs b/project/vc12/Nvidia.TextureTools.UnitTests/Test.cs index e3b3e03..2c516c9 100644 --- a/project/vc12/Nvidia.TextureTools.UnitTests/Test.cs +++ b/project/vc12/Nvidia.TextureTools.UnitTests/Test.cs @@ -28,10 +28,12 @@ namespace Nvidia.TextureTools.UnitTests { inputOptions.SetMipmapData (dataPtr, 128, 128, 1, 0, 0); inputOptions.SetMipmapGeneration (false); inputOptions.SetGamma (1.0f, 1.0f); + compressionOptions.SetFormat (Format.RGBA); outputOptions.SetOutputHeader (false); outputOptions.SetOutputOptionsOutputHandler (BeginImage, WriteData, EndImage); var estsize = compressor.EstimateSize (inputOptions, compressionOptions); Assert.True (compressor.Compress (inputOptions, compressionOptions, outputOptions)); + Assert.AreEqual (estsize, buffer.Length); }finally { a.Free (); b.Free (); @@ -53,16 +55,12 @@ namespace Nvidia.TextureTools.UnitTests { { Marshal.Copy (data, buffer, offset, length); offset += length; - if (offset == buffer.Length) - { - - } return true; } void EndImageInternal () { - Console.WriteLine ("EndImageInternal"); + // add done write the buffer. } } }