public void InheritedRelatedLocalAttributesShouldTrigger() { var syntaxTree = SyntaxTreeTestFactory.FromTestFilePath("InheritedRelatedLocalAttribute.cs"); var compilation = CompilationHelper.CreateCompilation(new[] { syntaxTree }); var transformable = TransformLocator.IsTransformable(compilation, syntaxTree); transformable.ShouldBe(true); }
public void UnrelatedAssemblyAttributesShouldNotTrigger() { var syntaxTree = SyntaxTreeTestFactory.FromTestFilePath("UnrelatedAssemblyAttribute.cs"); var compilation = CompilationHelper.CreateCompilation(new[] { syntaxTree }); var transformable = TransformLocator.IsTransformable(compilation, syntaxTree); transformable.ShouldBe(false); }