예제 #1
0
        public async Task HasMimeTypes()
        {
            var plugin = new PluginEvasion();
            var page   = await LaunchAndGetPage(plugin);

            await page.GoToAsync("https://google.com");

            var finger = await new FingerPrint().GetFingerPrint(page);

            Assert.Equal(3, finger["plugins"].Count());
            Assert.Equal(4, finger["mimeTypes"].Count());
        }
        public async Task ShouldNotHaveModifications()
        {
            var stealthPlugin = new PluginEvasion();
            var page          = await LaunchAndGetPage(stealthPlugin);

            await page.GoToAsync("https://google.com");


            var fingerPrint = await new FingerPrint().GetFingerPrint(page);

            Assert.Equal(3, fingerPrint["plugins"].Count());
            Assert.Equal(4, fingerPrint["mimeTypes"].Count());
        }