public void IsSatisfiedByNullThrows() { // Arrange var sut = new ValueTypeSpecification(); // Act & assert Assert.Throws <ArgumentNullException>(() => sut.IsSatisfiedBy(null)); }
public void IsSatisfiedByNullThrows() { // Fixture setup var sut = new ValueTypeSpecification(); // Exercise system and verify outcome Assert.Throws <ArgumentNullException>(() => sut.IsSatisfiedBy(null)); // Teardown }
public void IsSatisfiedByReturnsCorrectResult(object request, bool expectedResult) { // Arrange var sut = new ValueTypeSpecification(); // Act var result = sut.IsSatisfiedBy(request); // Assert Assert.Equal(expectedResult, result); }
public void IsSatisfiedByReturnsCorrectResult(object request, bool expectedResult) { // Fixture setup var sut = new ValueTypeSpecification(); // Exercise system var result = sut.IsSatisfiedBy(request); // Verify outcome Assert.Equal(expectedResult, result); // Teardown }