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>();
 }
Esempio n. 3
0
 public void MakeTokens_Should_ThrowArgumentException_When_EmptyText()
 {
     Following.Code(() => tokenizer.MakeTokens("").First()).Should().Throw <ArgumentException>();
 }
Esempio n. 4
0
 public void Render_Should_ThrowInvalidOperationException_When_NoMdProcessorWasSet()
 {
     Following.Code(() => md.RenderUsingCustomProcessor("text", null)).Should().Throw <ArgumentNullException>();
 }
Esempio n. 5
0
 public void MakeTokens_Should_ThrowArgumentNullException_When_ArgumentIsNull()
 {
     Following.Code(() => tokenizer.MakeTokens(null).First()).Should().Throw <ArgumentNullException>();
 }