Пример #1
0
        public void UseMumbleLinkFile()
        {
            IMumbleLinkFile mumbleLinkFile = Substitute.For <IMumbleLinkFile>();

            this.scriptsManager.UseMumbleLinkFile(mumbleLinkFile);
            Assert.AreSame(mumbleLinkFile, this.scriptsManager.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);
        }
Пример #3
0
 public void UseMumbleLinkFile(IMumbleLinkFile mumbleLinkFile)
 {
     this.MumbleLinkFile = mumbleLinkFile;
     this.MumbleLinkFile.PropertyChanged += MumbleLinkFile_PropertyChanged;
 }
Пример #4
0
 public void UseMumbleLinkFile(IMumbleLinkFile mumbleLinkFile)
 {
     this.MumbleLinkFile = mumbleLinkFile;
 }