Пример #1
0
        public void IsSubclassOf()
        {
            // Arrange

            // Act

            // Assert
            NullType.IsSubclassOf <object>().Should().BeFalse();

            TestType.IsSubclassOf <object>().Should().BeTrue();

            typeof(ArgumentNullException).IsSubclassOf <ArgumentException>().Should().BeTrue();
            typeof(Exception).IsSubclassOf <ArgumentException>().Should().BeFalse();
        }