public void UseMumbleLinkFile()
        {
            MumbleLinkManager manager = new MumbleLinkManager();

            manager.UseMumbleLinkFile <MumbleLinkFile>();
            Assert.IsInstanceOf <MumbleLinkFile>(manager.MumbleLinkFile);

            manager = new MumbleLinkManager();
            manager.UseMumbleLinkFile(new MumbleLinkFile());
            Assert.IsInstanceOf <MumbleLinkFile>(manager.MumbleLinkFile);
        }
        public void UpdateMumbleLinkFile()
        {
            MumbleLinkManager    manager   = new MumbleLinkManager();
            IMumbleLinkConnector connector = Substitute.For <IMumbleLinkConnector>();
            IMumbleLinkFile      file      = Substitute.For <IMumbleLinkFile>();

            LinkedMem linkedMem = new LinkedMem()
            {
                uiTick = 1
            };

            connector.ReadMemoryMappedFile().Returns(linkedMem);
            manager.UseMumbleLinkConnector(connector);
            manager.UseMumbleLinkFile(file);

            manager.Check();
            file.Received(1).SetDataFromLinkedMem(linkedMem);
        }