Esempio n. 1
0
        public void PreventWriteTestMore()
        {
            var recorder = new Recorder <stAllTypes, PlainstAllTypes>(connector.MAIN.InheritanceRw.level_0, RecorderModeEnum.Graver, 100).Actor;

            recorder.Begin(SquashTestFile);


            for (int i = 0; i < 254; i++)
            {
                if (i % 10 == 0)
                {
                    connector.MAIN.InheritanceRw.level_0.STRING_val.Cyclic = i.ToString();
                    connector.MAIN.InheritanceRw.level_0.Write();
                }

                recorder.Act();
            }

            Assert.Throws <InsufficientNumberOfFramesException>(() => recorder.End(SquashTestFile));
        }