Ejemplo n.º 1
0
        public void Edge(string version, string agent)
        {
            var resolver = MockService.BrowserService(agent);

            Assert.Equal(Browser.Edge, resolver.Name);
            Assert.Equal(new Version(version), resolver.Version);
        }
Ejemplo n.º 2
0
        public void InternetExplorer(string version, string agent)
        {
            var resolver = MockService.BrowserService(agent);

            Assert.Equal(Browser.InternetExplorer, resolver.Name);
            Assert.Equal(new Version(version), resolver.Version);
        }
Ejemplo n.º 3
0
        public void Unknown()
        {
            var resolver = MockService.BrowserService("");

            Assert.NotNull(resolver);
            Assert.Equal(Browser.Unknown, resolver.Name);
            Assert.Equal(new Version(0, 0), resolver.Version);
        }
Ejemplo n.º 4
0
        public void Firefox(string agent)
        {
            var resolver = MockService.BrowserService(agent);

            Assert.Equal(Browser.Firefox, resolver.Name);
        }
Ejemplo n.º 5
0
        public void Others(string agent)
        {
            var resolver = MockService.BrowserService(agent);

            Assert.Equal(Browser.Others, resolver.Name);
        }