public void TestAnnotationBasedParser() { MyMapper mapper = new MyMapper(); TestRecord record = new TestRecord("Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) " + "Chrome/48.0.2564.82 Safari/537.36"); record = mapper.Enrich(record); record.deviceClass.Should().Be("Desktop"); record.agentNameVersion.Should().Be("Chrome 48.0.2564.82"); }