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

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

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

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

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

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