Skip to content

Commit a242578

Browse files
authored
Merge pull request #40 from codefellows/dotnet-dsa
DSA Repo and Instructiosn for 401.Net
2 parents 115e99e + d50cb22 commit a242578

32 files changed

+475
-0
lines changed

.github/workflows/dotnet.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: .NET
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v2
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v1
18+
with:
19+
dotnet-version: 5.0.x
20+
- name: Build Data Structures
21+
run: |
22+
cd c-sharp/DataStructures/DataStructures
23+
dotnet restore
24+
dotnet build --no-restore
25+
- name: Build Code Challenges
26+
run: |
27+
cd c-sharp/DataStructures/CodeChallenges
28+
dotnet restore
29+
dotnet build --no-restore
30+
- name: Test Data Structures
31+
run: |
32+
cd c-sharp/DataStructures/DataStructuresTests
33+
dotnet restore
34+
dotnet build --no-restore
35+
dotnet test --no-build --verbosity normal
36+
- name: Test Code Challenges
37+
run: |
38+
cd c-sharp/DataStructures/CodeChallengesTests
39+
dotnet restore
40+
dotnet build --no-restore
41+
dotnet test --no-build --verbosity normal
42+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<OutputType>Exe</OutputType>
5+
<TargetFramework>net5.0</TargetFramework>
6+
</PropertyGroup>
7+
8+
<ItemGroup>
9+
<ProjectReference Include="..\DataStructures\DataStructures.csproj" />
10+
</ItemGroup>
11+
</Project>
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
using DataStructures;
3+
4+
namespace CodeChallenges
5+
{
6+
public class LinkedLists
7+
{
8+
public static void LinkedLlistChallengeO1()
9+
{
10+
}
11+
}
12+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
3+
namespace CodeChallenges
4+
{
5+
class Program
6+
{
7+
static void Main(string[] args)
8+
{
9+
LinkedLists.LinkedLlistChallengeO1();
10+
}
11+
}
12+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// <autogenerated />
2+
using System;
3+
using System.Reflection;
4+
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v5.0", FrameworkDisplayName = "")]
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//------------------------------------------------------------------------------
2+
// <auto-generated>
3+
// This code was generated by a tool.
4+
// Runtime Version:4.0.30319.42000
5+
//
6+
// Changes to this file may cause incorrect behavior and will be lost if
7+
// the code is regenerated.
8+
// </auto-generated>
9+
//------------------------------------------------------------------------------
10+
11+
using System;
12+
using System.Reflection;
13+
14+
[assembly: System.Reflection.AssemblyCompanyAttribute("CodeChallenges")]
15+
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
16+
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
17+
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
18+
[assembly: System.Reflection.AssemblyProductAttribute("CodeChallenges")]
19+
[assembly: System.Reflection.AssemblyTitleAttribute("CodeChallenges")]
20+
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
21+
22+
// Generated by the MSBuild WriteCodeFragment class.
23+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2fe807b7cd246ec805dd1fc3e5b081474017eb8e
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
is_global = true
2+
build_property.TargetFramework = net5.0
3+
build_property.TargetPlatformMinVersion =
4+
build_property.UsingMicrosoftNETSdkWeb =
5+
build_property.ProjectTypeGuids =
6+
build_property.PublishSingleFile =
7+
build_property.IncludeAllContentForSelfExtract =
8+
build_property._SupportedPlatformList = Android,iOS,Linux,macOS,Windows
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>net5.0</TargetFramework>
5+
6+
<IsPackable>false</IsPackable>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
11+
<PackageReference Include="xunit" Version="2.4.1" />
12+
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
13+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
14+
<PrivateAssets>all</PrivateAssets>
15+
</PackageReference>
16+
<PackageReference Include="coverlet.collector" Version="3.0.2">
17+
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
18+
<PrivateAssets>all</PrivateAssets>
19+
</PackageReference>
20+
</ItemGroup>
21+
22+
<ItemGroup>
23+
<ProjectReference Include="..\CodeChallenges\CodeChallenges.csproj" />
24+
</ItemGroup>
25+
</Project>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System;
2+
using CodeChallenges;
3+
using Xunit;
4+
5+
namespace CodeChallengesTests
6+
{
7+
public class UnitTest1
8+
{
9+
[Fact]
10+
public void Test1()
11+
{
12+
LinkedLists.LinkedLlistChallengeO1();
13+
Assert.Equal(true, true);
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)