Beispiel #1
0
        public void Safari_IPad()
        {
            var isSafari = Safari.TryParse(UserAgents.Safari_IPad, out var safari);

            Assert.True(isSafari);
            Assert.Equal(DeviceTypes.Tablet, safari.DeviceType);
            Assert.Equal(OperatingSystems.IOS, safari.OS);
        }
Beispiel #2
0
        public void Safari_Windows()
        {
            var isSafari = Safari.TryParse(UserAgents.Safari12_Windows, out var safari);

            Assert.True(isSafari);
            Assert.Equal(DeviceTypes.Desktop, safari.DeviceType);
            Assert.Equal(OperatingSystems.Windows, safari.OS);
        }
        public void Safari_Windows()
        {
            var isFireFox = Safari.TryParse(UserAgents.Safari12_Windows, out var firefox);

            Assert.True(isFireFox);
            Assert.Equal(DeviceTypes.Desktop, firefox.DeviceType);
            Assert.Equal(OperatingSystems.Windows, firefox.OS);
        }
        public void Safari_IPhone()
        {
            var isFireFox = Safari.TryParse(UserAgents.Safari_IPhone, out var firefox);

            Assert.True(isFireFox);
            Assert.Equal(DeviceTypes.Mobile, firefox.DeviceType);
            Assert.Equal(OperatingSystems.IOS, firefox.OS);
        }
Beispiel #5
0
        public void Safari_OSX()
        {
            var isSafari = Safari.TryParse(UserAgents.Safari12Osx, out var safari);

            Assert.True(isSafari);
            Assert.Equal(DeviceTypes.Desktop, safari.DeviceType);
            Assert.Equal(OperatingSystems.MacOSX, safari.OS);
        }
Beispiel #6
0
        public void Safari_IPhone()
        {
            var isSafari = Safari.TryParse(UserAgents.SafariIPhone, out var safari);

            Assert.True(isSafari);
            Assert.Equal(DeviceTypes.Mobile, safari.DeviceType);
            Assert.Equal(OperatingSystems.IOS, safari.OS);
        }