public void ContainsStatementTest()
        {
            var cm = new CodeMemberMethod();
            cm.AddBlankLine();
            Assert.IsFalse(cm.ContainsStatement(typeof(bool)).Compile().Invoke());

            cm.WithReturnType<InfoApe>();
            Assert.IsFalse(cm.ContainsStatement(typeof(uint)).Compile().Invoke());
            Assert.IsTrue(cm.ContainsStatement(typeof(CodeSnippetStatement)).Compile().Invoke());
            Assert.IsFalse(cm.ContainsStatement<CodeStatement>().Compile().Invoke());
            Assert.IsTrue(cm.ContainsStatement<CodeSnippetStatement>().Compile().Invoke());
        }
 public void ContainsStatementOnEmptyStatementShouldThrow()
 {
     var cm = new CodeMemberMethod();
     Assert.Throws<AssertionException>(() => cm.ContainsStatement(typeof(bool)).Compile().Invoke());
 }