-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6060 from retailcoder/FakesUX
Adds parameter string names provider to Fakes API
- Loading branch information
Showing
50 changed files
with
1,292 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
107 changes: 107 additions & 0 deletions
107
Rubberduck.Main/ComClientLibrary/Abstract/UnitTesting/IParams.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
using System.ComponentModel; | ||
using System.Runtime.InteropServices; | ||
using Rubberduck.Resources.Registration; | ||
|
||
// ReSharper disable InconsistentNaming | ||
// The parameters on RD's public interfaces are following VBA conventions not C# conventions to stop the | ||
// obnoxious "Can I haz all identifiers with the same casing" behavior of the VBE. | ||
|
||
namespace Rubberduck.UnitTesting | ||
{ | ||
[ | ||
ComVisible(true), | ||
Guid(RubberduckGuid.IParamsGuid), | ||
InterfaceType(ComInterfaceType.InterfaceIsDual), | ||
EditorBrowsable(EditorBrowsableState.Always) | ||
] | ||
public interface IParams | ||
{ | ||
[DispId(1)] | ||
[Description("Gets an interface exposing the parameter names for the 'VBA.Interaction.MsgBox' function.")] | ||
IMsgBoxParams MsgBox { get; } | ||
|
||
[DispId(2)] | ||
[Description("Gets an interface exposing the parameter names for the 'VBA.Interaction.InputBox' function.")] | ||
IInputBoxParams InputBox { get; } | ||
|
||
[DispId(3)] | ||
[Description("Gets an interface exposing the parameter names for the 'VBA.Interaction.Environ' function.")] | ||
IEnvironParams Environ { get; } | ||
|
||
[DispId(4)] | ||
[Description("Gets an interface exposing the parameter names for the 'VBA.Interaction.Shell' function.")] | ||
IShellParams Shell { get; } | ||
|
||
[DispId(5)] | ||
[Description("Gets an interface exposing the parameter names for the 'VBA.Interaction.SendKeys' function.")] | ||
ISendKeysParams SendKeys { get; } | ||
|
||
[DispId(6)] | ||
[Description("Gets an interface exposing the parameter names for the 'VBA.FileSystem.Kill' function.")] | ||
IKillParams Kill { get; } | ||
|
||
[DispId(7)] | ||
[Description("Gets an interface exposing the parameter names for the 'VBA.FileSystem.FileCopy' statement.")] | ||
IFileCopyParams FileCopy { get; } | ||
|
||
[DispId(8)] | ||
[Description("Gets an interface exposing the parameter names for the 'VBA.FileSystem.FreeFile' function.")] | ||
IFreeFileParams FreeFile { get; } | ||
|
||
[DispId(9)] | ||
[Description("Gets an interface exposing the parameter names for the 'VBA.FileSystem.GetAttr' function.")] | ||
IGetAttrParams GetAttr { get; } | ||
|
||
[DispId(10)] | ||
[Description("Gets an interface exposing the parameter names for the 'VBA.FileSystem.SetAttr' statement.")] | ||
ISetAttrParams SetAttr { get; } | ||
|
||
[DispId(11)] | ||
[Description("Gets an interface exposing the parameter names for the 'VBA.FileSystem.FileLen' function.")] | ||
IFileLenParams FileLen { get; } | ||
|
||
[DispId(12)] | ||
[Description("Gets an interface exposing the parameter names for the 'VBA.FileSystem.FileDateTime' function.")] | ||
IFileDateTimeParams FileDateTime { get; } | ||
|
||
[DispId(13)] | ||
[Description("Gets an interface exposing the parameter names for the 'VBA.FileSystem.Dir' function.")] | ||
IDirParams Dir { get; } | ||
|
||
[DispId(14)] | ||
[Description("Gets an interface exposing the parameter names for the 'VBA.FileSystem.CurDir' function.")] | ||
ICurDirParams CurDir { get; } | ||
|
||
[DispId(15)] | ||
[Description("Gets an interface exposing the parameter names for the 'VBA.FileSystem.ChDir' statement.")] | ||
IChDirParams ChDir { get; } | ||
|
||
[DispId(16)] | ||
[Description("Gets an interface exposing the parameter names for the 'VBA.FileSystem.ChDrive' statement.")] | ||
IChDriveParams ChDrive { get; } | ||
|
||
[DispId(17)] | ||
[Description("Gets an interface exposing the parameter names for the 'VBA.FileSystem.MkDir' statement.")] | ||
IMkDirParams MkDir { get; } | ||
|
||
[DispId(18)] | ||
[Description("Gets an interface exposing the parameter names for the 'VBA.FileSystem.RmDir' statement.")] | ||
IRmDirParams RmDir { get; } | ||
|
||
[DispId(19)] | ||
[Description("Gets an interface exposing the parameter names for the 'VBA.Interaction.SaveSetting' statement.")] | ||
ISaveSettingParams SaveSetting { get; } | ||
|
||
[DispId(20)] | ||
[Description("Gets an interface exposing the parameter names for the 'VBA.Interaction.DeleteSetting' statement.")] | ||
IDeleteSettingParams DeleteSetting { get; } | ||
|
||
[DispId(21)] | ||
[Description("Gets an interface exposing the parameter names for the 'VBA.Math.Randomize' statement.")] | ||
IRandomizeParams Randomize { get; } | ||
|
||
[DispId(22)] | ||
[Description("Gets an interface exposing the parameter names for the 'VBA.Math.Rnd' function.")] | ||
IRndParams Rnd { get; } | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
Rubberduck.Main/ComClientLibrary/Abstract/UnitTesting/ParameterInfo/IChDirParams.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.ComponentModel; | ||
using System.Runtime.InteropServices; | ||
using Rubberduck.Resources.Registration; | ||
|
||
// ReSharper disable InconsistentNaming | ||
// The parameters on RD's public interfaces are following VBA conventions not C# conventions to stop the | ||
// obnoxious "Can I haz all identifiers with the same casing" behavior of the VBE. | ||
|
||
namespace Rubberduck.UnitTesting | ||
{ | ||
[ | ||
ComVisible(true), | ||
Guid(RubberduckGuid.ParamsChDirGuid), | ||
InterfaceType(ComInterfaceType.InterfaceIsDual), | ||
EditorBrowsable(EditorBrowsableState.Always), | ||
] | ||
public interface IChDirParams | ||
{ | ||
/// <summary> | ||
/// Gets the name of the 'Path' parameter. | ||
/// </summary> | ||
[DispId(1)] | ||
[Description("Gets the name of the 'Path' parameter.")] | ||
string Path { get; } | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
Rubberduck.Main/ComClientLibrary/Abstract/UnitTesting/ParameterInfo/IChDriveParams.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.ComponentModel; | ||
using System.Runtime.InteropServices; | ||
using Rubberduck.Resources.Registration; | ||
|
||
// ReSharper disable InconsistentNaming | ||
// The parameters on RD's public interfaces are following VBA conventions not C# conventions to stop the | ||
// obnoxious "Can I haz all identifiers with the same casing" behavior of the VBE. | ||
|
||
namespace Rubberduck.UnitTesting | ||
{ | ||
[ | ||
ComVisible(true), | ||
Guid(RubberduckGuid.ParamsChDriveGuid), | ||
InterfaceType(ComInterfaceType.InterfaceIsDual), | ||
EditorBrowsable(EditorBrowsableState.Always), | ||
] | ||
public interface IChDriveParams | ||
{ | ||
/// <summary> | ||
/// Gets the name of the 'Drive' parameter. | ||
/// </summary> | ||
[DispId(1)] | ||
[Description("Gets the name of the 'Drive' parameter.")] | ||
string Drive { get; } | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
Rubberduck.Main/ComClientLibrary/Abstract/UnitTesting/ParameterInfo/ICurDirParams.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.ComponentModel; | ||
using System.Runtime.InteropServices; | ||
using Rubberduck.Resources.Registration; | ||
|
||
// ReSharper disable InconsistentNaming | ||
// The parameters on RD's public interfaces are following VBA conventions not C# conventions to stop the | ||
// obnoxious "Can I haz all identifiers with the same casing" behavior of the VBE. | ||
|
||
namespace Rubberduck.UnitTesting | ||
{ | ||
[ | ||
ComVisible(true), | ||
Guid(RubberduckGuid.ParamsCurDirGuid), | ||
InterfaceType(ComInterfaceType.InterfaceIsDual), | ||
EditorBrowsable(EditorBrowsableState.Always), | ||
] | ||
public interface ICurDirParams | ||
{ | ||
/// <summary> | ||
/// Gets the name of the 'Drive' optional parameter. | ||
/// </summary> | ||
[DispId(1)] | ||
[Description("Gets the name of the 'Drive' optional parameter.")] | ||
string Drive { get; } | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
Rubberduck.Main/ComClientLibrary/Abstract/UnitTesting/ParameterInfo/IDeleteSettingParams.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using System.ComponentModel; | ||
using System.Runtime.InteropServices; | ||
using Rubberduck.Resources.Registration; | ||
|
||
// ReSharper disable InconsistentNaming | ||
// The parameters on RD's public interfaces are following VBA conventions not C# conventions to stop the | ||
// obnoxious "Can I haz all identifiers with the same casing" behavior of the VBE. | ||
|
||
namespace Rubberduck.UnitTesting | ||
{ | ||
[ | ||
ComVisible(true), | ||
Guid(RubberduckGuid.ParamsDeleteSettingGuid), | ||
InterfaceType(ComInterfaceType.InterfaceIsDual), | ||
EditorBrowsable(EditorBrowsableState.Always), | ||
] | ||
public interface IDeleteSettingParams | ||
{ | ||
/// <summary> | ||
/// Gets the name of the 'AppName' parameter. | ||
/// </summary> | ||
[DispId(1)] | ||
[Description("Gets the name of the 'AppName' parameter.")] | ||
string AppName { get; } | ||
|
||
/// <summary> | ||
/// Gets the name of the 'Section' parameter. | ||
/// </summary> | ||
[DispId(2)] | ||
[Description("Gets the name of the 'Section' parameter.")] | ||
string Section { get; } | ||
|
||
/// <summary> | ||
/// Gets the name of the 'Key' parameter. | ||
/// </summary> | ||
[DispId(3)] | ||
[Description("Gets the name of the 'Key' parameter.")] | ||
string Key { get; } | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
Rubberduck.Main/ComClientLibrary/Abstract/UnitTesting/ParameterInfo/IDirParams.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System.ComponentModel; | ||
using System.Runtime.InteropServices; | ||
using Rubberduck.Resources.Registration; | ||
|
||
// ReSharper disable InconsistentNaming | ||
// The parameters on RD's public interfaces are following VBA conventions not C# conventions to stop the | ||
// obnoxious "Can I haz all identifiers with the same casing" behavior of the VBE. | ||
|
||
namespace Rubberduck.UnitTesting | ||
{ | ||
[ | ||
ComVisible(true), | ||
Guid(RubberduckGuid.ParamsDirGuid), | ||
InterfaceType(ComInterfaceType.InterfaceIsDual), | ||
EditorBrowsable(EditorBrowsableState.Always), | ||
] | ||
public interface IDirParams | ||
{ | ||
/// <summary> | ||
/// Gets the name of the 'PathName' optional parameter. | ||
/// </summary> | ||
[DispId(1)] | ||
[Description("Gets the name of the 'PathName' optional parameter.")] | ||
string PathName { get; } | ||
|
||
/// <summary> | ||
/// Gets the name of the 'Attributes' optional parameter. | ||
/// </summary> | ||
[DispId(2)] | ||
[Description("Gets the name of the 'Attributes' optional parameter.")] | ||
string Attributes { get; } | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
Rubberduck.Main/ComClientLibrary/Abstract/UnitTesting/ParameterInfo/IEnvironParams.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System.ComponentModel; | ||
using System.Runtime.InteropServices; | ||
using Rubberduck.Resources.Registration; | ||
|
||
// ReSharper disable InconsistentNaming | ||
// The parameters on RD's public interfaces are following VBA conventions not C# conventions to stop the | ||
// obnoxious "Can I haz all identifiers with the same casing" behavior of the VBE. | ||
|
||
namespace Rubberduck.UnitTesting | ||
{ | ||
[ | ||
ComVisible(true), | ||
Guid(RubberduckGuid.ParamsEnvironGuid), | ||
InterfaceType(ComInterfaceType.InterfaceIsDual), | ||
EditorBrowsable(EditorBrowsableState.Always), | ||
] | ||
public interface IEnvironParams | ||
{ | ||
/// <summary> | ||
/// Gets the name of the 'EnvString' optional parameter. | ||
/// </summary> | ||
[DispId(1)] | ||
[Description("Gets the name of the 'EnvString' optional parameter.")] | ||
string EnvString { get; } | ||
|
||
/// <summary> | ||
/// Gets the name of the 'Number' optional parameter. | ||
/// </summary> | ||
[DispId(2)] | ||
[Description("Gets the name of the 'Number' optional parameter.")] | ||
string Number { get; } | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
Rubberduck.Main/ComClientLibrary/Abstract/UnitTesting/ParameterInfo/IFileCopyParams.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System.ComponentModel; | ||
using System.Runtime.InteropServices; | ||
using Rubberduck.Resources.Registration; | ||
|
||
// ReSharper disable InconsistentNaming | ||
// The parameters on RD's public interfaces are following VBA conventions not C# conventions to stop the | ||
// obnoxious "Can I haz all identifiers with the same casing" behavior of the VBE. | ||
|
||
namespace Rubberduck.UnitTesting | ||
{ | ||
[ | ||
ComVisible(true), | ||
Guid(RubberduckGuid.ParamsFileCopyGuid), | ||
InterfaceType(ComInterfaceType.InterfaceIsDual), | ||
EditorBrowsable(EditorBrowsableState.Always), | ||
] | ||
public interface IFileCopyParams | ||
{ | ||
/// <summary> | ||
/// Gets the name of the 'Source' parameter. | ||
/// </summary> | ||
[DispId(1)] | ||
[Description("Gets the name of the 'Source' parameter.")] | ||
string Source { get; } | ||
|
||
/// <summary> | ||
/// Gets the name of the 'Destination' parameter. | ||
/// </summary> | ||
[DispId(2)] | ||
[Description("Gets the name of the 'Destination' parameter.")] | ||
string Destination { get; } | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
Rubberduck.Main/ComClientLibrary/Abstract/UnitTesting/ParameterInfo/IFileDateTimeParams.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.ComponentModel; | ||
using System.Runtime.InteropServices; | ||
using Rubberduck.Resources.Registration; | ||
|
||
// ReSharper disable InconsistentNaming | ||
// The parameters on RD's public interfaces are following VBA conventions not C# conventions to stop the | ||
// obnoxious "Can I haz all identifiers with the same casing" behavior of the VBE. | ||
|
||
namespace Rubberduck.UnitTesting | ||
{ | ||
[ | ||
ComVisible(true), | ||
Guid(RubberduckGuid.ParamsFileDateTimeGuid), | ||
InterfaceType(ComInterfaceType.InterfaceIsDual), | ||
EditorBrowsable(EditorBrowsableState.Always), | ||
] | ||
public interface IFileDateTimeParams | ||
{ | ||
/// <summary> | ||
/// Gets the name of the 'PathName' parameter. | ||
/// </summary> | ||
[DispId(1)] | ||
[Description("Gets the name of the 'PathName' parameter.")] | ||
string PathName { get; } | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
Rubberduck.Main/ComClientLibrary/Abstract/UnitTesting/ParameterInfo/IFileLenParams.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
using System.ComponentModel; | ||
using System.Runtime.InteropServices; | ||
using Rubberduck.Resources.Registration; | ||
|
||
// ReSharper disable InconsistentNaming | ||
// The parameters on RD's public interfaces are following VBA conventions not C# conventions to stop the | ||
// obnoxious "Can I haz all identifiers with the same casing" behavior of the VBE. | ||
|
||
namespace Rubberduck.UnitTesting | ||
{ | ||
[ | ||
ComVisible(true), | ||
Guid(RubberduckGuid.ParamsFileLenGuid), | ||
InterfaceType(ComInterfaceType.InterfaceIsDual), | ||
EditorBrowsable(EditorBrowsableState.Always), | ||
] | ||
public interface IFileLenParams | ||
{ | ||
/// <summary> | ||
/// Gets the name of the 'PathName' parameter. | ||
/// </summary> | ||
[DispId(1)] | ||
[Description("Gets the name of the 'PathName' parameter.")] | ||
string PathName { get; } | ||
} | ||
} |
Oops, something went wrong.