public void ToString_InvalidInheritanceLevel_ThrowsArgumentException(InheritanceLevel inheritanceLevel) { var attribute = new InheritanceAttribute(inheritanceLevel); AssertExtensions.Throws <ArgumentException>(null, () => attribute.ToString()); }
public void ToString_ValidInheritanceLevel_ReturnsExpected(InheritanceLevel inheritanceLevel) { var attribute = new InheritanceAttribute(inheritanceLevel); Assert.Equal(inheritanceLevel.ToString(), attribute.ToString()); }