BnS_ACT_Plugin.Test.LogParse_Regex.LogParse_Regex_yourdamage_complex C# (CSharp) Method

LogParse_Regex_yourdamage_complex() private method

private LogParse_Regex_yourdamage_complex ( ) : void
return void
        public void LogParse_Regex_yourdamage_complex()
        {
            string testLine = "Frost Fury critically hit Silver Deva for 986 damage, draining 591 HP and 1 Focus.";

            Match m = BNS_ACT_Plugin.LogParse.regex_yourdamage.Match(testLine);

            Assert.IsTrue(m.Groups["skill"].Success && m.Groups["skill"].Value == "Frost Fury");
            Assert.IsTrue(m.Groups["critical"].Success && m.Groups["critical"].Value == "critically hit");
            Assert.IsTrue(m.Groups["target"].Success && m.Groups["target"].Value == "Silver Deva");
            Assert.IsTrue(m.Groups["damage"].Success && m.Groups["damage"].Value == "986");
            Assert.IsTrue(m.Groups["HPDrain"].Success && m.Groups["HPDrain"].Value == "591");
            Assert.IsTrue(m.Groups["FocusDrain"].Success && m.Groups["FocusDrain"].Value == "1");
            Assert.IsFalse(m.Groups["skillremove"].Success);

            // todo: add test case for skillremove
        }