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