public void Constructor_GivenCapabilityAndElement_InitializesProperties() { var expectedCapability = Capability.Closable; var expectedElement = new object(); var sut = new MissingCapabilityException(expectedCapability, expectedElement); sut.Capability.Should().Be(expectedCapability); sut.Element.Should().BeSameAs(expectedElement); }
public void Constructor_GivenNullElement_DoesNotThrowException() { var sut = new MissingCapabilityException(Capability.Readable, null); sut.Element.Should().BeNull(); }