-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf5b2d8
commit 6faf387
Showing
1,270 changed files
with
24,130 additions
and
1 deletion.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System.Collections.Generic; | ||
using Xunit; | ||
using Exercise1; | ||
|
||
namespace Exercise1_tests | ||
{ | ||
public class ResultTest | ||
{ | ||
public static TheoryData<List<int>, List<int>, List<int>, List<int>, int, long> testData | ||
{ | ||
get | ||
{ | ||
var data = new TheoryData<List<int>, List<int>, List<int>, List<int>, int, long>(); | ||
data.Add(new List<int> { 2, 3 }, new List<int> { 4 }, new List<int> { 2 }, new List<int> { 1, 2, 3 }, 10, 3); | ||
data.Add(new List<int> { 4 }, new List<int> { 3, 4, 1 }, new List<int> { 3, 2 }, new List<int> { 4 }, 12, 2); | ||
data.Add(new List<int> { 4 }, new List<int> { 3, 4, 1 }, new List<int> { 3, 2 }, new List<int> { 4 }, 3, 0); // Cannot buy all 4 | ||
return data; | ||
} | ||
} | ||
|
||
|
||
[Theory, MemberData(nameof(testData))] | ||
public void GetNumberOfOptions(List<int> priceOfJeans, List<int> priceOfShoes, List<int> priceOfSkirts, List<int> priceOfTops, int dollars, long expectedResult) | ||
{ | ||
long currentResult = Result.GetNumberOfOptions(priceOfJeans, priceOfShoes, priceOfSkirts, priceOfTops, dollars); | ||
Assert.Equal(expectedResult, currentResult); | ||
} | ||
} | ||
} |
Binary file added
BIN
+95.3 KB
...exercise1-tests/bin/Debug/netcoreapp3.1/Microsoft.TestPlatform.CommunicationUtilities.dll
Binary file not shown.
Binary file added
BIN
+50.8 KB
AmazonTest/exercise1-tests/bin/Debug/netcoreapp3.1/Microsoft.TestPlatform.CoreUtilities.dll
Binary file not shown.
Binary file added
BIN
+162 KB
...onTest/exercise1-tests/bin/Debug/netcoreapp3.1/Microsoft.TestPlatform.CrossPlatEngine.dll
Binary file not shown.
Binary file added
BIN
+38.3 KB
...t/exercise1-tests/bin/Debug/netcoreapp3.1/Microsoft.TestPlatform.PlatformAbstractions.dll
Binary file not shown.
Binary file added
BIN
+49.3 KB
AmazonTest/exercise1-tests/bin/Debug/netcoreapp3.1/Microsoft.TestPlatform.Utilities.dll
Binary file not shown.
Binary file added
BIN
+23.3 KB
...Test/exercise1-tests/bin/Debug/netcoreapp3.1/Microsoft.VisualStudio.CodeCoverage.Shim.dll
Binary file not shown.
Binary file added
BIN
+155 KB
...st/exercise1-tests/bin/Debug/netcoreapp3.1/Microsoft.VisualStudio.TestPlatform.Common.dll
Binary file not shown.
Binary file added
BIN
+156 KB
...ercise1-tests/bin/Debug/netcoreapp3.1/Microsoft.VisualStudio.TestPlatform.ObjectModel.dll
Binary file not shown.
Binary file added
BIN
+458 KB
AmazonTest/exercise1-tests/bin/Debug/netcoreapp3.1/Newtonsoft.Json.dll
Binary file not shown.
Binary file added
BIN
+106 KB
AmazonTest/exercise1-tests/bin/Debug/netcoreapp3.1/NuGet.Frameworks.dll
Binary file not shown.
Binary file added
BIN
+22.3 KB
...ts/bin/Debug/netcoreapp3.1/cs/Microsoft.TestPlatform.CommunicationUtilities.resources.dll
Binary file not shown.
Binary file added
BIN
+22.8 KB
...cise1-tests/bin/Debug/netcoreapp3.1/cs/Microsoft.TestPlatform.CoreUtilities.resources.dll
Binary file not shown.
Binary file added
BIN
+25.3 KB
...se1-tests/bin/Debug/netcoreapp3.1/cs/Microsoft.TestPlatform.CrossPlatEngine.resources.dll
Binary file not shown.
Binary file added
BIN
+25.8 KB
...tests/bin/Debug/netcoreapp3.1/cs/Microsoft.VisualStudio.TestPlatform.Common.resources.dll
Binary file not shown.
Binary file added
BIN
+29.5 KB
.../bin/Debug/netcoreapp3.1/cs/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll
Binary file not shown.
Binary file added
BIN
+22.3 KB
...ts/bin/Debug/netcoreapp3.1/de/Microsoft.TestPlatform.CommunicationUtilities.resources.dll
Binary file not shown.
Binary file added
BIN
+22.8 KB
...cise1-tests/bin/Debug/netcoreapp3.1/de/Microsoft.TestPlatform.CoreUtilities.resources.dll
Binary file not shown.
Binary file added
BIN
+25.3 KB
...se1-tests/bin/Debug/netcoreapp3.1/de/Microsoft.TestPlatform.CrossPlatEngine.resources.dll
Binary file not shown.
Binary file added
BIN
+25.8 KB
...tests/bin/Debug/netcoreapp3.1/de/Microsoft.VisualStudio.TestPlatform.Common.resources.dll
Binary file not shown.
Binary file added
BIN
+30 KB
.../bin/Debug/netcoreapp3.1/de/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll
Binary file not shown.
Binary file added
BIN
+22.3 KB
...ts/bin/Debug/netcoreapp3.1/es/Microsoft.TestPlatform.CommunicationUtilities.resources.dll
Binary file not shown.
Binary file added
BIN
+22.8 KB
...cise1-tests/bin/Debug/netcoreapp3.1/es/Microsoft.TestPlatform.CoreUtilities.resources.dll
Binary file not shown.
Binary file added
BIN
+25.3 KB
...se1-tests/bin/Debug/netcoreapp3.1/es/Microsoft.TestPlatform.CrossPlatEngine.resources.dll
Binary file not shown.
Binary file added
BIN
+25.8 KB
...tests/bin/Debug/netcoreapp3.1/es/Microsoft.VisualStudio.TestPlatform.Common.resources.dll
Binary file not shown.
Binary file added
BIN
+29.8 KB
.../bin/Debug/netcoreapp3.1/es/Microsoft.VisualStudio.TestPlatform.ObjectModel.resources.dll
Binary file not shown.
Binary file not shown.
Oops, something went wrong.