Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sdk": {
"version": "10.0.100",
"rollForward": "latestMajor"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sdk": {
"version": "10.0.100",
"rollForward": "latestMajor"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sdk": {
"version": "10.0.100",
"rollForward": "latestMajor"
}
}
6 changes: 6 additions & 0 deletions tests/dotnet-test/writing-mstest-tests/eval.vally.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ stimuli:
dest: PriceCalculatorTests.cs
- src: fixtures/legacy-antipatterns/PriceCalculator.cs
dest: PriceCalculator.cs
- src: fixtures/legacy-antipatterns/global.json
dest: global.json
graders:
- type: output-matches
config:
Expand Down Expand Up @@ -285,6 +287,8 @@ stimuli:
files:
- src: fixtures/modern-mstest/TestProject.csproj
dest: TestProject.csproj
- src: fixtures/modern-mstest/global.json
dest: global.json
graders:
- type: output-matches
config:
Expand Down Expand Up @@ -470,6 +474,8 @@ stimuli:
dest: src/Contoso.Services.csproj
- src: ./fixtures/service-registry/tests/Contoso.Services.Tests.csproj
dest: tests/Contoso.Services.Tests.csproj
- src: ./fixtures/service-registry/global.json
dest: global.json
graders:
- type: file-exists
config:
Expand Down
12 changes: 12 additions & 0 deletions tests/dotnet-test/writing-mstest-tests/eval.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ scenarios:
source: "fixtures/legacy-antipatterns/PriceCalculatorTests.cs"
- path: "PriceCalculator.cs"
source: "fixtures/legacy-antipatterns/PriceCalculator.cs"
- path: "global.json"
source: "fixtures/legacy-antipatterns/global.json"
commands:
- "dotnet restore"
assertions:
Expand Down Expand Up @@ -264,6 +266,8 @@ scenarios:
files:
- path: "TestProject.csproj"
source: "fixtures/modern-mstest/TestProject.csproj"
- path: "global.json"
source: "fixtures/modern-mstest/global.json"
assertions:
- type: output_matches
pattern: "constructor|\\bctor\\b"
Expand Down Expand Up @@ -470,6 +474,14 @@ scenarios:
<ProjectReference Include="../src/Contoso.Services.csproj" />
</ItemGroup>
</Project>
- path: "global.json"
content: |
{
"sdk": {
"version": "9.0.100",
"rollForward": "latestMajor"
}
}
Comment thread
Copilot marked this conversation as resolved.
Outdated
assertions:
- type: file_exists
path: "tests/*.cs"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sdk": {
"version": "8.0.100",
"rollForward": "latestMajor"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sdk": {
"version": "9.0.100",
"rollForward": "latestMajor"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"sdk": {
"version": "9.0.100",
"rollForward": "latestMajor"
}
}