public void LineExpected() { AsExpected <AsExpectedTest> expected = new AsExpected <AsExpectedTest> ("actual\n", this); var end = expected.Line("actual").End(); Assert.AreEqual(this, end); }
public void NotExpected() { //bool failed = false; AsExpected <AsExpectedTest> expected = new AsExpected <AsExpectedTest> ("actual\n", this); expected.Line("not actual").End(); //TODO: should be like this: /* * try { * } catch (Exception ex) { * Console.Error.WriteLine (ex.GetType ()); * Assert.AreEqual ("expected:<[not ]actual\\n\" + \"> but was:<[]actual\\n" + ">", ex.Message); * failed = true; * } * Assert.IsTrue (failed); */ }