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

LogParse_Regex_yourdamage_damage_hpdrain() private method

private LogParse_Regex_yourdamage_damage_hpdrain ( ) : void
return void
        public void LogParse_Regex_yourdamage_damage_hpdrain()
        {
            string testLine = "Frost Fury hit Junghado for 545 damage and drained 163 HP.";

            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 == "hit");
            Assert.IsTrue(m.Groups["target"].Success && m.Groups["target"].Value == "Junghado");
            Assert.IsTrue(m.Groups["damage"].Success && m.Groups["damage"].Value == "545");
            Assert.IsTrue(m.Groups["HPDrain"].Success && m.Groups["HPDrain"].Value == "163");
            Assert.IsFalse(m.Groups["FocusDrain"].Success);
            Assert.IsFalse(m.Groups["skillremove"].Success);
        }