From: Sangjung Woo Date: Thu, 21 Jan 2021 05:33:42 +0000 (+0900) Subject: [MachineLearning.Inference][Non-ARC] Remove unnecessary TC for TensorsInfo X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7cc9cbe1be2ada3c4ec716b49869484e0e644291;p=test%2Ftct%2Fcsharp%2Fapi.git [MachineLearning.Inference][Non-ARC] Remove unnecessary TC for TensorsInfo Since the name of the TensorsInfo is not used when negotiating the pipeline, the name comparison in TensorsInfo.Equals() is going to be removed. This patch removed the test case, which compares the name of the TensorsInfo. Change-Id: Iec1fcb835e0416923fd56a95e99e4bdc484835fb Signed-off-by: Sangjung Woo --- diff --git a/tct-suite-vs/Tizen.MachineLearning.Inference.Tests/testcase/TSTensorsInfo.cs b/tct-suite-vs/Tizen.MachineLearning.Inference.Tests/testcase/TSTensorsInfo.cs index b6cbe37..7563b8c 100755 --- a/tct-suite-vs/Tizen.MachineLearning.Inference.Tests/testcase/TSTensorsInfo.cs +++ b/tct-suite-vs/Tizen.MachineLearning.Inference.Tests/testcase/TSTensorsInfo.cs @@ -1334,49 +1334,6 @@ namespace Tizen.MachineLearning.Inference.Tests { [Test] [Category("P1")] - [Description("Compare the TensorsInfo object with different name and check the result")] - [Property("SPEC", "Tizen.MachineLearning.Inference.TensorsInfo.Equals M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("COVPARAM", "TensorsInfo")] - [Property("AUTHOR", "Sangjung Woo, sangjung.woo@samsung.com")] - public void Equals_CHECK_Different_Name() - { - var in_dim = new int[4] { 10, 1, 1, 1 }; - Assert.IsInstanceOf(in_dim, "Should return int[] instance"); - Assert.IsNotNull(in_dim, "Failed to create in_dim instance"); - - try - { - var tensorsInfo = new TensorsInfo(); - Assert.IsInstanceOf(tensorsInfo, "Should return TensorsInfo instance"); - Assert.IsNotNull(tensorsInfo, "Failed to create tensorsInfo instance"); - tensorsInfo.AddTensorInfo("test1", TensorType.UInt8, in_dim); - - var tensorsInfo2 = new TensorsInfo(); - Assert.IsInstanceOf(tensorsInfo2, "Should return TensorsInfo instance"); - Assert.IsNotNull(tensorsInfo2, "Failed to create tensorsInfo instance"); - tensorsInfo2.AddTensorInfo("test2", TensorType.UInt8, in_dim); - - /* TEST CODE */ - Assert.IsFalse(tensorsInfo.Equals(tensorsInfo2), "Two TensorsInfo should be different"); - } - catch (Exception e) - { - if (e is NotSupportedException) - { - LogUtils.Write(LogUtils.DEBUG, LogUtils.TAG, "NotSupportedException occurs"); - Assert.IsTrue(_isMachineLeanringInferenceSupported == false, "Invalid NotSupportedException"); - } - else - { - Assert.True(false, e.Message); - } - } - } - - [Test] - [Category("P1")] [Description("Compare the TensorsInfo object with different type and check the result")] [Property("SPEC", "Tizen.MachineLearning.Inference.TensorsInfo.Equals M")] [Property("SPEC_URL", "-")]