public void BadValue() { var e = ExceptionUtilities.GetException( () => WindowsRegistryAssert.HasDword("Console", "TrimLeadingZeros", 1984, "This should not be this value")); Approvals.Verify(e.Message); }
public void MissingValue() { var e = ExceptionUtilities.GetException( () => WindowsRegistryAssert.HasDword("Console", "IMadeThisUp", 1, "This Value is gone")); Approvals.Verify(e.Message); }
AssertNoBindingErrorsTraceListener(SourceLevels level) { WindowsRegistryAssert.HasDword(@"Software\Microsoft\Tracing\WPF", "ManagedTracing", 1, "You need to add this key to your registry for Wpf report Binding Errors. \n" + RegEditText); PresentationTraceSources.DataBindingSource.Listeners.Add(this); PresentationTraceSources.DataBindingSource.Switch.Level = level; }
public void Success() { WindowsRegistryAssert.HasDword("Console", "TrimLeadingZeros", 0, "You should probably Have This"); }