Example #1
0
        public void ToString_InvalidInheritanceLevel_ThrowsArgumentException(InheritanceLevel inheritanceLevel)
        {
            var attribute = new InheritanceAttribute(inheritanceLevel);

            AssertExtensions.Throws <ArgumentException>(null, () => attribute.ToString());
        }
Example #2
0
        public void ToString_ValidInheritanceLevel_ReturnsExpected(InheritanceLevel inheritanceLevel)
        {
            var attribute = new InheritanceAttribute(inheritanceLevel);

            Assert.Equal(inheritanceLevel.ToString(), attribute.ToString());
        }