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