예제 #1
0
        public void Edge(string version, string agent)
        {
            var resolver = MockService.Browser(agent);

            Assert.Equal(Browser.Edge, resolver.Name);
            Assert.Equal(new Version(version), resolver.Version);
        }
예제 #2
0
        public void InternetExplorer(string version, string agent)
        {
            var resolver = MockService.Browser(agent);

            Assert.Equal(Browser.InternetExplorer, resolver.Name);
            Assert.Equal(new Version(version), resolver.Version);
        }
예제 #3
0
        public void Unknown()
        {
            var resolver = MockService.Browser("");

            Assert.NotNull(resolver);
            Assert.Equal(Browser.Unknown, resolver.Name);
            Assert.Equal(new Version(0, 0), resolver.Version);
        }
예제 #4
0
        public void Firefox(string agent)
        {
            var resolver = MockService.Browser(agent);

            Assert.Equal(Browser.Firefox, resolver.Name);
        }
예제 #5
0
        public void Others(string agent)
        {
            var resolver = MockService.Browser(agent);

            Assert.Equal(Browser.Others, resolver.Name);
        }
예제 #6
0
        public void Safari(string agent)
        {
            var resolver = MockService.Browser(agent);

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