Example #1
0
    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);
    }
Example #2
0
    public void WithCompilerGeneratedAttribute()
    {
        var instance = assembly.GetInstance("ClassWithCompilerGeneratedAttribute");

        EventTester.TestPropertyNotCalled(instance);
    }
    public void CheckIfFilterTypeExcludeCorrectTypes()
    {
        var instance = testResult.GetInstance("TestClassExclude");

        EventTester.TestPropertyNotCalled(instance);
    }
Example #4
0
    public virtual void WithCompilerGeneratedAttribute()
    {
        var instance = testResult.GetInstance("ClassWithCompilerGeneratedAttribute");

        EventTester.TestPropertyNotCalled(instance);
    }
    public void CheckIfFilterTypeExcludeCorrectTypes()
    {
        var instance = weaverHelper.Assembly.GetInstance("TestClassExclude");

        EventTester.TestPropertyNotCalled(instance);
    }