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); }
public void UseMumbleLinkFile(IMumbleLinkFile mumbleLinkFile) { this.MumbleLinkFile = mumbleLinkFile; this.MumbleLinkFile.PropertyChanged += MumbleLinkFile_PropertyChanged; }
public void UseMumbleLinkFile(IMumbleLinkFile mumbleLinkFile) { this.MumbleLinkFile = mumbleLinkFile; }