예제 #1
0
        public void InheritedRelatedLocalAttributesShouldTrigger()
        {
            var syntaxTree    = SyntaxTreeTestFactory.FromTestFilePath("InheritedRelatedLocalAttribute.cs");
            var compilation   = CompilationHelper.CreateCompilation(new[] { syntaxTree });
            var transformable = TransformLocator.IsTransformable(compilation, syntaxTree);

            transformable.ShouldBe(true);
        }
예제 #2
0
        public void UnrelatedAssemblyAttributesShouldNotTrigger()
        {
            var syntaxTree    = SyntaxTreeTestFactory.FromTestFilePath("UnrelatedAssemblyAttribute.cs");
            var compilation   = CompilationHelper.CreateCompilation(new[] { syntaxTree });
            var transformable = TransformLocator.IsTransformable(compilation, syntaxTree);

            transformable.ShouldBe(false);
        }