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); }
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); }
public void Unknown() { var resolver = MockService.Browser(""); Assert.NotNull(resolver); Assert.Equal(Browser.Unknown, resolver.Name); Assert.Equal(new Version(0, 0), resolver.Version); }
public void Firefox(string agent) { var resolver = MockService.Browser(agent); Assert.Equal(Browser.Firefox, resolver.Name); }
public void Others(string agent) { var resolver = MockService.Browser(agent); Assert.Equal(Browser.Others, resolver.Name); }
public void Safari(string agent) { var resolver = MockService.Browser(agent); Assert.Equal(Browser.Safari, resolver.Name); }