public void GetProcessedResult_Should_ThrowArgumentException_When_TokenHasEmptyContent()
        {
            var token = new MdToken("", "NONE", "NONE");

            Following.Code(() => processor.GetProcessedResult(token)).Should().Throw <ArgumentException>();
        }
 public void GetProcessedResult_Should_ThrowArgumentNullException_When_TokenIsNull()
 {
     Following.Code(() => processor.GetProcessedResult(null)).Should().Throw <ArgumentNullException>();
 }
Example #3
0
 public void MakeTokens_Should_ThrowArgumentException_When_EmptyText()
 {
     Following.Code(() => tokenizer.MakeTokens("").First()).Should().Throw <ArgumentException>();
 }
Example #4
0
 public void Render_Should_ThrowInvalidOperationException_When_NoMdProcessorWasSet()
 {
     Following.Code(() => md.RenderUsingCustomProcessor("text", null)).Should().Throw <ArgumentNullException>();
 }
Example #5
0
 public void MakeTokens_Should_ThrowArgumentNullException_When_ArgumentIsNull()
 {
     Following.Code(() => tokenizer.MakeTokens(null).First()).Should().Throw <ArgumentNullException>();
 }