Exemplo n.º 1
0
        public void TestRuleSet()
        {
            var ruleSet = new SampleRuleSet();

            Assert.That(ruleSet.RuleSetName, Is.EqualTo("サンプルルールセット"));
            Assert.That(ruleSet.GetRules().Length, Is.AtLeast(1));
        }
Exemplo n.º 2
0
        public void TestValidate()
        {
            var ruleSet = new SampleRuleSet();
            var results = Validator.Validate(ruleSet, "Assets/VitDeck/Validator/Tests/Validate", true);

            foreach (var result in results)
            {
                Debug.Log(result.GetResultLog());
            }
            Assert.That(results.Length, Is.AtLeast(1));
        }