コード例 #1
0
        public void TestDirectives()
        {
            Skip    skip    = new Skip("state");
            Include include = new Include("active");

            Assert.AreEqual("@skip(if:$state)", skip.Convert());
            Assert.AreEqual("@include(if:$active)", include.Convert());
        }
コード例 #2
0
        public void TestDirectiveWithFabricDirective()
        {
            Skip    skip    = Directive.Skip("state");
            Include include = Directive.Include("active");

            Assert.AreEqual("@skip(if:$state)", skip.Convert());
            Assert.AreEqual("@include(if:$active)", include.Convert());
        }