Beispiel #1
0
        private List <Lag> ReadAllOrionData(OrionTestHelper mTestHelper)
        {
            LagOppsettDataService dataOrionXml = new LagOppsettDataService();
            var orionLag = dataOrionXml.GetAllFromDatabase(mTestHelper.GetTestPath());

            return(orionLag.ToList());
        }
        private List<Lag> ReadAllOrionData(OrionTestHelper mTestHelper)
        {
            LagOppsettDataService dataOrionXml = new LagOppsettDataService();
            var orionLag = dataOrionXml.GetAllFromDatabase(mTestHelper.GetTestPath());

            return orionLag.ToList();
        }
Beispiel #3
0
        private void AssertResult(string[] leonFile, OrionTestHelper mTestHelper, string kmoallinitLeonTxt)
        {
            var lines = mTestHelper.ReadResultFile(kmoallinitLeonTxt);

            Assert.AreEqual(lines.Length, leonFile.Length);
            int idx = 0;

            while (idx < lines.Length)
            {
                var excpected = lines[idx].Split(new string[] { ";" }, StringSplitOptions.None);
                var actual    = leonFile[idx].Split(new string[] { ";" }, StringSplitOptions.None);
                Assert.AreEqual(excpected.Length, actual.Length, string.Format("Differnet len {0} {1} {2} {3}", excpected.Length, actual.Length, lines[idx], leonFile[idx]));
                int step = 0;
                while (step < excpected.Length)
                {
                    Assert.AreEqual(excpected[step], actual[step], string.Format("Element {0}", step));
                    step++;
                }

                idx++;
            }
        }
        private void AssertResult(string[] leonFile, OrionTestHelper mTestHelper, string kmoallinitLeonTxt)
        {
            var lines = mTestHelper.ReadResultFile(kmoallinitLeonTxt);

            Assert.AreEqual(lines.Length, leonFile.Length);
            int idx=0;
            while (idx < lines.Length)
            {
                var excpected = lines[idx].Split(new string[] { ";" }, StringSplitOptions.None);
                var actual = leonFile[idx].Split(new string[] { ";" }, StringSplitOptions.None);
                Assert.AreEqual(excpected.Length, actual.Length,string.Format("Differnet len {0} {1} {2} {3}", excpected.Length, actual.Length, lines[idx], leonFile[idx]));
                int step = 0;
                while (step < excpected.Length)
                {
                    Assert.AreEqual(excpected[step], actual[step], string.Format("Element {0}", step));
                    step++;
                }

                idx++;
            }

        }
 public void Inint()
  {
      m_testHelper = new OrionTestHelper(@"OrionFelt\OrionLag\Test\TestOrionLag.Unit\TestData\ConvertOrionLeonTests\Test1");
      m_convert = new ConvertOrionLeon();
      m_convert.InitConverter();
  }
 private List<SkytterResultat> InitiateOrionResults(OrionTestHelper help,string filename)
 {
     var lines = help.ReadResultFile(filename);
    
     return m_orionResultparser.ParseOrionResultOutputFormat(lines);
 }
Beispiel #7
0
 public void Inint()
 {
     m_testHelper = new OrionTestHelper(@"OrionFelt\OrionLag\Test\TestOrionLag.Unit\TestData\ConvertOrionLeonTests\Test1");
     m_convert    = new ConvertOrionLeon();
     m_convert.InitConverter();
 }
Beispiel #8
0
        private List <SkytterResultat> InitiateOrionResults(OrionTestHelper help, string filename)
        {
            var lines = help.ReadResultFile(filename);

            return(m_orionResultparser.ParseOrionResultOutputFormat(lines));
        }