Tests.Tests.TestReturnTextWarning C# (CSharp) Method

TestReturnTextWarning() private method

private TestReturnTextWarning ( ) : void
return void
        public void TestReturnTextWarning()
        {
            InkParser parser = new InkParser("== test ==\n return something",
                null,
                (string message, ErrorType errorType) =>
                {
                    if (errorType == ErrorType.Warning)
                    {
                        throw new TestWarningException();
                    }
                });

            Assert.Throws<TestWarningException>(() => parser.Parse());
        }
Tests