예제 #1
0
        public void Valid(string pageSource)
        {
            var command = new IsJsonCommand {Test = new SeleniteTest()};
            var driver = new WebClientDriver
                {
                    PageSource = pageSource,
                };

            command.Execute(driver, null);
        }
예제 #2
0
        public void Invalid(string pageSource)
        {
            var command = new IsJsonCommand { Test = new SeleniteTest() };
            var driver = new WebClientDriver
            {
                PageSource = pageSource,
            };

            Assert.Throws<JsonReaderException>(() => command.Execute(driver, null));
        }