Commit
This commit is contained in:
parent
8b61ca41fa
commit
17883e16e1
41 changed files with 3173 additions and 0 deletions
|
@ -0,0 +1,39 @@
|
|||
/***************************************************************************
|
||||
|
||||
Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
This code is licensed under the Visual Studio SDK license terms.
|
||||
THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
|
||||
ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
|
||||
IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
|
||||
PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
|
||||
|
||||
***************************************************************************/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Microsoft.VsSDK.UnitTestLibrary;
|
||||
using Microsoft.VisualStudio;
|
||||
using Microsoft.VisualStudio.Shell.Interop;
|
||||
|
||||
namespace VSPackageInstall_UnitTests.MyToolWindowTest
|
||||
{
|
||||
class WindowFrameMock
|
||||
{
|
||||
const string propertiesName = "properties";
|
||||
|
||||
private static GenericMockFactory frameFactory = null;
|
||||
|
||||
/// <summary>
|
||||
/// Return a IVsWindowFrame without any special implementation
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
internal static IVsWindowFrame GetBaseFrame()
|
||||
{
|
||||
if (frameFactory == null)
|
||||
frameFactory = new GenericMockFactory("WindowFrame", new Type[] { typeof(IVsWindowFrame), typeof(IVsWindowFrame2) });
|
||||
IVsWindowFrame frame = (IVsWindowFrame)frameFactory.GetInstance();
|
||||
return frame;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue