public void CoordinatedShutdown_must_be_possible_to_parse_phases_from_config() { CoordinatedShutdown.PhasesFromConfig(ConfigurationFactory.ParseString(@" default-phase-timeout = 10s phases { a = {} b { depends-on = [a] timeout = 15s } c { depends-on = [a, b] recover = off } }")).Should() .Equal(new Dictionary <string, Phase>() { { "a", new Phase(ImmutableHashSet <string> .Empty, TimeSpan.FromSeconds(10), true) }, { "b", new Phase(ImmutableHashSet <string> .Empty.Add("a"), TimeSpan.FromSeconds(15), true) }, { "c", new Phase(ImmutableHashSet <string> .Empty.Add("a").Add("b"), TimeSpan.FromSeconds(10), false) }, }); }