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

LogParse_Regex_incomingdamage3_damage_knockback() private method

private LogParse_Regex_incomingdamage3_damage_knockback ( ) : void
return void
        public void LogParse_Regex_incomingdamage3_damage_knockback()
        {
            string testLine = "Sochon Gamyung's Fury inflicted 3563 damage and Knockback.";

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

            Assert.IsTrue(m.Groups["actor"].Success && m.Groups["actor"].Value == "Sochon Gamyung");
            Assert.IsTrue(m.Groups["skill"].Success && m.Groups["skill"].Value == "Fury");
            Assert.IsTrue(m.Groups["damage"].Success && m.Groups["damage"].Value == "3563");
            Assert.IsTrue(m.Groups["debuff"].Success && m.Groups["debuff"].Value == "Knockback");
            Assert.IsFalse(m.Groups["target"].Success);

            // todo: add test case for target
        }