public void TestSetSingleChannelFM() { Message call = new Message(); call.Add(selectChannelZero); call.Add(setTwoLevel); call.Add(selectFrequencyModulation); call.Add(setFreqTuningWord1MHz); call.Add(setChanWordOne2MHz); Expect.Once.On(mockMicrocontroller).Method("SendDataToEP2").With(call.ToArray()); dds.SetModulation(0, 2, "fm", 1e6, 2e6); mocks.VerifyAllExpectationsHaveBeenMet(); }
private void button1_Click(object sender, EventArgs e) { AD9958 selectedDDS = ddsList[deviceListBox.SelectedIndex]; ModulationSetting setting = modulationUserControl1.ModulationSetting; selectedDDS.SetModulation(setting.Channel, setting.Levels, setting.Mode, setting.ChannelWords.ToArray()); }