public void ShiftrUnitTests(JObject spec, JObject data, JObject expected) { Shiftr shiftr = new Shiftr(spec); var actual = shiftr.Transform(data); actual.Should().BeEquivalentTo(expected); }
// TODO: test arrays better (wildcards test array could be in reverse order) public void RunTest(string testCaseName) { var testCase = GetTestCase($"shiftr/{testCaseName}"); Shiftr shiftr = new Shiftr(testCase.Spec); var actual = shiftr.Transform(testCase.Input); actual.Should().BeEquivalentTo(testCase.Expected); }