Exemple #1
0
        public void DisposeZLM_Works()
        {
            var zlm    = new ZLM(false, false, false);
            var zlmrpc = new ZLMRPC(zlm);

            //act
            zlmrpc.DisposeZLM();

            //assert
            Assert.That(zlm.Zones, Is.Null);
            Assert.That(zlm.ProgramSets, Is.Null);

            zlmrpc.Dispose();
        }
Exemple #2
0
        public void CreateZLM_Works()
        {
            var zlm    = new ZLM(false, false, false);
            var zlmrpc = new ZLMRPC(zlm);

            Assert.That(Container.ZLM, Is.Null);
            zlmrpc.DisposeZLM();

            //act
            zlmrpc.CreateZLM();

            //assert
            Assert.That(Container.ZLM, Is.Not.Null);

            zlmrpc.Dispose();
        }