public CodeClass MockCodeClass <T>(Project project = null) { if (project == null) { project = _solutionManager.Object.DefaultProject; } var mockCodeClass = MockCodeClassBuilder.BuildMockCodeClass(typeof(T), _projectTypeLocator, project); _projectTypeLocator.Setup(x => x.FindTypes(project, mockCodeClass.Name)).Returns(new[] { (CodeType)mockCodeClass }); return(mockCodeClass); }
public string MockCodeClass <T>() { return(MockCodeClassBuilder.BuildMockCodeClass(typeof(T), _projectTypeLocator, _solutionManager.Object.DefaultProject).Name); }