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

LogParse_Regex_incomingdamage2_counter() private method

private LogParse_Regex_incomingdamage2_counter ( ) : void
return void
        public void LogParse_Regex_incomingdamage2_counter()
        {
            string testLine = "PLAYER NAME countered Cobalt Widow's Frost Fury but received 216 damage.";

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

            Assert.IsTrue(m.Groups["target"].Success && m.Groups["target"].Value == "PLAYER NAME");
            Assert.IsTrue(m.Groups["actor"].Success && m.Groups["actor"].Value == "Cobalt Widow");
            Assert.IsTrue(m.Groups["skill"].Success && m.Groups["skill"].Value == "Frost Fury");
            Assert.IsTrue(m.Groups["damage"].Success && m.Groups["damage"].Value == "216");
            Assert.IsFalse(m.Groups["HPDrain"].Success);
            Assert.IsFalse(m.Groups["debuff"].Success);
        }