예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
 public void OnStarting()
 => _settings = new ManagedBlockSettings()
 {
     Ignore = false,
     Manage = false
 };
예제 #4
0
 public static void ShouldBe(this ManagedBlockSettings settings, ManagedBlockSettings expected)
 {
     settings.Manage.ShouldBe(expected.Manage);
     settings.Ignore.ShouldBe(expected.Ignore);
 }