Skip to content

Commit c086cc8

Browse files
ivandroflyaalhour
authored andcommitted
[UnitTest/Framework] - Refactoring Unit-Tests / Switching to .Net Core (#38)
* Adding unit-test & switch to .net core * [CountingSortTest] - add assert * [CatalanNumbersTest] - remove console codes. * [BinarySearchTreeTest] - fix unit-tests * [BinomialHeapsTest] - fix unit-test * [QueueTest] - fix unit-test * [TrieTest] - fix unit-test * [TrieMap] - fix unit-test * [StackTest] - fix unit-test * [SortedDictionaryTests] - Fix uni-test * [SortedListTests] - Fix unit-test * [LinkedListTest] - fix unit-test * [QueueTest] - minor fixes * [PriorityQueuesTest] - fix unit-test * update unit-test framework * [HashTableSeparateChainingTest] - fix unit-test * [ArrayListTest] - fix unit-test * [GraphsUndirectedWeightedSparseGraphTest] - fix unit-texts * [DLinkedListTest] - fix unit-test * remove underscore in class name * [SkipListTest] - fix unit-test * [GraphsDirectedSparseGraphTest] - fix unit-test * [GraphsUndirectedWeightedDenseGraphTest] - fix unit-test part 1 * [GraphsUndirectedSparseGraphTest] - fix unit-test. * [GraphsUndirectedDenseGraphTest] - fix unit-test * [redblacktreetest] - mino fixes * [AVLTreeTest] - fix unit-test * [BinarySearchTreeMapTests] - fix unit-test * [BinaryHeapsTest - fix unit-test * [CuckooHashTableTest] - fix unit-test * [GraphsDirectedDenseGraphTest] - fix unit-test * [RedBlackTreeMapTests] - fix unitest * minor cleanup/refact * [StringPermutationTests] - fix unit test * [HeapSorterTest] - fix unit test * [LSDRadixSorterTest] - fix unit test * [MergeSorterTest] - fix unit test * [QuickSortTest] - fix unit test * [StringEditDistanceTest] - fix unit test * [GraphsBreadthFirstSearchTest - fix unit-test * [GraphsDijkstraShortestPathsTest] - "fix unit-test" * [GraphsCyclesDetectorTests] - fix unit test * [InsertionSortTest] - fix unit-test * update project files * update project file
1 parent a9d335e commit c086cc8

File tree

93 files changed

+2274
-3079
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+2274
-3079
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -187,4 +187,5 @@ FakesAssemblies/
187187
# LightSwitch generated files
188188
GeneratedArtifacts/
189189
_Pvt_Extensions/
190-
ModelManifest.xml
190+
ModelManifest.xml
191+
.vs/

.vs/C-Sharp-Algorithms/v15/Server/sqlite3/db.lock

Whitespace-only changes.
Binary file not shown.

.vs/C-Sharp-Algorithms/v15/sqlite3/db.lock

Whitespace-only changes.
2.22 MB
Binary file not shown.

Algorithms/Algorithms.csproj

+8-79
Original file line numberDiff line numberDiff line change
@@ -1,86 +1,15 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
33
<PropertyGroup>
4-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
5-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
6-
<ProjectGuid>{8F59D573-A1B8-438F-A67A-A7F11FACF201}</ProjectGuid>
7-
<OutputType>Library</OutputType>
8-
<RootNamespace>Algorithms</RootNamespace>
9-
<AssemblyName>Algorithms</AssemblyName>
10-
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
4+
<TargetFramework>netcoreapp1.1</TargetFramework>
115
</PropertyGroup>
12-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
13-
<DebugSymbols>true</DebugSymbols>
14-
<DebugType>full</DebugType>
15-
<Optimize>false</Optimize>
16-
<OutputPath>bin\Debug</OutputPath>
17-
<DefineConstants>DEBUG;</DefineConstants>
18-
<ErrorReport>prompt</ErrorReport>
19-
<WarningLevel>4</WarningLevel>
20-
<ConsolePause>false</ConsolePause>
21-
</PropertyGroup>
22-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
23-
<DebugType>full</DebugType>
24-
<Optimize>true</Optimize>
25-
<OutputPath>bin\Release</OutputPath>
26-
<ErrorReport>prompt</ErrorReport>
27-
<WarningLevel>4</WarningLevel>
28-
<ConsolePause>false</ConsolePause>
29-
</PropertyGroup>
30-
<ItemGroup>
31-
<Reference Include="System" />
32-
</ItemGroup>
33-
<ItemGroup>
34-
<Compile Include="Graphs\BellmanFordShortestPaths.cs" />
35-
<Compile Include="Graphs\CyclesDetector.cs" />
36-
<Compile Include="Graphs\DijkstraAllPairsShortestPaths.cs" />
37-
<Compile Include="Graphs\DijkstraShortestPaths.cs" />
38-
<Compile Include="Numeric\BinomialCoefficients.cs" />
39-
<Compile Include="Numeric\CatalanNumbers.cs" />
40-
<Compile Include="Numeric\GreatestCommonDivisor.cs" />
41-
<Compile Include="Properties\AssemblyInfo.cs" />
42-
<Compile Include="Sorting\BinarySearchTreeSorter.cs" />
43-
<Compile Include="Sorting\BubbleSorter.cs" />
44-
<Compile Include="Sorting\BucketSorter.cs" />
45-
<Compile Include="Sorting\CombSorter.cs" />
46-
<Compile Include="Sorting\CountingSorter.cs" />
47-
<Compile Include="Sorting\CycleSorter.cs" />
48-
<Compile Include="Sorting\GnomeSorter.cs" />
49-
<Compile Include="Sorting\HeapSorter.cs" />
50-
<Compile Include="Sorting\InsertionSorter.cs" />
51-
<Compile Include="Sorting\LSDRadixSorter.cs" />
52-
<Compile Include="Sorting\OddEvenSorter.cs" />
53-
<Compile Include="Sorting\PigeonHoleSorter.cs" />
54-
<Compile Include="Sorting\QuickSorter.cs" />
55-
<Compile Include="Sorting\MergeSorter.cs" />
56-
<Compile Include="Common\Comparers.cs" />
57-
<Compile Include="Common\Helpers.cs" />
58-
<Compile Include="Graphs\BreadthFirstShortestPaths.cs" />
59-
<Compile Include="Graphs\BreadthFirstSearcher.cs" />
60-
<Compile Include="Graphs\DepthFirstSearcher.cs" />
61-
<Compile Include="Graphs\TopologicalSorter.cs" />
62-
<Compile Include="Sorting\SelectionSorter.cs" />
63-
<Compile Include="Sorting\ShellSorter.cs" />
64-
<Compile Include="Strings\EditDistance.cs" />
65-
<Compile Include="Strings\EditDistanceCostsMap.cs" />
66-
<Compile Include="Strings\Permutations.cs" />
67-
<Compile Include="Graphs\ConnectedComponents.cs" />
68-
<Compile Include="Graphs\BipartiteColoring.cs" />
69-
<Compile Include="Trees\BinaryTreeRecursiveWalker.cs" />
70-
<Compile Include="Trees\BinaryTreeIterativeWalker.cs" />
71-
</ItemGroup>
72-
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
6+
737
<ItemGroup>
74-
<ProjectReference Include="..\DataStructures\DataStructures.csproj">
75-
<Project>{464251A0-3667-42BA-A3D5-0581D65C442B}</Project>
76-
<Name>DataStructures</Name>
77-
</ProjectReference>
8+
<PackageReference Include="xunit" Version="2.3.1" />
789
</ItemGroup>
79-
<ItemGroup />
80-
<ItemGroup />
81-
<ItemGroup />
82-
<ItemGroup />
10+
8311
<ItemGroup>
84-
<Folder Include="Trees\" />
12+
<ProjectReference Include="..\DataStructures\DataStructures.csproj" />
8513
</ItemGroup>
14+
8615
</Project>

Algorithms/Graphs/BipartiteColoring.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public BipartiteColoring(IGraph<TVertex> Graph)
5858
if (Graph == null)
5959
throw new ArgumentNullException();
6060
else if (Graph.VerticesCount < 2)
61-
throw new ApplicationException("Graph contains less elements than required.");
61+
throw new InvalidOperationException("Graph contains less elements than required.");
6262

6363
// Init data members
6464
_initializeDataMembers(Graph);
@@ -78,7 +78,7 @@ public BipartiteColoring(IGraph<TVertex> Graph)
7878

7979
// Stop discovery of graph when bipartiteness doesn't hold
8080
if (!_isBipartite)
81-
throw new ApplicationException("Graph contains an odd cycle.");
81+
throw new InvalidOperationException("Graph contains an odd cycle.");
8282
}
8383
}
8484
}
@@ -178,7 +178,7 @@ public BipartiteColor ColorOf(TVertex vertex)
178178
if (!_isBipartite)
179179
throw new InvalidOperationException("Graph is not bipartite.");
180180
else if (!_nodesToIndices.ContainsKey(vertex))
181-
throw new ApplicationException("Vertex doesn't belong to graph.");
181+
throw new InvalidOperationException("Vertex doesn't belong to graph.");
182182

183183
return _nodesColors[_nodesToIndices[vertex]];
184184
}

Algorithms/Properties/AssemblyInfo.cs

-27
This file was deleted.

Algorithms/Sorting/LSDRadixSorter.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public static void LSDRadixSort(this IList<String> collection, int stringFixedWi
7575
{
7676
for (int i = 0; i < collection.Count; ++i)
7777
if (collection[i] == null || collection[i].Length != stringFixedWidth)
78-
throw new ApplicationException("Not all strings have the same width");
78+
throw new InvalidOperationException("Not all strings have the same width");
7979
}
8080

8181
// extend ASCII alphabet size

Algorithms/Strings/EditDistanceCostsMap.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public class EditDistanceCostsMap<TCost> where TCost : IComparable<TCost>, IEqua
1919
public EditDistanceCostsMap(TCost insertionCost, TCost deletionCost, TCost substitutionCost)
2020
{
2121
if (false == default(TCost).IsNumber())
22-
throw new ApplicationException("Invalid cost type TCost. Please choose TCost to be a number.");
22+
throw new InvalidOperationException("Invalid cost type TCost. Please choose TCost to be a number.");
2323

2424
DeletionCost = deletionCost;
2525
InsertionCost = insertionCost;

Algorithms/Strings/Permutations.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,17 @@ public static bool IsAnargram(string source, string other)
7878
int len = source.Length;
7979
// Hash set which will contains all the characters present in input souce.
8080
var hashSetSourceChars = new HashSet<char>();
81+
var hashSetOtherChars = new HashSet<char>();
8182
for (int i = 0; i < len; i++)
8283
{
8384
hashSetSourceChars.Add(source[i]);
85+
hashSetOtherChars.Add(other[i]);
8486
}
8587
for (int i = 0; i < len; i++)
8688
{
8789
// Inputs are not Anargram if characers from *other are not present in *source.
8890
if (!hashSetSourceChars.Contains(other[i])) return false;
89-
//if (!hashSetOther.Contains(source[i])) return false;
91+
if (!hashSetOtherChars.Contains(source[i])) return false;
9092
}
9193
return true;
9294
}

C-Sharp-Algorithms.sln

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,35 @@
11

22
Microsoft Visual Studio Solution File, Format Version 12.00
3-
# Visual Studio 2012
4-
VisualStudioVersion = 12.0.31101.0
3+
# Visual Studio 15
4+
VisualStudioVersion = 15.0.26430.6
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MainProgram", "MainProgram\MainProgram.csproj", "{7DD9570B-B0B6-414C-A5E5-ACB622A294B6}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataStructures", "DataStructures\DataStructures.csproj", "{A5923854-69FB-4BD0-90E3-702E1D488AFC}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DataStructures", "DataStructures\DataStructures.csproj", "{464251A0-3667-42BA-A3D5-0581D65C442B}"
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Algorithms", "Algorithms\Algorithms.csproj", "{7CE43796-3845-4F4D-9A8D-C09B8552F42E}"
99
EndProject
10-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Algorithms", "Algorithms\Algorithms.csproj", "{8F59D573-A1B8-438F-A67A-A7F11FACF201}"
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTest", "UnitTest\UnitTest.csproj", "{2C60C7D1-3FAD-44B7-903B-0B89D84647A2}"
1111
EndProject
1212
Global
1313
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1414
Debug|Any CPU = Debug|Any CPU
1515
Release|Any CPU = Release|Any CPU
1616
EndGlobalSection
1717
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18-
{464251A0-3667-42BA-A3D5-0581D65C442B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19-
{464251A0-3667-42BA-A3D5-0581D65C442B}.Debug|Any CPU.Build.0 = Debug|Any CPU
20-
{464251A0-3667-42BA-A3D5-0581D65C442B}.Release|Any CPU.ActiveCfg = Release|Any CPU
21-
{464251A0-3667-42BA-A3D5-0581D65C442B}.Release|Any CPU.Build.0 = Release|Any CPU
22-
{7DD9570B-B0B6-414C-A5E5-ACB622A294B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23-
{7DD9570B-B0B6-414C-A5E5-ACB622A294B6}.Debug|Any CPU.Build.0 = Debug|Any CPU
24-
{7DD9570B-B0B6-414C-A5E5-ACB622A294B6}.Release|Any CPU.ActiveCfg = Release|Any CPU
25-
{7DD9570B-B0B6-414C-A5E5-ACB622A294B6}.Release|Any CPU.Build.0 = Release|Any CPU
26-
{8F59D573-A1B8-438F-A67A-A7F11FACF201}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27-
{8F59D573-A1B8-438F-A67A-A7F11FACF201}.Debug|Any CPU.Build.0 = Debug|Any CPU
28-
{8F59D573-A1B8-438F-A67A-A7F11FACF201}.Release|Any CPU.ActiveCfg = Release|Any CPU
29-
{8F59D573-A1B8-438F-A67A-A7F11FACF201}.Release|Any CPU.Build.0 = Release|Any CPU
18+
{A5923854-69FB-4BD0-90E3-702E1D488AFC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19+
{A5923854-69FB-4BD0-90E3-702E1D488AFC}.Debug|Any CPU.Build.0 = Debug|Any CPU
20+
{A5923854-69FB-4BD0-90E3-702E1D488AFC}.Release|Any CPU.ActiveCfg = Release|Any CPU
21+
{A5923854-69FB-4BD0-90E3-702E1D488AFC}.Release|Any CPU.Build.0 = Release|Any CPU
22+
{7CE43796-3845-4F4D-9A8D-C09B8552F42E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23+
{7CE43796-3845-4F4D-9A8D-C09B8552F42E}.Debug|Any CPU.Build.0 = Debug|Any CPU
24+
{7CE43796-3845-4F4D-9A8D-C09B8552F42E}.Release|Any CPU.ActiveCfg = Release|Any CPU
25+
{7CE43796-3845-4F4D-9A8D-C09B8552F42E}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{2C60C7D1-3FAD-44B7-903B-0B89D84647A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{2C60C7D1-3FAD-44B7-903B-0B89D84647A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{2C60C7D1-3FAD-44B7-903B-0B89D84647A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{2C60C7D1-3FAD-44B7-903B-0B89D84647A2}.Release|Any CPU.Build.0 = Release|Any CPU
30+
EndGlobalSection
31+
GlobalSection(SolutionProperties) = preSolution
32+
HideSolutionNode = FALSE
3033
EndGlobalSection
3134
GlobalSection(MonoDevelopProperties) = preSolution
3235
Policies = $0
@@ -66,7 +69,4 @@ Global
6669
GlobalSection(CodealikeProperties) = postSolution
6770
SolutionGuid = f7178bdb-e6ee-479b-8876-5fd96edf50a4
6871
EndGlobalSection
69-
GlobalSection(SolutionProperties) = preSolution
70-
HideSolutionNode = FALSE
71-
EndGlobalSection
7272
EndGlobal

DataStructures/Common/PrimesList.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static PrimesList Instance
6565
/// </summary>
6666
private static void _initializeData()
6767
{
68-
_primesDocPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), @"Data/PrimesDocument_10K.csv");
68+
_primesDocPath = Path.Combine(Path.GetDirectoryName(typeof(PrimesList).GetTypeInfo().Assembly.Location), @"Data/PrimesDocument_10K.csv");
6969
string[] lines = File.ReadAllLines(_primesDocPath);
7070

7171
foreach (var line in lines)

DataStructures/DataStructures.csproj

+10-110
Original file line numberDiff line numberDiff line change
@@ -1,121 +1,21 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3-
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
1+
<Project Sdk="Microsoft.NET.Sdk">
42
<PropertyGroup>
5-
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
6-
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
7-
<ProjectGuid>{464251A0-3667-42BA-A3D5-0581D65C442B}</ProjectGuid>
8-
<OutputType>Library</OutputType>
9-
<AppDesignerFolder>Properties</AppDesignerFolder>
10-
<RootNamespace>DataStructures</RootNamespace>
11-
<AssemblyName>DataStrcutres</AssemblyName>
12-
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
13-
<FileAlignment>512</FileAlignment>
3+
<TargetFramework>netcoreapp1.1</TargetFramework>
144
</PropertyGroup>
15-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
16-
<DebugSymbols>true</DebugSymbols>
17-
<DebugType>full</DebugType>
18-
<Optimize>false</Optimize>
19-
<OutputPath>bin\Debug\</OutputPath>
20-
<DefineConstants>DEBUG;TRACE</DefineConstants>
21-
<ErrorReport>prompt</ErrorReport>
22-
<WarningLevel>4</WarningLevel>
23-
</PropertyGroup>
24-
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
25-
<DebugType>pdbonly</DebugType>
26-
<Optimize>true</Optimize>
27-
<OutputPath>bin\Release\</OutputPath>
28-
<DefineConstants>TRACE</DefineConstants>
29-
<ErrorReport>prompt</ErrorReport>
30-
<WarningLevel>4</WarningLevel>
31-
</PropertyGroup>
32-
<ItemGroup>
33-
<Reference Include="System" />
34-
<Reference Include="System.Core" />
35-
<Reference Include="System.Xml.Linq" />
36-
<Reference Include="System.Data.DataSetExtensions" />
37-
<Reference Include="Microsoft.CSharp" />
38-
<Reference Include="System.Data" />
39-
<Reference Include="System.Xml" />
40-
</ItemGroup>
5+
416
<ItemGroup>
42-
<Compile Include="Dictionaries\CuckooHashTable.cs" />
43-
<Compile Include="Dictionaries\OpenAddressingHashTable.cs" />
44-
<Compile Include="Dictionaries\OpenScatterHashTable.cs" />
45-
<Compile Include="Graphs\DirectedSparseGraph.cs" />
46-
<Compile Include="Graphs\DirectedWeightedSparseGraph.cs" />
47-
<Compile Include="Graphs\UndirectedWeightedDenseGraph.cs" />
48-
<Compile Include="Graphs\UndirectedWeightedSparseGraph.cs" />
49-
<Compile Include="Graphs\WeightedEdge.cs" />
50-
<Compile Include="Hashing\PrimeHashingFamily.cs" />
51-
<Compile Include="Hashing\UniversalHashingFamily.cs" />
52-
<Compile Include="Heaps\BinomialMinHeap.cs" />
53-
<Compile Include="Lists\SkipList.cs" />
54-
<Compile Include="Lists\SkipListNode.cs" />
55-
<Compile Include="Trees\AugmentedBinarySearchTree.cs" />
56-
<Compile Include="Trees\AVLTree.cs" />
57-
<Compile Include="Trees\AVLTreeNode.cs" />
58-
<Compile Include="Trees\BinarySearchTree.cs" />
59-
<Compile Include="Trees\BinarySearchTreeNode.cs" />
60-
<Compile Include="Trees\IBinarySearchTree.cs" />
61-
<Compile Include="Heaps\IMaxHeap.cs" />
62-
<Compile Include="Heaps\IMinHeap.cs" />
63-
<Compile Include="Properties\AssemblyInfo.cs" />
64-
<Compile Include="Lists\Stack.cs" />
65-
<Compile Include="Lists\ArrayList.cs" />
66-
<Compile Include="Lists\DLinkedList.cs" />
67-
<Compile Include="Lists\SLinkedList.cs" />
68-
<Compile Include="Lists\Queue.cs" />
69-
<Compile Include="Heaps\BinaryMinHeap.cs" />
70-
<Compile Include="Heaps\BinaryMaxHeap.cs" />
71-
<Compile Include="Common\Helpers.cs" />
72-
<Compile Include="Heaps\KeyedPriorityQueue.cs" />
73-
<Compile Include="Heaps\MinPriorityQueue.cs" />
74-
<Compile Include="Common\Comparers.cs" />
75-
<Compile Include="Trees\RedBlackTree.cs" />
76-
<Compile Include="Trees\RedBlackTreeNode.cs" />
77-
<Compile Include="Trees\TreeDrawer.cs" />
78-
<Compile Include="Dictionaries\ChainedHashTable.cs" />
79-
<Compile Include="Lists\DLinkedList_KeyValue.cs" />
80-
<Compile Include="Common\PrimesList.cs" />
81-
<Compile Include="Graphs\UndirectedDenseGraph.cs" />
82-
<Compile Include="Graphs\UndirectedSparseGraph.cs" />
83-
<Compile Include="Graphs\IGraph.cs" />
84-
<Compile Include="Graphs\DirectedDenseGraph.cs" />
85-
<Compile Include="Graphs\DirectedWeightedDenseGraph.cs" />
86-
<Compile Include="Graphs\IWeightedGraph.cs" />
87-
<Compile Include="Graphs\CliqueGraph.cs" />
88-
<Compile Include="Trees\Trie.cs" />
89-
<Compile Include="Trees\TrieMap.cs" />
90-
<Compile Include="Trees\TrieMapNode.cs" />
91-
<Compile Include="Trees\TrieNode.cs" />
92-
<Compile Include="Graphs\UnweightedEdge.cs" />
93-
<Compile Include="Graphs\IEdge.cs" />
94-
<Compile Include="SortedCollections\SortedList.cs" />
95-
<Compile Include="SortedCollections\SortedDictionary.cs" />
96-
<Compile Include="Trees\RedBlackTreeMap.cs" />
97-
<Compile Include="Trees\RedBlackTreeMapNode.cs" />
98-
<Compile Include="Trees\BinarySearchTreeMapNode.cs" />
99-
<Compile Include="Trees\BinarySearchTreeMap.cs" />
7+
<PackageReference Include="xunit" Version="2.3.1" />
1008
</ItemGroup>
101-
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
102-
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
103-
Other similar extension points exist, see Microsoft.Common.targets.
104-
<Target Name="BeforeBuild">
105-
</Target>
106-
<Target Name="AfterBuild">
107-
</Target>
108-
-->
9+
10910
<ItemGroup>
110-
<None Include="Data\PrimesDocument_10K.csv">
11+
<Content Include="Data\PrimesDocument_10K.csv">
11112
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
112-
</None>
13+
</Content>
11314
</ItemGroup>
15+
11416
<ItemGroup>
115-
<Content Include="Data\PrimesDocument_10K.txt">
17+
<None Update="Data\PrimesDocument_10K.csv">
11618
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
117-
</Content>
19+
</None>
11820
</ItemGroup>
119-
<ItemGroup />
120-
<ItemGroup />
12121
</Project>

0 commit comments

Comments
 (0)