public void ContentEditor_CreateContent_Method_No_Parameters_Simple_Call_Test() { // Arrange var contentEditor = new ContentEditor(); // Act, Assert Should.Throw <Exception>(actual: () => contentEditor.CreateContent()); }
public void ContentEditor_CreateContent_Method_No_Parameters_2_Calls_Test() { // Arrange var contentEditor = new ContentEditor(); // Act Func <int> createContent = () => contentEditor.CreateContent(); // Assert Should.Throw <Exception>(actual: () => createContent.Invoke()); }