Exemple #1
0
        public override void MainSetup()
        {
            base.MainSetup();

            this.AssertCodeBehindFileWasNotGenerated();

            //Add Normal Class
            this.AddMockSourceFile(s => s.Projects[0], MockSourceFile.CreateDefaultFile());
        }
Exemple #2
0
        public override void MainSetup()
        {
            base.MainSetup();

            _MockSolution.Projects.Add(
                new MockProject
            {
                MockSourceFiles =
                {
                    MockSourceFile.CreateDefaultFile()
                }
            });

            //Simulate Solution Opening event
            EventProxy.FireOnSolutionOpening(this, new EventArgs());

            //Simulate Item Saved
            EventProxy.FireOnProjectItemSaved(this,
                                              new ProjectItemSavedEventArgs
            {
                ClassFullPath   = _MockSolution.Projects[0].MockSourceFiles[0].FileName,
                ProjectFullPath = _MockSolution.Projects[0].FileName
            });
        }