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

LogParse_Regex_yourdamage_critical() private method

private LogParse_Regex_yourdamage_critical ( ) : void
return void
        public void LogParse_Regex_yourdamage_critical()
        {
            string testLine = "Blazing Palm critically hit Blackram Landing Soldier for 736 damage.";

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

            Assert.IsTrue(m.Groups["skill"].Success && m.Groups["skill"].Value == "Blazing Palm");
            Assert.IsTrue(m.Groups["critical"].Success && m.Groups["critical"].Value == "critically hit");
            Assert.IsTrue(m.Groups["target"].Success && m.Groups["target"].Value == "Blackram Landing Soldier");
            Assert.IsTrue(m.Groups["damage"].Success && m.Groups["damage"].Value == "736");
            Assert.IsFalse(m.Groups["HPDrain"].Success);
            Assert.IsFalse(m.Groups["FocusDrain"].Success);
            Assert.IsFalse(m.Groups["skillremove"].Success);
        }