Example #1
0
        public void ShouldAllowReAssignmentOfComplexTypes()
        {
            // Arrange
            dynamic d = new DoSomethingUseful();

            // Pre-Assert
            Assert.AreEqual(typeof(DoSomethingUseful), d.GetType());
            // Act
            d = new TheThing();
            // Assert
            Assert.AreEqual(typeof(TheThing), d.GetType());
        }