public void FunctionProlog_ParseWithNullAssemblyToStartFrom_ThrowsNullArgumentException()
        {
            //arrange
            var functionPrologParser = new FunctionPrologParser();

            //act
            Exception ex = null;
            var       isExceptionThrown = ExceptionTesterUtil.CheckIfExceptionIsThrown <ArgumentNullException>(
                () => functionPrologParser.Parse(null, 0),
                ref ex);

            //assert
            Assert.IsTrue(isExceptionThrown, "Parsing ");
        }
        public void FunctionProlog_ParseWithAssemblyOutOfRange_ThrowsNullArgumentException()
        {
            //arrange
            var functionPrologParser = new FunctionPrologParser();

            //act
            Exception ex = null;
            var       isExceptionThrown = ExceptionTesterUtil.CheckIfExceptionIsThrown <ArgumentOutOfRangeException>(
                () => functionPrologParser.Parse(new DummyInstruction(SharpDisasm.Udis86.ud_mnemonic_code.UD_Iaddsd)
            {
                Offset = 1
            },
                                                 0),
                ref ex);

            //assert
            Assert.IsTrue(isExceptionThrown, "Parsing prolog shoulf throw ArgumentNullException");
        }