Skip to content

Commit

Permalink
[fix] fixed NUnit tests for rendered mocks
Browse files Browse the repository at this point in the history
- disabled inheritance of TestFixtureAttribute for rendered mocks classes
  • Loading branch information
MchKosticyn committed May 8, 2023
1 parent 28abf2a commit e83a0bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions VSharp.Test/Utils/DummyTypeInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ public class DummyFilter : IPreFilter
/* Filter for exploring all possible methods */
public bool IsMatch(Type type)
{
return true;
return Attribute.IsDefined(type, typeof(TestSvmFixtureAttribute), false);
}

public bool IsMatch(Type type, MethodInfo method)
{
return true;
return IsMatch(type);
}
}

Expand Down Expand Up @@ -140,4 +140,4 @@ public override string ToString()
return Type.ToString();
}
}
}
}

0 comments on commit e83a0bb

Please sign in to comment.