public void OnCompleted_Always_DoesNothing( bool ignoreBatteryBlocks, bool ignoreBeacons, bool ignoreGasGenerators, bool ignoreGasTanks, bool ignoreGyros, bool ignoreLandingGears, bool ignoreLightingBlocks, bool ignoreRadioAntennae, bool ignoreReactors, bool ignoreThrusters) { var uut = new DockingManagerSettingsProvider(); var settings = new DockingManagerSettings() { IgnoreBatteryBlocks = ignoreBatteryBlocks, IgnoreBeacons = ignoreBeacons, IgnoreGasGenerators = ignoreGasGenerators, IgnoreGasTanks = ignoreGasTanks, IgnoreGyros = ignoreGyros, IgnoreLandingGears = ignoreLandingGears, IgnoreLightingBlocks = ignoreLightingBlocks, IgnoreRadioAntennae = ignoreRadioAntennae, IgnoreReactors = ignoreReactors, IgnoreThrusters = ignoreThrusters }; uut.OnCompleted(); uut.Settings.ShouldBe(settings); }
public static void ShouldBe(this DockingManagerSettings settings, DockingManagerSettings expected) { settings.IgnoreBatteryBlocks.ShouldBe(settings.IgnoreBatteryBlocks); settings.IgnoreBeacons.ShouldBe(settings.IgnoreBeacons); settings.IgnoreGasGenerators.ShouldBe(settings.IgnoreGasGenerators); settings.IgnoreGasTanks.ShouldBe(settings.IgnoreGasTanks); settings.IgnoreGyros.ShouldBe(settings.IgnoreGyros); settings.IgnoreLandingGears.ShouldBe(settings.IgnoreLandingGears); settings.IgnoreLightingBlocks.ShouldBe(settings.IgnoreLightingBlocks); settings.IgnoreRadioAntennae.ShouldBe(settings.IgnoreRadioAntennae); settings.IgnoreReactors.ShouldBe(settings.IgnoreReactors); settings.IgnoreThrusters.ShouldBe(settings.IgnoreThrusters); }
public void OnStarting() { _settings = new DockingManagerSettings() { IgnoreBatteryBlocks = false, IgnoreBeacons = false, IgnoreGasGenerators = false, IgnoreGasTanks = false, IgnoreGyros = false, IgnoreLandingGears = false, IgnoreLightingBlocks = false, IgnoreRadioAntennae = false, IgnoreReactors = false, IgnoreThrusters = false }; }