Skip to content

Commit 6a49b49

Browse files
Repo reorg, added dpm spec.
1 parent e9099dc commit 6a49b49

31 files changed

+1760
-1724
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
###################
2424
/Win32
2525
/Win64
26+
/Tests/Win32
27+
/Tests/Win64
28+
/Examples/Win32
29+
/Examples/Win64
2630

2731
Build/TestAndBuild.fb7lck
2832
*.fbl7

DUnitXML

Submodule DUnitXML deleted from e446bfb

Delphi.Mocks.dspec

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
{
2+
"metadata": {
3+
"id": "Delphi.Mocks",
4+
"version": "0.0.2",
5+
"description": "Simple mocking framework for Delphi XE2 or later.",
6+
"authors": "Vincent Parrett",
7+
"projectUrl": "https://github.com/VSoftTechnologies/Delphi-Mocks",
8+
"license": "Apache-2.0",
9+
"copyright": "Vincent Parrett and contributors",
10+
"tags": "mocking unittesting"
11+
},
12+
"targetPlatforms": [
13+
{
14+
"compiler": "XE2",
15+
"platforms": "Win32, Win64",
16+
"template": "default"
17+
},
18+
{
19+
"compiler": "XE3",
20+
"platforms": "Win32, Win64",
21+
"template": "default"
22+
},
23+
{
24+
"compiler": "XE4",
25+
"platforms": "Win32, Win64",
26+
"template": "default"
27+
},
28+
{
29+
"compiler": "XE5",
30+
"platforms": "Win32, Win64",
31+
"template": "default"
32+
},
33+
{
34+
"compiler": "XE6",
35+
"platforms": "Win32, Win64",
36+
"template": "default"
37+
},
38+
{
39+
"compiler": "XE7",
40+
"platforms": "Win32, Win64",
41+
"template": "default"
42+
},
43+
{
44+
"compiler": "XE8",
45+
"platforms": "Win32, Win64",
46+
"template": "default"
47+
},
48+
{
49+
"compiler": "10.0",
50+
"platforms": "Win32, Win64",
51+
"template": "default"
52+
},
53+
{
54+
"compiler": "10.1",
55+
"platforms": "Win32, Win64",
56+
"template": "default"
57+
},
58+
{
59+
"compiler": "10.2",
60+
"platforms": "Win32, Win64",
61+
"template": "default"
62+
},
63+
{
64+
"compiler": "10.3",
65+
"platforms": "Win32, Win64",
66+
"template": "default"
67+
},
68+
{
69+
"compiler": "10.4",
70+
"platforms": "Win32, Win64",
71+
"template": "default"
72+
}
73+
],
74+
"templates": [
75+
{
76+
"name": "default",
77+
"source": [
78+
{
79+
"src": "Source\\*.pas",
80+
"dest": "src"
81+
},
82+
{
83+
"src": "Source\\*.inc",
84+
"dest": "src"
85+
}
86+
],
87+
"searchPaths": [
88+
{
89+
"path": "src"
90+
}
91+
]
92+
}
93+
]
94+
}

DelphiMocks.groupproj

Lines changed: 0 additions & 48 deletions
This file was deleted.

Examples/Sample1.dpr

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
program Sample1;
2+
3+
{$APPTYPE CONSOLE}
4+
5+
{$R *.res}
6+
7+
uses
8+
SysUtils,
9+
Sample1Main in 'Sample1Main.pas',
10+
Delphi.Mocks.Example.ProjectSaveCheckVisitor in 'Delphi.Mocks.Example.ProjectSaveCheckVisitor.pas',
11+
Delphi.Mocks.Examples.Factory in 'Delphi.Mocks.Examples.Factory.pas',
12+
Delphi.Mocks.Examples.Implement in 'Delphi.Mocks.Examples.Implement.pas',
13+
Delphi.Mocks.Examples.Interfaces in 'Delphi.Mocks.Examples.Interfaces.pas';
14+
15+
begin
16+
try
17+
TesTObjectMock;
18+
Writeln('--------------');
19+
Test;
20+
ReadLn;
21+
except
22+
on E: Exception do
23+
begin
24+
Writeln(E.ClassName, ': ', E.Message);
25+
ReadLn;
26+
end;
27+
end;
28+
end.

Sample1.dproj renamed to Examples/Sample1.dproj

Lines changed: 17 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<Base>true</Base>
5555
</PropertyGroup>
5656
<PropertyGroup Condition="'$(Base)'!=''">
57-
<DCC_UnitSearchPath>$(DUNITX);$(DCC_UnitSearchPath)</DCC_UnitSearchPath>
57+
<DCC_UnitSearchPath>..\Source;$(DCC_UnitSearchPath)</DCC_UnitSearchPath>
5858
<SanitizedProjectName>Sample1</SanitizedProjectName>
5959
<DCC_DUPLICATE_CTOR_DTOR>false</DCC_DUPLICATE_CTOR_DTOR>
6060
<VerInfo_Keys>CompanyName=;FileDescription=;FileVersion=1.2.3.4;InternalName=;LegalCopyright=;LegalTrademarks=;OriginalFilename=;ProductName=;ProductVersion=1.0.0.0</VerInfo_Keys>
@@ -125,29 +125,11 @@
125125
<DelphiCompile Include="$(MainSource)">
126126
<MainSource>MainSource</MainSource>
127127
</DelphiCompile>
128-
<DCCReference Include="Delphi.Mocks.AutoMock.pas"/>
129-
<DCCReference Include="Delphi.Mocks.Behavior.pas"/>
130-
<DCCReference Include="Delphi.Mocks.Expectation.pas"/>
131-
<DCCReference Include="Delphi.Mocks.Helpers.pas"/>
132-
<DCCReference Include="Delphi.Mocks.Interfaces.pas"/>
133-
<DCCReference Include="Delphi.Mocks.MethodData.pas"/>
134-
<DCCReference Include="Delphi.Mocks.ObjectProxy.pas"/>
135-
<DCCReference Include="Delphi.Mocks.ParamMatcher.pas"/>
136-
<DCCReference Include="Delphi.Mocks.pas"/>
137-
<DCCReference Include="Delphi.Mocks.Proxy.pas"/>
138-
<DCCReference Include="Delphi.Mocks.Proxy.TypeInfo.pas"/>
139-
<DCCReference Include="Delphi.Mocks.ReturnTypePatch.pas"/>
140-
<DCCReference Include="Delphi.Mocks.Utils.pas"/>
141-
<DCCReference Include="Delphi.Mocks.Validation.pas"/>
142-
<DCCReference Include="Delphi.Mocks.VirtualInterface.pas"/>
143-
<DCCReference Include="Delphi.Mocks.VirtualMethodInterceptor.pas"/>
144-
<DCCReference Include="Delphi.Mocks.WeakReference.pas"/>
145-
<DCCReference Include="Delphi.Mocks.When.pas"/>
146128
<DCCReference Include="Sample1Main.pas"/>
147-
<DCCReference Include="Examples\Delphi.Mocks.Example.ProjectSaveCheckVisitor.pas"/>
148-
<DCCReference Include="Examples\Delphi.Mocks.Examples.Factory.pas"/>
149-
<DCCReference Include="Examples\Delphi.Mocks.Examples.Implement.pas"/>
150-
<DCCReference Include="Examples\Delphi.Mocks.Examples.Interfaces.pas"/>
129+
<DCCReference Include="Delphi.Mocks.Example.ProjectSaveCheckVisitor.pas"/>
130+
<DCCReference Include="Delphi.Mocks.Examples.Factory.pas"/>
131+
<DCCReference Include="Delphi.Mocks.Examples.Implement.pas"/>
132+
<DCCReference Include="Delphi.Mocks.Examples.Interfaces.pas"/>
151133
<BuildConfiguration Include="Release">
152134
<Key>Cfg_2</Key>
153135
<CfgParent>Base</CfgParent>
@@ -201,20 +183,28 @@
201183
<Parameters Name="LoadAllSymbols">True</Parameters>
202184
<Parameters Name="LoadUnspecifiedSymbols">False</Parameters>
203185
</Parameters>
204-
<Excluded_Packages/>
186+
<Excluded_Packages>
187+
<Excluded_Packages Name="I:\FBAT_HG_LIBS8\madCollection\madBasic\BDS9\win32\madBasic_.bpl">madBasic 1.2.7 - www.madshi.net</Excluded_Packages>
188+
<Excluded_Packages Name="I:\FBAT_HG_LIBS8\madCollection\madBasic\BDS9\win32\madHelp_.bpl">madHelp 1.1.1 - www.madshi.net</Excluded_Packages>
189+
<Excluded_Packages Name="I:\FBAT_HG_LIBS8\madCollection\madDisAsm\BDS9\win32\madDisAsm_.bpl">madDisAsm 2.2.6 - www.madshi.net</Excluded_Packages>
190+
<Excluded_Packages Name="I:\FBAT_HG_LIBS8\madCollection\madExcept\BDS9\win32\madExceptIde_.bpl">madExceptIde 1.1.0 - www.madshi.net</Excluded_Packages>
191+
<Excluded_Packages Name="I:\FBAT_HG_LIBS8\madCollection\madExcept\BDS9\win32\madExcept_.bpl">madExcept 5.0.0 - www.madshi.net</Excluded_Packages>
192+
<Excluded_Packages Name="I:\FBAT_HG_LIBS8\madCollection\madExcept\BDS9\win32\madExceptVcl_.bpl">madExceptVcl 2.1.0 - www.madshi.net</Excluded_Packages>
193+
<Excluded_Packages Name="I:\FBAT_HG_LIBS8\madCollection\madExcept\BDS9\win32\madExceptWizard_.bpl">madExceptWizard 3.1.8 - www.madshi.net</Excluded_Packages>
194+
</Excluded_Packages>
205195
</Delphi.Personality>
206196
<Deployment>
207-
<DeployFile LocalName="Win32\Debug\Sample1.exe" Configuration="Debug" Class="ProjectOutput">
197+
<DeployFile Class="ProjectOutput" Configuration="Debug" LocalName="Win32\Debug\Sample1.exe">
208198
<Platform Name="Win32">
209199
<RemoteName>Sample1.exe</RemoteName>
210200
</Platform>
211201
</DeployFile>
212-
<DeployFile LocalName="Win32\Debug\Sample1.rsm" Configuration="Debug" Class="DebugSymbols">
202+
<DeployFile Class="DebugSymbols" Configuration="Debug" LocalName="Win32\Debug\Sample1.rsm">
213203
<Platform Name="Win32">
214204
<RemoteName>Sample1.rsm</RemoteName>
215205
</Platform>
216206
</DeployFile>
217-
<DeployFile LocalName="$(BDS)\Redist\osx32\libcgunwind.1.0.dylib" Class="DependencyModule">
207+
<DeployFile Class="DependencyModule" LocalName="$(BDS)\Redist\osx32\libcgunwind.1.0.dylib">
218208
<Platform Name="OSX32"/>
219209
<Platform Name="iOSSimulator"/>
220210
</DeployFile>

Sample1.RES

-824 Bytes
Binary file not shown.

Sample1.dpr

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)