Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsKemmann committed Jan 27, 2024
1 parent 66d2386 commit 66a019a
Showing 1 changed file with 25 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,38 @@ namespace CareTogether.Core.Test.ApprovalCalculationTests;
public class FindRequirementApprovalsTest
{
[TestMethod]
public void Foo()
public void EmptyInputsReturnsNull()
{
var result = SharedCalculations.FindRequirementApprovals(
"A", null,
H.Completed([]),
H.Exempted([])
);

Assert.Inconclusive("Not implemented!");
Assert.IsNull(result);
H.AssertDatesAre(result);
}

[TestMethod]
public void EmptyInputsWithSupersededDateReturnsNull()
{
var result = SharedCalculations.FindRequirementApprovals(
"A", H.DT(20),
H.Completed([]),
H.Exempted([])
);

Assert.IsNull(result);
}

[TestMethod]
public void NonMatchingInputsReturnsNull()
{
var result = SharedCalculations.FindRequirementApprovals(
"A", null,
H.Completed([("B", 2), ("C", 3)]),
H.Exempted([("D", 4)])
);

Assert.IsNull(result);
}
}

0 comments on commit 66a019a

Please sign in to comment.