示例#1
0
 public void ExecuteMethodThrowsException() {
    var fixture = new TestFixture(typeof(Foo));
    var tm = new TestMethod(fixture, typeof(Foo).GetMethod("MethodWithException"));
    tm.Execute(_listener);
    Assert.Equals(" MethodWithException", _sequence);
    Assert.StartsWith(" TS:MethodWithException TE:MethodWithException ", SimpleTestListener.Messages);
 }
示例#2
0
 public void ExecuteMethod() {
    var fixture = new TestFixture(typeof(Foo));
    var tm = new TestMethod(fixture, typeof(Foo).GetMethod("AMethod"));
    tm.Execute( _listener);
    Assert.Equals(" AMethod", _sequence);
    Assert.Equals(" TS:AMethod TP:AMethod", SimpleTestListener.Messages);
 }
示例#3
0
        public void ExecuteMethodThrowsException()
        {
            var fixture = new TestFixture(typeof(Foo));
            var tm      = new TestMethod(fixture, typeof(Foo).GetMethod("MethodWithException"));

            tm.Execute(_listener);
            Assert.Equals(" MethodWithException", _sequence);
            Assert.StartsWith(" TS:MethodWithException TE:MethodWithException ", SimpleTestListener.Messages);
        }
示例#4
0
        public void ExecuteMethod()
        {
            var fixture = new TestFixture(typeof(Foo));
            var tm      = new TestMethod(fixture, typeof(Foo).GetMethod("AMethod"));

            tm.Execute(_listener);
            Assert.Equals(" AMethod", _sequence);
            Assert.Equals(" TS:AMethod TP:AMethod", SimpleTestListener.Messages);
        }