Browse Source

fix dos line endings (grumble @ MSFT tooling)

main
Colin McMillen 3 years ago
parent
commit
d5412c0173
  1. 28
      2020/AdventOfCode.csproj
  2. 46
      2020/Program.cs

28
2020/AdventOfCode.csproj

@ -1,14 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<GenerateProgramFile>false</GenerateProgramFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
</ItemGroup>
</Project>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
<GenerateProgramFile>false</GenerateProgramFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
</ItemGroup>
</Project>

46
2020/Program.cs

@ -1,23 +1,23 @@
using System;
using static System.Console;
using System.Collections.Generic;
using Xunit;
namespace AdventOfCode {
public class Program {
static string Hello() {
return "ahoy, world";
}
[Fact]
static void HelloTest() {
Assert.Equal("ahoy, world", Hello());
}
static void Main(string[] args) {
Console.WriteLine(Hello());
}
}
}
using System;
using static System.Console;
using System.Collections.Generic;
using Xunit;
namespace AdventOfCode {
public class Program {
static string Hello() {
return "ahoy, world";
}
[Fact]
static void HelloTest() {
Assert.Equal("ahoy, world", Hello());
}
static void Main(string[] args) {
Console.WriteLine(Hello());
}
}
}
Loading…
Cancel
Save