Skip to content

Commit ec6078a

Browse files
committed
Added test app for call following heuristics
1 parent 08444ea commit ec6078a

File tree

4 files changed

+82
-0
lines changed

4 files changed

+82
-0
lines changed

CSharpCodeAnalyst.sln

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Contracts", "Contracts\Cont
2828
EndProject
2929
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApprovalTestTool", "ApprovalTestTool\ApprovalTestTool.csproj", "{767539BE-FBE3-4B46-9A5E-21D60E1B278B}"
3030
EndProject
31+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "TestApps", "TestApps", "{4553EF99-1D3C-14C7-0D22-5364D18C373B}"
32+
EndProject
33+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FollowHeuristic", "TestApps\FollowHeuristic\FollowHeuristic.csproj", "{30665FC1-D5F2-4F4C-BBFA-277184C15E45}"
34+
EndProject
3135
Global
3236
GlobalSection(SolutionConfigurationPlatforms) = preSolution
3337
Debug|Any CPU = Debug|Any CPU
@@ -54,11 +58,18 @@ Global
5458
{767539BE-FBE3-4B46-9A5E-21D60E1B278B}.Debug|Any CPU.Build.0 = Debug|Any CPU
5559
{767539BE-FBE3-4B46-9A5E-21D60E1B278B}.Release|Any CPU.ActiveCfg = Release|Any CPU
5660
{767539BE-FBE3-4B46-9A5E-21D60E1B278B}.Release|Any CPU.Build.0 = Release|Any CPU
61+
{30665FC1-D5F2-4F4C-BBFA-277184C15E45}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
62+
{30665FC1-D5F2-4F4C-BBFA-277184C15E45}.Debug|Any CPU.Build.0 = Debug|Any CPU
63+
{30665FC1-D5F2-4F4C-BBFA-277184C15E45}.Release|Any CPU.ActiveCfg = Release|Any CPU
64+
{30665FC1-D5F2-4F4C-BBFA-277184C15E45}.Release|Any CPU.Build.0 = Release|Any CPU
5765
EndGlobalSection
5866
GlobalSection(SolutionProperties) = preSolution
5967
HideSolutionNode = FALSE
6068
EndGlobalSection
6169
GlobalSection(ExtensibilityGlobals) = postSolution
6270
SolutionGuid = {2BBCF792-C019-4195-AF08-45CC642B8A18}
6371
EndGlobalSection
72+
GlobalSection(NestedProjects) = preSolution
73+
{30665FC1-D5F2-4F4C-BBFA-277184C15E45} = {4553EF99-1D3C-14C7-0D22-5364D18C373B}
74+
EndGlobalSection
6475
EndGlobal

TestApps/FollowHeuristic/Code.cs

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
namespace FollowHeuristic;
2+
3+
public class BaseClass
4+
{
5+
public virtual void BuiltUp()
6+
{
7+
AddToMaster();
8+
}
9+
10+
public virtual void AddToMaster()
11+
{
12+
}
13+
}
14+
15+
16+
class Derived1 : BaseClass
17+
{
18+
public override void BuiltUp()
19+
{
20+
base.BuiltUp();
21+
}
22+
23+
public override void AddToMaster()
24+
{
25+
base.AddToMaster();
26+
}
27+
}
28+
29+
class Derived2 : BaseClass
30+
{
31+
public override void BuiltUp()
32+
{
33+
base.BuiltUp();
34+
}
35+
36+
public override void AddToMaster()
37+
{
38+
base.AddToMaster();
39+
}
40+
}
41+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net8.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
</PropertyGroup>
8+
9+
</Project>

TestApps/TestApps.sln

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Microsoft Visual Studio Solution File, Format Version 12.00
2+
# Visual Studio Version 17
3+
VisualStudioVersion = 17.0.31912.275
4+
MinimumVisualStudioVersion = 10.0.40219.1
5+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FollowHeuristic", "FollowHeuristic\FollowHeuristic.csproj", "{B1A1B1A1-0000-0000-0000-000000000001}"
6+
EndProject
7+
Global
8+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
9+
Debug|Any CPU = Debug|Any CPU
10+
Release|Any CPU = Release|Any CPU
11+
EndGlobalSection
12+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
13+
{B1A1B1A1-0000-0000-0000-000000000001}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
14+
{B1A1B1A1-0000-0000-0000-000000000001}.Debug|Any CPU.Build.0 = Debug|Any CPU
15+
{B1A1B1A1-0000-0000-0000-000000000001}.Release|Any CPU.ActiveCfg = Release|Any CPU
16+
{B1A1B1A1-0000-0000-0000-000000000001}.Release|Any CPU.Build.0 = Release|Any CPU
17+
EndGlobalSection
18+
GlobalSection(SolutionProperties) = preSolution
19+
HideSolutionNode = FALSE
20+
EndGlobalSection
21+
EndGlobal

0 commit comments

Comments
 (0)