public void TestConvolution() { ConvolutionViewModel testModel = new ConvolutionViewModel(); testModel.FilterFile = @"filterFile.csv"; testModel.SignalFile = @"signalFile.csv"; bool convolveResult = testModel.Convolve().Result; Assert.IsTrue(convolveResult); }
private void UserControl_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e) { bool visibility = (bool)e.NewValue; if (visibility == true) { ConvolutionViewModel model = DataContext as ConvolutionViewModel; model?.PlotData(); } }