Пример #1
0
        public void Prld_Partial_UserProc()
        {
            var sProject = new Project_v4
            {
                ArchitectureName = "testArch",
                PlatformName     = "testOS",
                Inputs           =
                {
                    new DecompilerInput_v4
                    {
                        User = new UserData_v4
                        {
                            Procedures =
                            {
                                new Procedure_v1
                                {
                                    Address   = "00123400",
                                    Decompile = false,
                                }
                            }
                        }
                    }
                }
            };

            var ldr = mockFactory.CreateLoader();

            Given_TestArch();
            Given_TestOS();
            var addrNav = mr.Stub <ICodeLocation>();

            listener.Stub(l => l.CreateAddressNavigator(null, null))
            .IgnoreArguments()
            .Return(addrNav);
            listener.Expect(l => l.Warn(null, null, null))
            .IgnoreArguments();
            mr.ReplayAll();

            var prld = new ProjectLoader(sc, ldr, listener);

            prld.LoadProject("foo.dcproject", sProject);

            mr.VerifyAll();
        }