AutoMoq.Tests.CallingCreateTwice.can_create_parent_object_when_setInstance_is_called_on_child C# (CSharp) Method

can_create_parent_object_when_setInstance_is_called_on_child() private method

        public void can_create_parent_object_when_setInstance_is_called_on_child()
        {
            var autoMoq = new AutoMoqer();

            // the second line works... seems to be an issue calling Create twice?
            var child = autoMoq.Create<Child>();
            //var child = new Mock<IChild>().Object;
            autoMoq.SetInstance<IChild>(child);

            var parent = autoMoq.Create<Parent>();
            Assert.IsNotNull(parent);
        }