From d6111f7f5c334d5e718c6d4d993b8340cf3ba768 Mon Sep 17 00:00:00 2001 From: Sam Harwell Date: Fri, 6 Dec 2019 14:38:19 -0800 Subject: [PATCH] Disable CS0649 in OnnxConversionTest --- test/Microsoft.ML.Tests/OnnxConversionTest.cs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/test/Microsoft.ML.Tests/OnnxConversionTest.cs b/test/Microsoft.ML.Tests/OnnxConversionTest.cs index 6ee97c4777..f66f5a38fb 100644 --- a/test/Microsoft.ML.Tests/OnnxConversionTest.cs +++ b/test/Microsoft.ML.Tests/OnnxConversionTest.cs @@ -28,6 +28,8 @@ using Xunit.Abstractions; using static Microsoft.ML.Model.OnnxConverter.OnnxCSharpToProtoWrapper; +#pragma warning disable CS0649 // Field 'fieldName' is never assigned to, and will always have its default value null + namespace Microsoft.ML.Tests { public class OnnxConversionTest : BaseTestBaseline @@ -1294,15 +1296,6 @@ void CopyColumnsOnnxTest() Done(); } - private void CreateDummyExamplesToMakeComplierHappy() - { - var dummyExample = new BreastCancerFeatureVector() { Features = null }; - var dummyExample1 = new BreastCancerCatFeatureExample() { Label = false, F1 = 0, F2 = "Amy" }; - var dummyExample2 = new BreastCancerMulticlassExample() { Label = "Amy", Features = null }; - var dummyExample3 = new BreastCancerBinaryClassification() { Label = false, Features = null }; - var dummyExample4 = new SmallSentimentExample() { Tokens = null }; - } - private void CompareResults(string leftColumnName, string rightColumnName, IDataView left, IDataView right) { var leftColumn = left.Schema[leftColumnName];