Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update fizzbuzz to net5 #7

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ build
.idea
.iml
.suo
*.DotSettings.user

# build
[Oo]bj/
Expand Down
4 changes: 3 additions & 1 deletion 01-FizzBuzz/csharp-dotnetcore/FizzBuzz/FizzBuzz.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>net5.0</TargetFramework>
<LangVersion>default</LangVersion>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
8 changes: 4 additions & 4 deletions 01-FizzBuzz/csharp-dotnetcore/FizzBuzzTest/FizzBuzzTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ namespace Katas
public class FizzBuzzTest
{
[Fact]
public void ShouldReturn1For1()
public void Returns1For1()
{
FizzBuzz fizzBuzz = new FizzBuzz();
string actualReturnValue = fizzBuzz.Process(1);
string expectedReturnValue = "1";
var fizzBuzz = new FizzBuzz();
var actualReturnValue = fizzBuzz.Process(1);
var expectedReturnValue = "1";
Assert.Equal(expectedReturnValue, actualReturnValue);
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>net5.0</TargetFramework>

<IsPackable>false</IsPackable>

<LangVersion>default</LangVersion>

<Nullable>enable</Nullable>
</PropertyGroup>

<ItemGroup>
Expand Down