Initial commit

This commit is contained in:
Your Name
2026-09-29 16:28:20 +00:00
commit 17e5d25b39
28 changed files with 961 additions and 0 deletions
+19
View File
@@ -0,0 +1,19 @@
using IceCreamBuyers;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace IceCreamBuyers.Tests
{
[TestClass]
public class BuyersTests
{
[TestMethod]
public void ShoppingListTotal()
{
// Anke: 2 flavours x 2 scoops x base prices (3 + 2) = 10.
// Red or flaky — why? (PriceList adds random surge pricing;
// it stands for the external pricing service.)
var buyers = new Buyers();
Assert.AreEqual(10, buyers.ShoppingListTotal("Anke"));
}
}
}
+20
View File
@@ -0,0 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageReference Include="MSTest.TestAdapter" Version="3.6.4" />
<PackageReference Include="MSTest.TestFramework" Version="3.6.4" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\src\Buyers\Buyers.csproj" />
</ItemGroup>
</Project>