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

LogParse_Regex_yourdamage_drain() private method

private LogParse_Regex_yourdamage_drain ( ) : void
return void
        public void LogParse_Regex_yourdamage_drain()
        {
            string testLine = "Dragonwhorl hit Sajifi for 283 damage, draining 283 HP and 1 Focus.";

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

            Assert.IsTrue(m.Groups["skill"].Success && m.Groups["skill"].Value == "Dragonwhorl");
            Assert.IsTrue(m.Groups["critical"].Success && m.Groups["critical"].Value == "hit");
            Assert.IsTrue(m.Groups["target"].Success && m.Groups["target"].Value == "Sajifi");
            Assert.IsTrue(m.Groups["damage"].Success && m.Groups["damage"].Value == "283");
            Assert.IsTrue(m.Groups["HPDrain"].Success && m.Groups["HPDrain"].Value == "283");
            Assert.IsTrue(m.Groups["FocusDrain"].Success && m.Groups["FocusDrain"].Value == "1");
            Assert.IsFalse(m.Groups["skillremove"].Success);
        }