Skip to content

Commit a17c227

Browse files
committed
Added test project
1 parent fba9dfd commit a17c227

File tree

5 files changed

+48
-15
lines changed

5 files changed

+48
-15
lines changed

all.sln

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,18 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Dapr.E2E.Test.Actors.Genera
117117
EndProject
118118
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cryptography", "examples\Client\Cryptography\Cryptography.csproj", "{C74FBA78-13E8-407F-A173-4555AEE41FF3}"
119119
EndProject
120+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DemoActor.UnitTest", "examples\Actor\DemoActor.UnitTest\DemoActor.UnitTest.csproj", "{67EB5D79-B31D-4CDB-8AA2-BC50AB82828A}"
121+
EndProject
120122
Global
121123
GlobalSection(SolutionConfigurationPlatforms) = preSolution
122124
Debug|Any CPU = Debug|Any CPU
123125
Release|Any CPU = Release|Any CPU
124126
EndGlobalSection
125127
GlobalSection(ProjectConfigurationPlatforms) = postSolution
128+
{67EB5D79-B31D-4CDB-8AA2-BC50AB82828A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
129+
{67EB5D79-B31D-4CDB-8AA2-BC50AB82828A}.Debug|Any CPU.Build.0 = Debug|Any CPU
130+
{67EB5D79-B31D-4CDB-8AA2-BC50AB82828A}.Release|Any CPU.ActiveCfg = Release|Any CPU
131+
{67EB5D79-B31D-4CDB-8AA2-BC50AB82828A}.Release|Any CPU.Build.0 = Release|Any CPU
126132
{C2DB4B64-B7C3-4FED-8753-C040F677C69A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
127133
{C2DB4B64-B7C3-4FED-8753-C040F677C69A}.Debug|Any CPU.Build.0 = Debug|Any CPU
128134
{C2DB4B64-B7C3-4FED-8753-C040F677C69A}.Release|Any CPU.ActiveCfg = Release|Any CPU
@@ -294,6 +300,7 @@ Global
294300
HideSolutionNode = FALSE
295301
EndGlobalSection
296302
GlobalSection(NestedProjects) = preSolution
303+
{67EB5D79-B31D-4CDB-8AA2-BC50AB82828A} = {02374BD0-BF0B-40F8-A04A-C4C4D61D4992}
297304
{C2DB4B64-B7C3-4FED-8753-C040F677C69A} = {27C5D71D-0721-4221-9286-B94AB07B58CF}
298305
{41BF4392-54BD-4FE7-A3EB-CD045F88CA9A} = {DD020B34-460F-455F-8D17-CF4A949F100B}
299306
{B9C12532-0969-4DAC-A2F8-CA9208D7A901} = {27C5D71D-0721-4221-9286-B94AB07B58CF}
@@ -347,16 +354,3 @@ Global
347354
SolutionGuid = {65220BF2-EAE1-4CB2-AA58-EBE80768CB40}
348355
EndGlobalSection
349356
EndGlobal
350-
8-446B-AECD-DCC2CC871F73}
351-
EndGlobalSection
352-
GlobalSection(ExtensibilityGlobals) = postSolution
353-
SolutionGuid = {65220BF2-EAE1-4CB2-AA58-EBE80768CB40}
354-
EndGlobalSection
355-
EndGlobal
356-
C991940} = {DD020B34-460F-455F-8D17-CF4A949F100B}
357-
{C74FBA78-13E8-407F-A173-4555AEE41FF3} = {A7F41094-8648-446B-AECD-DCC2CC871F73}
358-
EndGlobalSection
359-
GlobalSection(ExtensibilityGlobals) = postSolution
360-
SolutionGuid = {65220BF2-EAE1-4CB2-AA58-EBE80768CB40}
361-
EndGlobalSection
362-
EndGlobal
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net6.0</TargetFramework>
5+
<ImplicitUsings>enable</ImplicitUsings>
6+
<Nullable>enable</Nullable>
7+
8+
<IsPackable>false</IsPackable>
9+
<IsTestProject>true</IsTestProject>
10+
</PropertyGroup>
11+
12+
<ItemGroup>
13+
<PackageReference Include="coverlet.collector" Version="3.2.0" />
14+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.5.0" />
15+
<PackageReference Include="Moq" Version="4.20.70" />
16+
<PackageReference Include="xunit" Version="2.4.2" />
17+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5" />
18+
</ItemGroup>
19+
20+
<ItemGroup>
21+
<ProjectReference Include="..\DemoActor\DemoActor.csproj" />
22+
</ItemGroup>
23+
24+
<ItemGroup>
25+
<Using Include="Xunit" />
26+
</ItemGroup>
27+
28+
</Project>
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
namespace DemoActor.UnitTest
2+
{
3+
public class UnitTest1
4+
{
5+
[Fact]
6+
public void Test1()
7+
{
8+
9+
}
10+
}
11+
}

examples/Actor/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The Actor example shows how to create a virtual actor (`DemoActor`) and invoke i
44

55
## Prerequisites
66

7-
- [.NET Core 3.1 or .NET 5+](https://dotnet.microsoft.com/download) installed
7+
- [.NET 6+](https://dotnet.microsoft.com/download) installed
88
- [Dapr CLI](https://docs.dapr.io/getting-started/install-dapr-cli/)
99
- [Initialized Dapr environment](https://docs.dapr.io/getting-started/install-dapr-selfhost/)
1010
- [Dapr .NET SDK](https://github.com/dapr/dotnet-sdk/)

properties/IsExternalInit.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ namespace System.Runtime.CompilerServices
1313
internal static class IsExternalInit
1414
{
1515
}
16-
16+
1717
}

0 commit comments

Comments
 (0)