[MachineLearning.Inference][Non-ARC] Remove unnecessary TC for TensorsInfo 38/251938/2
authorSangjung Woo <sangjung.woo@samsung.com>
Thu, 21 Jan 2021 05:33:42 +0000 (14:33 +0900)
committerSangjung Woo <sangjung.woo@samsung.com>
Thu, 21 Jan 2021 05:39:23 +0000 (14:39 +0900)
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 <sangjung.woo@samsung.com>
tct-suite-vs/Tizen.MachineLearning.Inference.Tests/testcase/TSTensorsInfo.cs

index b6cbe37..7563b8c 100755 (executable)
@@ -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<int[]>(in_dim, "Should return int[] instance");
-            Assert.IsNotNull(in_dim, "Failed to create in_dim instance");
-
-            try
-            {
-                var tensorsInfo = new TensorsInfo();
-                Assert.IsInstanceOf<TensorsInfo>(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<TensorsInfo>(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", "-")]