Archetype.Tests.CastingTests.CastingToAnInterfaceWhenThereIsAConflictBetweenModulesPrefersTheModuleThatWasLoadedLast C# (CSharp) Méthode

CastingToAnInterfaceWhenThereIsAConflictBetweenModulesPrefersTheModuleThatWasLoadedLast() private méthode

        public void CastingToAnInterfaceWhenThereIsAConflictBetweenModulesPrefersTheModuleThatWasLoadedLast()
        {
            var first = new DisposableObject();
            var second = new DisposableObject();
            dynamic value = new DelegatingObject( first, second );
            IDisposable instance = value;
            Assert.AreSame( second, instance );
        }