Exemplo n.º 1
0
        public void SaveAndLoad_Work()
        {
            // save findings using new O2AssessmentSave_OunceV7 engine
            var savedFile = new O2AssessmentSave_OunceV7().save(Findings_Load);

            // check that it exists
            Assert.That(TestFile.fileExists(), "Couldn't find O2AssessmentSave_OunceV7 saved file");

            // check that we can load the saved file with 7x
            var o2Assessment = new O2AssessmentLoad_OunceV7_0().loadFile(savedFile);

            Assert.That(o2Assessment.notNull(), "O2AssessmentLoad_OunceV7_0 failed to load");

            // check that we CAN'T load the saved file with 6.1
            o2Assessment = new O2AssessmentLoad_OunceV6_1().loadFile(savedFile);
            Assert.That(o2Assessment.isNull(), "O2AssessmentLoad_OunceV6_1 failed to load");

            // check that we CAN'T load the saved file with 6.0
            o2Assessment = new O2AssessmentLoad_OunceV6().loadFile(savedFile);
            Assert.That(o2Assessment.isNull(), "O2AssessmentLoad_OunceV6_0 failed to load");
        }
Exemplo n.º 2
0
 public void IsTestFileOk()
 {
     Assert.That(TestFile.fileExists(), "Couldn't find test file");
     Assert.That(Findings_Load.size() > 0, "There where no findings loaded");
 }