From 0352219b9ff562495d387d46e8fa4170c9c2a209 Mon Sep 17 00:00:00 2001 From: Stefan Maierhofer Date: Thu, 5 Oct 2023 17:53:53 +0200 Subject: [PATCH] removed some warnings --- src/Aardvark.Algodat.Tests/ParsingTests.cs | 12 ++++++------ src/Aardvark.Algodat.Tests/PartIndicesTests.cs | 2 ++ src/Aardvark.Data.E57/Aardvark.Data.E57.csproj | 2 +- src/Apps/Viewer/paket.references | 3 ++- 4 files changed, 11 insertions(+), 8 deletions(-) diff --git a/src/Aardvark.Algodat.Tests/ParsingTests.cs b/src/Aardvark.Algodat.Tests/ParsingTests.cs index 07fad4ee..6c2d283e 100644 --- a/src/Aardvark.Algodat.Tests/ParsingTests.cs +++ b/src/Aardvark.Algodat.Tests/ParsingTests.cs @@ -211,7 +211,7 @@ private static void ParseAscii_Byte_Test(string txt, int result, bool isInvalid) var data = LineParsers.Custom(buffer, buffer.Length, 0.0, layout, partIndices: null); if (isInvalid) { - Assert.IsTrue(data == null); + Assert.IsTrue(data.IsEmpty); } else { @@ -244,7 +244,7 @@ private static void ParseAscii_FloatColor_Test(string txt, int result, bool isIn var data = LineParsers.Custom(buffer, buffer.Length, 0.0, layout, partIndices: null); if (isInvalid) { - Assert.IsTrue(data == null); + Assert.IsTrue(data.IsEmpty); } else { @@ -437,7 +437,7 @@ 1.2 3.4 5.6 8 254 var buffer = Encoding.ASCII.GetBytes(txt); var data = LineParsers.XYZRGB(buffer, buffer.Length, 0.0, partIndices: null); - Assert.IsTrue(data == null); + Assert.IsTrue(data.IsEmpty); } [Test] @@ -449,7 +449,7 @@ 1.2 3.4 5.6 8 var buffer = Encoding.ASCII.GetBytes(txt); var data = LineParsers.XYZRGB(buffer, buffer.Length, 0.0, partIndices: null); - Assert.IsTrue(data == null); + Assert.IsTrue(data.IsEmpty); } [Test] @@ -495,7 +495,7 @@ 1.2 3.4 5.6 8765 8 254 var buffer = Encoding.ASCII.GetBytes(txt); var data = LineParsers.XYZIRGB(buffer, buffer.Length, 0.0, partIndices: null); - Assert.IsTrue(data == null); + Assert.IsTrue(data.IsEmpty); } [Test] @@ -507,7 +507,7 @@ 1.2 3.4 5.6 8765 8 var buffer = Encoding.ASCII.GetBytes(txt); var data = LineParsers.XYZIRGB(buffer, buffer.Length, 0.0, partIndices: null); - Assert.IsTrue(data == null); + Assert.IsTrue(data.IsEmpty); } [Test] diff --git a/src/Aardvark.Algodat.Tests/PartIndicesTests.cs b/src/Aardvark.Algodat.Tests/PartIndicesTests.cs index d0d10217..8d8769fa 100644 --- a/src/Aardvark.Algodat.Tests/PartIndicesTests.cs +++ b/src/Aardvark.Algodat.Tests/PartIndicesTests.cs @@ -17,6 +17,8 @@ You should have received a copy of the GNU Affero General Public License using System; using System.Collections.Generic; +#pragma warning disable IDE1006 // Naming Styles + namespace Aardvark.Geometry.Tests; [TestFixture] diff --git a/src/Aardvark.Data.E57/Aardvark.Data.E57.csproj b/src/Aardvark.Data.E57/Aardvark.Data.E57.csproj index 933b7e9f..b8396a73 100644 --- a/src/Aardvark.Data.E57/Aardvark.Data.E57.csproj +++ b/src/Aardvark.Data.E57/Aardvark.Data.E57.csproj @@ -2,7 +2,7 @@ netstandard2.0 - latest + 10 ..\..\bin\Debug diff --git a/src/Apps/Viewer/paket.references b/src/Apps/Viewer/paket.references index 35d8a964..cbf8092b 100644 --- a/src/Apps/Viewer/paket.references +++ b/src/Apps/Viewer/paket.references @@ -1,2 +1,3 @@ Aardvark.Build -Aardvark.Application.Utilities \ No newline at end of file +Aardvark.Application.Utilities +FSharp.Core \ No newline at end of file