public void PotentiallyBlittableStructs_ShouldNotPatch() { var type = m_FixtureTestAssembly.GetType("ShouldNotPatch.StructWithLayoutAttr"); MockInjector.IsPatched(type).ShouldBeFalse(); }
public void Interfaces_ShouldNotPatch() { var type = m_FixtureTestAssembly.GetType("ShouldNotPatch.Interface"); MockInjector.IsPatched(type).ShouldBeFalse(); }
public void PublicNestedClasses_ShouldPatch() { var type = GetType(m_TestAssembly, "ShouldPatch.ClassWithNestedTypes/PublicNested"); MockInjector.IsPatched(type).ShouldBeTrue(); }
public void InternalNestedClasses_ShouldPatch() { var type = m_FixtureTestAssembly.GetType("ShouldPatch.ClassWithNestedTypes/InternalNested"); MockInjector.IsPatched(type).ShouldBeTrue(); }
public void PrivateNestedTypes_ShouldNotPatch() { var type = GetType(m_TestAssembly, "ShouldNotPatch.ClassWithPrivateNestedType/PrivateNested"); MockInjector.IsPatched(type).ShouldBeFalse(); }