chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
0 votes
    [TestClass]
    public class Foo
    {
        public static void Bar()
        {
        }

        [TestCleanup]
        public void TestCleanup()
        {
            MockManager.ClearAll();
        }

        [TestInitialize]
        public void TestInitialize()
        {
            MockManager.Init();
        }

        [TestMethod]
        public void SimpleCode_RunIt_StackOverflowException()
        {
            using (RecordExpectations recorder = new RecordExpectations())
            {
                Foo.Bar();

                recorder.Throw(
                    new SoapException());
            }
        }
    }


StackOverflowException when leave recording block. If I'll define SoapException outside recording block - test pass.
asked by tom3m (9.7k points)

1 Answer

0 votes
Hi,

This is indeed a bug :oops: . Thanks for reporting it.

We'll keep you updated on when it's fixed.

Thanks,
answered by gilz (14.5k points)
...