public void CheckIfFilterTypeExcludeRightTypes() { var weaverHelper = new WeaverHelper(@"AssemblyWithTypeFilter\AssemblyWithTypeFilter.csproj"); var assembly = weaverHelper.Assembly; var instance = assembly.GetInstance("TestClassExclude"); EventTester.TestPropertyNotCalled(instance); instance = assembly.GetInstance("PropertyChangedTest.TestClassInclude"); EventTester.TestProperty(instance, false); Verifier.Verify(weaverHelper.BeforeAssemblyPath, weaverHelper.AfterAssemblyPath); }
public void WithCompilerGeneratedAttribute() { var instance = assembly.GetInstance("ClassWithCompilerGeneratedAttribute"); EventTester.TestPropertyNotCalled(instance); }
public void CheckIfFilterTypeExcludeCorrectTypes() { var instance = testResult.GetInstance("TestClassExclude"); EventTester.TestPropertyNotCalled(instance); }
public virtual void WithCompilerGeneratedAttribute() { var instance = testResult.GetInstance("ClassWithCompilerGeneratedAttribute"); EventTester.TestPropertyNotCalled(instance); }
public void CheckIfFilterTypeExcludeCorrectTypes() { var instance = weaverHelper.Assembly.GetInstance("TestClassExclude"); EventTester.TestPropertyNotCalled(instance); }