public void CapabilitiesShouldReturnAppropriateProperties() { var capabilities = new RunSettingsArgumentProcessorCapabilities(); Assert.AreEqual("/Settings", capabilities.CommandName); Assert.AreEqual("--Settings|/Settings:<Settings File>" + Environment.NewLine + " Settings to use when running tests.", capabilities.HelpContentResourceName); Assert.AreEqual(HelpContentPriority.RunSettingsArgumentProcessorHelpPriority, capabilities.HelpPriority); Assert.AreEqual(false, capabilities.IsAction); Assert.AreEqual(ArgumentProcessorPriority.RunSettings, capabilities.Priority); Assert.AreEqual(false, capabilities.AllowMultiple); Assert.AreEqual(false, capabilities.AlwaysExecute); Assert.AreEqual(false, capabilities.IsSpecialCommand); }
public void CapabilitiesShouldReturnAppropriateProperties() { var capabilities = new RunSettingsArgumentProcessorCapabilities(); Assert.AreEqual("/Settings", capabilities.CommandName); var expected = "--Settings|/Settings:<Settings File>\r\n Settings to use when running tests."; Assert.AreEqual(expected.NormalizeLineEndings().ShowWhiteSpace(), capabilities.HelpContentResourceName.NormalizeLineEndings().ShowWhiteSpace()); Assert.AreEqual(HelpContentPriority.RunSettingsArgumentProcessorHelpPriority, capabilities.HelpPriority); Assert.IsFalse(capabilities.IsAction); Assert.AreEqual(ArgumentProcessorPriority.RunSettings, capabilities.Priority); Assert.IsFalse(capabilities.AllowMultiple); Assert.IsFalse(capabilities.AlwaysExecute); Assert.IsFalse(capabilities.IsSpecialCommand); }