Beispiel #1
0
        public void Expected()
        {
            AsExpected <AsExpectedTest> expected = new AsExpected <AsExpectedTest> ("actual", this);
            var end = expected.String("actual").End();

            Assert.AreEqual(this, end);
        }
Beispiel #2
0
        public void LineExpected()
        {
            AsExpected <AsExpectedTest> expected = new AsExpected <AsExpectedTest> ("actual\n", this);
            var end = expected.Line("actual").End();

            Assert.AreEqual(this, end);
        }
Beispiel #3
0
        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);
             */
        }