[MediaVision] Remove TCs for deprecated API 95/292595/1
authorHaesu Gwon <haesu.gwon@samsung.com>
Wed, 10 May 2023 05:07:59 +0000 (14:07 +0900)
committerHaesu Gwon <haesu.gwon@samsung.com>
Wed, 10 May 2023 05:07:59 +0000 (14:07 +0900)
Change-Id: I1f744657f00f9cefcbb3aeb5169d541195bb8c60

tct-suite-vs/Tizen.MediaVision.Tests/testcase/TSInferenceModelConfiguration.cs

index 3fa06e0..5032f68 100644 (file)
@@ -256,60 +256,6 @@ namespace Tizen.Multimedia.Vision.Tests
 
         [Test]
         [Category("P1")]
-        [Description("Check whether MeanValue returns correct value.")]
-        [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.MeanValue A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRW")]
-        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
-        public void MeanValue_READ_WRITE()
-        {
-            _config.MeanValue = 1.0;
-
-            Assert.IsInstanceOf<double>(_config.MeanValue);
-            Assert.AreEqual(1.0, _config.MeanValue, "Should be got same value.");
-        }
-
-        [Test]
-        [Category("P2")]
-        [Description("Check whether MeanValue throws exception if parameter is invalid")]
-        [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.MeanValue A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PEX")]
-        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
-        public void MeanValue_THROWS_IF_PARAM_IS_INVALID()
-        {
-            Assert.Throws<ArgumentOutOfRangeException>(() => _config.MeanValue = -1.0);
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("Check whether StdValue returns correct value.")]
-        [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.StdValue A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRW")]
-        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
-        public void StdValue_READ_WRITE()
-        {
-            _config.StdValue = 1.0;
-
-            Assert.IsInstanceOf<double>(_config.StdValue);
-            Assert.AreEqual(1.0, _config.StdValue, "Should be got same value.");
-        }
-
-        [Test]
-        [Category("P2")]
-        [Description("Check whether StdValue throws exception if parameter is invalid")]
-        [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.StdValue A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PEX")]
-        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
-        public void StdValue_THROWS_IF_PARAM_IS_INVALID()
-        {
-            Assert.Throws<ArgumentOutOfRangeException>(() => _config.StdValue = -1.0);
-        }
-
-        [Test]
-        [Category("P1")]
         [Description("Check whether Backend returns correct value.")]
         [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.Backend A")]
         [Property("SPEC_URL", "-")]
@@ -376,52 +322,6 @@ namespace Tizen.Multimedia.Vision.Tests
 
         [Test]
         [Category("P1")]
-        [Description("Check whether Target returns correct default value.")]
-        [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.Target A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PDV")]
-        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
-        public void Target_CHECK_DEFAULT_VALUE()
-        {
-            Assert.That(_config.Target, Is.EqualTo(InferenceTargetType.CPU));
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("Check whether Target returns correct value.")]
-        [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.Target A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRW")]
-        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
-        public void Target_READ_WRITE()
-        {
-            _config.Target = InferenceTargetType.CPU;
-            Assert.IsInstanceOf<InferenceTargetType>(_config.Target, "Should return InferenceTargetType instance");
-            Assert.AreEqual(InferenceTargetType.CPU, _config.Target, "Should be got same value.");
-
-            _config.Target = InferenceTargetType.GPU;
-            Assert.IsInstanceOf<InferenceTargetType>(_config.Target, "Should return InferenceTargetType instance");
-            Assert.AreEqual(InferenceTargetType.GPU, _config.Target, "Should be got same value.");
-
-            _config.Target = InferenceTargetType.Custom;
-            Assert.IsInstanceOf<InferenceTargetType>(_config.Target, "Should return InferenceTargetType instance");
-            Assert.AreEqual(InferenceTargetType.Custom, _config.Target, "Should be got same value.");
-        }
-
-        [Test]
-        [Category("P2")]
-        [Description("Check whether Target throws exception if parameter is invalid")]
-        [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.Target A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PEX")]
-        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
-        public void Target_THROWS_IF_PARAM_IS_INVALID()
-        {
-            Assert.Throws<ArgumentException>(() => _config.Target = (InferenceTargetType)10);
-        }
-
-        [Test]
-        [Category("P1")]
         [Description("Check whether Device returns correct default value.")]
         [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.Device A")]
         [Property("SPEC_URL", "-")]
@@ -471,262 +371,6 @@ namespace Tizen.Multimedia.Vision.Tests
 
         [Test]
         [Category("P1")]
-        [Description("Check whether DataType returns correct default value.")]
-        [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.DataType A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PDV")]
-        [Property("AUTHOR", "TaeYoung Chung, ty83.chung@samsung.com")]
-        public void DataType_CHECK_DEFAULT_VALUE()
-        {
-            Assert.That(_config.DataType, Is.EqualTo(InferenceDataType.Float32));
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("Check whether DataType returns correct value.")]
-        [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.DataType A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRW")]
-        [Property("AUTHOR", "TaeYoung Chung, ty83.chung@samsung.com")]
-        public void DataType_READ_WRITE()
-        {
-            _config.DataType = InferenceDataType.Float32;
-            Assert.IsInstanceOf<InferenceDataType>(_config.DataType, "Should return InferenceDataType instance");
-            Assert.AreEqual(InferenceDataType.Float32, _config.DataType, "Should be got same value.");
-
-            _config.DataType = InferenceDataType.UInt8;
-            Assert.IsInstanceOf<InferenceDataType>(_config.DataType, "Should return InferenceDataType instance");
-            Assert.AreEqual(InferenceDataType.UInt8, _config.DataType, "Should be got same value.");
-        }
-
-        [Test]
-        [Category("P2")]
-        [Description("Check whether DataType throws exception if parameter is invalid")]
-        [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.DataType A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PEX")]
-        [Property("AUTHOR", "TaeYoung Chung, ty83.chung@samsung.com")]
-        public void DataType_THROWS_IF_PARAM_IS_INVALID()
-        {
-            Assert.Throws<ArgumentException>(() => _config.DataType = (InferenceDataType)10);
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("Check whether TensorSize returns correct value.")]
-        [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.TensorSize A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRW")]
-        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
-        public void TensorSize_READ_WRITE()
-        {
-            var size = new Size(300, 300);
-            _config.TensorSize = size;
-
-            Assert.IsInstanceOf<Size>(_config.TensorSize, "Should return Size instance");
-            Assert.AreEqual(size.Width, _config.TensorSize.Width, "Should be got same value.");
-            Assert.AreEqual(size.Height, _config.TensorSize.Height, "Should be got same value.");
-
-            // Size(-1, -1) means that original image size will be used.
-            var size2 = new Size(-1, -1);
-            _config.TensorSize = size2;
-
-            Assert.IsInstanceOf<Size>(_config.TensorSize, "Should return Size instance");
-            Assert.AreEqual(size2.Width, _config.TensorSize.Width, "Should be got same value.");
-            Assert.AreEqual(size2.Height, _config.TensorSize.Height, "Should be got same value.");
-        }
-
-        [Test]
-        [Category("P2")]
-        [Description("Check whether TensorSize throws exception if parameter is invalid")]
-        [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.TensorSize A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PEX")]
-        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
-        public void TensorSize_THROWS_IF_PARAM_IS_INVALID()
-        {
-            Assert.Throws<ArgumentException>(() => _config.TensorSize = new Size(-1, -10));
-            Assert.Throws<ArgumentException>(() => _config.TensorSize = new Size(-1, 10));
-            Assert.Throws<ArgumentException>(() => _config.TensorSize = new Size(-10, -1));
-            Assert.Throws<ArgumentException>(() => _config.TensorSize = new Size(10, -1));
-        }
-
-        [Test]
-        [Category("P2")]
-        [Description("Check whether TensorSize throws exception if parameter is out of range")]
-        [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.TensorSize A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PEX")]
-        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
-        public void TensorSize_THROWS_IF_PARAM_IS_OUT_OF_RANGE()
-        {
-            Assert.Throws<ArgumentOutOfRangeException>(() => _config.TensorSize = new Size(0, 0));
-            Assert.Throws<ArgumentOutOfRangeException>(() => _config.TensorSize = new Size(0, 10));
-            Assert.Throws<ArgumentOutOfRangeException>(() => _config.TensorSize = new Size(10, 0));
-            Assert.Throws<ArgumentOutOfRangeException>(() => _config.TensorSize = new Size(10, -2));
-            Assert.Throws<ArgumentOutOfRangeException>(() => _config.TensorSize = new Size(-2, 10));
-            Assert.Throws<ArgumentOutOfRangeException>(() => _config.TensorSize = new Size(-2, -2));
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("Check whether TensorChannels returns correct value.")]
-        [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.TensorChannels A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRW")]
-        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
-        public void TensorChannels_READ_WRITE()
-        {
-            var size = 3;
-            _config.TensorChannels = size;
-
-            Assert.IsInstanceOf<int>(_config.TensorChannels, "Should return int instance");
-            Assert.AreEqual(size, _config.TensorChannels, "Should be got same value.");
-        }
-
-        [Test]
-        [Category("P2")]
-        [Description("Check whether TensorChannels throws exception if parameter is out of range")]
-        [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.TensorChannels A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PEX")]
-        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
-        public void TensorChannels_THROWS_IF_PARAM_IS_OUT_OF_RANGE()
-        {
-            Assert.Throws<ArgumentOutOfRangeException>(() => _config.TensorChannels = 0);
-            Assert.Throws<ArgumentOutOfRangeException>(() => _config.TensorChannels = -10);
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("Check whether InputNodeName returns correct value.")]
-        [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.InputNodeName A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRW")]
-        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
-        public void InputNodeName_READ_WRITE()
-        {
-            var name = "inputNode";
-            _config.InputNodeName = name;
-
-            Assert.IsInstanceOf<string>(_config.InputNodeName, "Should return string instance");
-            Assert.AreEqual(name, _config.InputNodeName, "Should be got same value.");
-        }
-
-        [Test]
-        [Category("P2")]
-        [Description("Check whether InputNodeName throws exception if parameter is null")]
-        [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.InputNodeName A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PEX")]
-        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
-        public void InputNodeName_THROWS_IF_PARAM_IS_NULL()
-        {
-            Assert.Throws<ArgumentNullException>(() => _config.InputNodeName = null);
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("Check whether OutputNodeName returns correct value.")]
-        [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.OutputNodeName A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRW")]
-        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
-        public void OutputNodeName_READ_WRITE()
-        {
-            var names = new string[]
-            {
-                "outputNode1",
-                "outputNode2",
-            };
-
-            _config.OutputNodeName = names;
-
-            Assert.IsInstanceOf<string[]>(_config.OutputNodeName, "Should return string instance");
-            AssertHelper.AreEqual(names, _config.OutputNodeName.ToArray());
-        }
-
-        [Test]
-        [Category("P2")]
-        [Description("Check whether OutputNodeName throws exception if parameter is null")]
-        [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.OutputNodeName A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PEX")]
-        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
-        public void OutputNodeName_THROWS_IF_PARAM_IS_NULL()
-        {
-            Assert.Throws<ArgumentNullException>(() => _config.OutputNodeName = null);
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("Check whether MaxOutputNumber returns correct value.")]
-        [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.MaxOutputNumber A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRW")]
-        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
-        public void MaxOutputNumber_READ_WRITE()
-        {
-            int max = 10;
-
-            _config.MaxOutputNumber = max;
-
-            Assert.IsInstanceOf<int>(_config.MaxOutputNumber, "Should return int instance");
-            Assert.AreEqual(max, _config.MaxOutputNumber, "Should be got same value.");
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("Check whether MaxOutputNumber returns correct value.")]
-        [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.MaxOutputNumber A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRW")]
-        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
-        public void MaxOutputNumber_READ_WRITE_OVER_MAX()
-        {
-            _config.MaxOutputNumber = 100;
-
-            Assert.IsInstanceOf<int>(_config.MaxOutputNumber, "Should return int instance");
-            Assert.AreEqual(10, _config.MaxOutputNumber, "Should be got same value.");
-
-            _config.MaxOutputNumber = -100;
-
-            Assert.IsInstanceOf<int>(_config.MaxOutputNumber, "Should return int instance");
-            Assert.AreEqual(1, _config.MaxOutputNumber, "Should be got same value.");
-        }
-
-        [Test]
-        [Category("P1")]
-        [Description("Check whether ConfidenceThreshold returns correct value.")]
-        [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.ConfidenceThreshold A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PRW")]
-        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
-        public void ConfidenceThreshold_READ_WRITE()
-        {
-            double threshold = 0.5;
-
-            _config.ConfidenceThreshold = threshold;
-
-            Assert.IsInstanceOf<double>(_config.ConfidenceThreshold, "Should return double instance");
-            Assert.AreEqual(threshold, _config.ConfidenceThreshold, "Should be got same value.");
-        }
-
-        [Test]
-        [Category("P2")]
-        [Description("Check whether ConfidenceThreshold throws exception if parameter is out of range")]
-        [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.ConfidenceThreshold A")]
-        [Property("SPEC_URL", "-")]
-        [Property("CRITERIA", "PEX")]
-        [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
-        public void ConfidenceThreshold_THROWS_IF_PARAM_IS_OUT_OF_RANGE()
-        {
-            Assert.Throws<ArgumentOutOfRangeException>(() => _config.ConfidenceThreshold = -0.1);
-            Assert.Throws<ArgumentOutOfRangeException>(() => _config.ConfidenceThreshold = 1.1);
-        }
-
-        [Test]
-        [Category("P1")]
         [Description("Check whether Roi returns correct value.")]
         [Property("SPEC", "Tizen.Multimedia.Vision.InferenceModelConfiguration.Roi A")]
         [Property("SPEC_URL", "-")]