コード例 #1
0
        public void GetScreenshotElementNone(string actionRule)
        {
            // execute
            var screenshot = ExecuteAction <GetScreenshot>(MockBy.None(), actionRule)
                             .ExtractionResults[0]
                             .Entities[0]
                             .EntityContentEntries["screenshot"];

            // assertion (no assertion here, expected is no exception)
            Assert.IsTrue(File.Exists($"{OutputDir}/image-b.png"));
            Assert.IsTrue(screenshot.Contains("image-b.png"));
        }