public void Settings_Always_SavesValue(bool managed, bool ignore) { var uut = new ManagedBlockSettingsProvider(); var settings = new ManagedBlockSettings() { Manage = managed, Ignore = ignore }; uut.Settings = settings; uut.Settings.ShouldBe(settings); }
public void OnCompleted_Always_DoesNothing(bool ignore, bool manage) { var uut = new ManagedBlockSettingsProvider(); var settings = new ManagedBlockSettings() { Ignore = ignore, Manage = manage }; uut.Settings = settings; uut.OnCompleted(); uut.Settings.ShouldBe(settings); }
public void OnStarting() => _settings = new ManagedBlockSettings() { Ignore = false, Manage = false };
public static void ShouldBe(this ManagedBlockSettings settings, ManagedBlockSettings expected) { settings.Manage.ShouldBe(expected.Manage); settings.Ignore.ShouldBe(expected.Ignore); }