public void UnPopulatedConfigIsNotValid() { var raw = new RawConfiguration(); var settings = SettingsParser.ParseToSettings(raw); Assert.That(settings, Is.Null); }
public void ValidOrgConfigIsParsed() { var raw = ValidOrgSettings(); var settings = SettingsParser.ParseToSettings(raw); AssertSettingsNotNull(settings); Assert.That(settings.ModalSettings.Mode, Is.EqualTo(GithubMode.Organisation)); Assert.That(settings.UserSettings.AllowedChange, Is.EqualTo(VersionChange.Major)); Assert.That(settings.UserSettings.LogLevel, Is.EqualTo(LogLevel.Info)); Assert.That(settings.UserSettings.ForkMode, Is.EqualTo(ForkMode.PreferFork)); }