Ejemplo n.º 1
0
        public void LibraryTestParse()
        {
            var libraryParser = new LibraryParser();

            foreach (var fixture in _fixtureData)
            {
                libraryParser.SetUserAgent(fixture.user_agent);
                var result = libraryParser.Parse();
                result.Success.Should().BeTrue("Match should be with success");

                result.Match.Name.Should().BeEquivalentTo(fixture.client.name, "Names should be equal");
                result.Match.Type.Should().BeEquivalentTo(fixture.client.type, "Types should be equal");
                result.Match.Version.Should().BeEquivalentTo(fixture.client.version, "Versions should be equal");
            }
        }