Example #1
0
        public void PotentiallyBlittableStructs_ShouldNotPatch()
        {
            var type = m_FixtureTestAssembly.GetType("ShouldNotPatch.StructWithLayoutAttr");

            MockInjector.IsPatched(type).ShouldBeFalse();
        }
Example #2
0
        public void Interfaces_ShouldNotPatch()
        {
            var type = m_FixtureTestAssembly.GetType("ShouldNotPatch.Interface");

            MockInjector.IsPatched(type).ShouldBeFalse();
        }
Example #3
0
        public void PublicNestedClasses_ShouldPatch()
        {
            var type = GetType(m_TestAssembly, "ShouldPatch.ClassWithNestedTypes/PublicNested");

            MockInjector.IsPatched(type).ShouldBeTrue();
        }
Example #4
0
        public void InternalNestedClasses_ShouldPatch()
        {
            var type = m_FixtureTestAssembly.GetType("ShouldPatch.ClassWithNestedTypes/InternalNested");

            MockInjector.IsPatched(type).ShouldBeTrue();
        }
Example #5
0
        public void PrivateNestedTypes_ShouldNotPatch()
        {
            var type = GetType(m_TestAssembly, "ShouldNotPatch.ClassWithPrivateNestedType/PrivateNested");

            MockInjector.IsPatched(type).ShouldBeFalse();
        }