コード例 #1
0
        public void ShiftrUnitTests(JObject spec, JObject data, JObject expected)
        {
            Shiftr shiftr = new Shiftr(spec);
            var    actual = shiftr.Transform(data);

            actual.Should().BeEquivalentTo(expected);
        }
コード例 #2
0
        // 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);
        }