public void Generate_ZeroBounds_ThrowsException() { TestClassWithEmptyHelpAttributes instance = new TestClassWithEmptyHelpAttributes(); HelpProcessor <TestClassWithEmptyHelpAttributes> processor = new HelpProcessor <TestClassWithEmptyHelpAttributes>(instance); Assert.Throws <HelpGeneratorException>(() => { processor.Generate(0); }); }
public void Generate_TestClassWithEmptyHelpAttributes_ResultIsEmpty() { TestClassWithEmptyHelpAttributes instance = new TestClassWithEmptyHelpAttributes(); HelpProcessor <TestClassWithEmptyHelpAttributes> processor = new HelpProcessor <TestClassWithEmptyHelpAttributes>(instance); processor.Generate(); Assert.AreEqual(processor.Results, String.Empty); }