public void ShouldNotThrowExceptionWhenAttributeIsOnMethod() { Assert.DoesNotThrow(() => XAssert.AttributeExistsOnMethodOf <AttributeFixture>( new CultureAttribute("AnyCulture"), o => o.DecoratedMethod(0, 0) ) ); }
public void ShouldThrowExceptionWhenAttributeIsNotOnMethod() { Assert.Throws <AssertionException>(() => XAssert.AttributeExistsOnMethodOf <AttributeFixture>( new CultureAttribute("AnyCulture"), o => o.NonDecoratedMethod(0, 0) ) ); }