示例#1
0
        public void Sqlite(string t, JsonTestCase jsonTestCase)
        {
            _output.WriteLine($"Test case: {t}");

            var input        = jsonTestCase.GetObject <int>("Input", _output);
            var missingParam = jsonTestCase.GetObjectOrDefault <string>("Optional", _output);
            var expected     = jsonTestCase.GetObject <Person>("Expected", _output);

            Assert.Equal(_input[jsonTestCase.TestCase], input);
            Assert.Equal(_expected[jsonTestCase.TestCase].FirstName, expected.FirstName);

            Assert.Null(missingParam);
        }