diff --git a/pMixins.CodeGenerator.Tests/IntegrationTests/CompileTests/MixinDependency/MixinDependencyIsImplementedByTarget.cs b/pMixins.CodeGenerator.Tests/IntegrationTests/CompileTests/MixinDependency/MixinDependencyIsImplementedByTarget.cs index 545648d..bfaafd1 100644 --- a/pMixins.CodeGenerator.Tests/IntegrationTests/CompileTests/MixinDependency/MixinDependencyIsImplementedByTarget.cs +++ b/pMixins.CodeGenerator.Tests/IntegrationTests/CompileTests/MixinDependency/MixinDependencyIsImplementedByTarget.cs @@ -40,7 +40,7 @@ public class IDependency public int GetNumber(){ return 0;} } - public class Mixin : IMixinDependency + public class Mixin : IMixinDependency { public IDependency Dependency { get; set; } diff --git a/pMixins.CodeGenerator.Tests/IntegrationTests/ExpectedErrors/ExpectedErrorsTestBase.cs b/pMixins.CodeGenerator.Tests/IntegrationTests/ExpectedErrors/ExpectedErrorsTestBase.cs index 33c2990..c660e3a 100644 --- a/pMixins.CodeGenerator.Tests/IntegrationTests/ExpectedErrors/ExpectedErrorsTestBase.cs +++ b/pMixins.CodeGenerator.Tests/IntegrationTests/ExpectedErrors/ExpectedErrorsTestBase.cs @@ -29,10 +29,13 @@ public abstract class ExpectedErrorsTestBase : GenerateCodeTestBase { protected abstract Dictionary> ExpectedErrorMessages { get; } + protected virtual bool ExpectNoCodeShouldBeGenerated{get { return true; }} + [Test] public void GeneratedCodeShouldBeEmpty() { - GeneratedCode.ShouldBeEmpty(); + if (ExpectNoCodeShouldBeGenerated) + GeneratedCode.ShouldBeEmpty(); } [Test] diff --git a/pMixins.CodeGenerator.Tests/IntegrationTests/ExpectedErrors/MixinDependencyIsClassAndIsNotProvided.cs b/pMixins.CodeGenerator.Tests/IntegrationTests/ExpectedErrors/MixinDependencyIsClassAndIsNotProvided.cs index 1636e5d..37962e1 100644 --- a/pMixins.CodeGenerator.Tests/IntegrationTests/ExpectedErrors/MixinDependencyIsClassAndIsNotProvided.cs +++ b/pMixins.CodeGenerator.Tests/IntegrationTests/ExpectedErrors/MixinDependencyIsClassAndIsNotProvided.cs @@ -24,6 +24,12 @@ namespace CopaceticSoftware.pMixins.CodeGenerator.Tests.IntegrationTests.Expecte { public class MixinDependencyIsClassAndIsNotProvided : ExpectedErrorsTestBase { + protected override bool ExpectNoCodeShouldBeGenerated + { + //It is ok if code is generated + get { return false; } + } + protected override string SourceCode { get @@ -64,7 +70,7 @@ protected override Dictionary> ExpectedE string.Format( Strings.ErrorMixinDependencyIsClassAndIsNotSatisified, "Test.Mixin", - "Test.Target", + "Target", "Test.Dependency") } };