public void Test001_ExportRFDevices([ValueSource(nameof(aFormats))] FileFormat format, [Values(10, 50, 200, 1000)] int iCount)
        {
            SIGENCEScenarioToolTestCaseHelper.ShowTestCaseInformation();

            //-----------------------------------------------------------------

            RFDeviceList dl = RFDeviceList.CreateRandomizedRFDeviceList(iCount, new PointLatLng(0, 0));

            string strFilename =
                $"{Path.GetTempPath()}nunit_rfdevice.{DateTime.Now.ToString( "yyyyMMdd_HHmmssfff" )}.{format}";

            switch (format)
            {
            case FileFormat.Xml:
                dl.SaveAsXml(strFilename);
                break;

            case FileFormat.Csv:
                dl.SaveAsCsv(strFilename);
                break;

                //case FileFormat.Json:
                //    dl.SaveAsJson(strFilename);
                //    break;
            }

            //-----------------------------------------------------------------

            Assert.True(File.Exists(strFilename));
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Displays the scenario.
 /// </summary>
 public void DisplayScenario()
 {
     dg.ItemsSource = RFDeviceList.CreateRandomizedRFDeviceList(16, new PointLatLng(49.7454, 6.6149));
     wb.NavigateToString("<h1>Simple Testscenario</h1><hr/><ul><li>Item 1</li><li>Item 2</li><li>Item 3</li></ul><table border=\"1\"><tr><th>Column1</th><th>Column2</th></tr><tr><td>Column1</td><td>Column2</td></tr></table><br/></br/><hr /><img src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/7/7b/Geigentonspektrum.svg/262px-Geigentonspektrum.svg.png\"/><img src=\"https://upload.wikimedia.org/wikipedia/commons/thumb/5/5d/Airbus_Logo_2017.svg/200px-Airbus_Logo_2017.svg.png\"/>");
     l.Content = "TestScenario Porta Nigra";
 }