public void DictionaryWaveformMatchesLoaded() { LoopFiles((fileName, waveform, filePath, fileConfig) => { SG.DownloadWaveform(sim, waveform); Waveform newWaveform = SG.GetWaveformParametersByName(sim, waveform.Name); newWaveform.Should().BeEquivalentTo(waveform, options => { //Actual waveform data is not returned. Hence, exclude it from comparison options.Excluding(w => w.Data); //Ensure each member is compared; otherwise, it will just compare the two structs as whole values options.ComparingByMembers <Waveform>(); return(options); }, $"of loading file \"{fileName}\""); }); }