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

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

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