Exemple #1
0
        public void FlushTest_new()
        {
            Diagramm target = new Diagramm();
            target.flush();

            //no Exception should occur
        }
Exemple #2
0
        public void setVideoTest_data()
        {
            Diagramm target = new Diagramm();
            bool isAnalysis = true;
            string vidPath = "";
            IVideoInfo vinfo = null;
            List<IMacroEntry> processedBy = new List<IMacroEntry>();
            MacroEntry macroEntry = new MacroEntry("TestPlugin", PluginType.IMetricOqat, "TestMemento");
            processedBy.Add(macroEntry);
            Video video = new Video(isAnalysis, vidPath, vinfo, processedBy);

            float[][] data = new float[2][];
            data[0] = new float[5] { 1, 2, 3, 4, 5 };
            data[1] = new float[5] { 1, 2, 3, 4, 5 };
            video.frameMetricValue = data;

            target.setVideo(video);
            //assert: no exception
            //GUI should show the diagram now >> (automated?) UI test

            target.flush();
            //assert: no exception
            //GUI should be flushed now >> (automated?) UI test
        }