Example #1
0
        public void EnsureConflictClassHasContext()
        {
            var randomConflict = new MergeWarning(string.Empty);
            Assert.IsNotNull(randomConflict.Context);
            Assert.IsInstanceOf<NullContextDescriptor>(randomConflict.Context);

            // Try to set it to null.
            randomConflict.Context = null;
            Assert.IsNotNull(randomConflict.Context);
            Assert.IsInstanceOf<NullContextDescriptor>(randomConflict.Context);
        }
Example #2
0
        public void EnsureConflictClassHasContext()
        {
            var randomConflict = new MergeWarning(string.Empty);

            Assert.IsNotNull(randomConflict.Context);
            Assert.IsInstanceOf <NullContextDescriptor>(randomConflict.Context);

            // Try to set it to null.
            randomConflict.Context = null;
            Assert.IsNotNull(randomConflict.Context);
            Assert.IsInstanceOf <NullContextDescriptor>(randomConflict.Context);
        }