Skip to content

Commit

Permalink
Try to fix conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuflick committed Oct 24, 2023
1 parent 40666ed commit 6b97f7b
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/dotnetcore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet: [ '7.0.x' ]
dotnet: [ '6.0.x' ]

steps:
- uses: actions/checkout@v3
Expand All @@ -23,5 +23,5 @@ jobs:
dotnet build --configuration Release
- name: Run tests
run: |
cd CourseApp.Tests
cd CourseApp.Tests/CourseApp.Tests.csproj
dotnet test
1 change: 1 addition & 0 deletions CourseApp/CourseApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@




</Project>
18 changes: 18 additions & 0 deletions CourseApp/RpgSaga/IHero.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
namespace CourseApp.RpgSaga;

using System;

public interface IHero
{
public string Name;

Check failure on line 7 in CourseApp/RpgSaga/IHero.cs

View workflow job for this annotation

GitHub Actions / build (6.0.x)

Interfaces cannot contain instance fields

Check failure on line 7 in CourseApp/RpgSaga/IHero.cs

View workflow job for this annotation

GitHub Actions / build (6.0.x)

Interfaces cannot contain instance fields

public int Strength;

Check failure on line 9 in CourseApp/RpgSaga/IHero.cs

View workflow job for this annotation

GitHub Actions / build (6.0.x)

Interfaces cannot contain instance fields

Check failure on line 9 in CourseApp/RpgSaga/IHero.cs

View workflow job for this annotation

GitHub Actions / build (6.0.x)

Interfaces cannot contain instance fields

public int Health;

Check failure on line 11 in CourseApp/RpgSaga/IHero.cs

View workflow job for this annotation

GitHub Actions / build (6.0.x)

Interfaces cannot contain instance fields

Check failure on line 11 in CourseApp/RpgSaga/IHero.cs

View workflow job for this annotation

GitHub Actions / build (6.0.x)

Interfaces cannot contain instance fields

public Random Rand = new Random();

Check failure on line 13 in CourseApp/RpgSaga/IHero.cs

View workflow job for this annotation

GitHub Actions / build (6.0.x)

Interfaces cannot contain instance fields

Check failure on line 13 in CourseApp/RpgSaga/IHero.cs

View workflow job for this annotation

GitHub Actions / build (6.0.x)

Interfaces cannot contain instance fields

public int SetValue();

public void Atack(IHero person);
}
15 changes: 15 additions & 0 deletions CourseApp/RpgSaga/Warior.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
namespace CourseApp.RpgSaga;

public class Warior : IHero
{
public int SetValue()
{
throw new System.NotImplementedException();
}

public void Atack(IHero person)
{
}


}

0 comments on commit 6b97f7b

Please sign in to comment.