public void assert_happy_path_with_fubudocs() { var input = new AddInput { Profile = "fubudocs", ProjectName = "Right.Docs" }; input.AssertValid(); }
public void assert_failure_if_fubudocs_and_project_name_does_not_end_with_docs() { var input = new AddInput { Profile = "fubudocs", ProjectName = "Wrong" }; Exception <ApplicationException> .ShouldBeThrownBy(() => { input.AssertValid(); }) .Message.ShouldContain("Any FubuDocs project must be named with the '.Docs' suffix"); }
public void assert_failure_if_fubudocs_and_project_name_does_not_end_with_docs() { var input = new AddInput { Profile = "fubudocs", ProjectName = "Wrong" }; Exception<ApplicationException>.ShouldBeThrownBy(() => { input.AssertValid(); }) .Message.ShouldContain("Any FubuDocs project must be named with the '.Docs' suffix"); }