Exemple #1
0
        public async Task GoalTest()
        {
            var page = await BrowsingContext.New(Configuration.Default.WithDefaultLoader())
                       .OpenAsync(testAddress);

            var goal_element = page.QuerySelector(".lead");

            Goal goal_values = new Goal()
            {
                zenny_reward     = 9600,
                hrp_reward       = 500,
                wycadpts_reward  = 960,
                goal_description = "Hunt a Glavenus"
            };

            Goal goal_data = await questManager.GetGoal(goal_element);

            goal_values.ShouldDeepEqual(goal_data);
        }