- Assert ("Method not null (1)",
- (frame1.GetMethod () != null));
-
- AssertEquals ("Class declaring the method (1)",
- this.GetType (),
- frame1.GetMethod ().DeclaringType);
- AssertEquals ("Method name (1)",
- "SetUp",
- frame1.GetMethod ().Name);
-
- Assert ("Method not null (2)",
- (frame2.GetMethod () != null));
-
- AssertEquals ("Class declaring the method (2)",
- this.GetType (),
- frame2.GetMethod ().DeclaringType);
- AssertEquals ("Method name (2)",
- "SetUp",
- frame2.GetMethod ().Name);
-
- Assert ("Method not null (3)",
- (frame3.GetMethod () != null));
-
- AssertEquals ("Class declaring the method (3)",
- this.GetType (),
- frame3.GetMethod ().DeclaringType);
- AssertEquals ("Method name (3)",
- "SetUp",
- frame3.GetMethod ().Name);
+ Assert.IsNotNull (frame1.GetMethod (),
+ "Method not null (1)");
+
+ Assert.AreEqual (this.GetType (),
+ frame1.GetMethod ().DeclaringType,
+ "Class declaring the method (1)");
+ Assert.AreEqual ("SetUp",
+ frame1.GetMethod ().Name,
+ "Method name (1)");
+
+ Assert.IsNotNull (frame2.GetMethod (),
+ "Method not null (2)");
+
+ Assert.AreEqual (this.GetType (),
+ frame2.GetMethod ().DeclaringType,
+ "Class declaring the method (2)");
+ Assert.AreEqual ("SetUp",
+ frame2.GetMethod ().Name,
+ "Method name (2)");
+
+ Assert.IsNotNull (frame3.GetMethod (),
+ "Method not null (3)");
+
+ Assert.AreEqual (this.GetType (),
+ frame3.GetMethod ().DeclaringType,
+ "Class declaring the method (3)");
+ Assert.AreEqual ("SetUp",
+ frame3.GetMethod ().Name,
+ "Method name (3)");