// "You know it seemed a bit daft me having to guard him when he's a guard."
private static void TestFramework()
{
TextWriter savedOutput = Console.Out;
Console.SetOut(TextWriter.Null);
TestBase testBase = new TestBase();
UnitTestMap unitTestMap = new UnitTestMap();
testBase.TestNoThrow(String.Empty, delegate() { testBase.TestTrue(String.Empty, delegate() { return(true); }); });
testBase.TestThrow(String.Empty, typeof(UnitTestFailureException), delegate() { testBase.TestTrue(String.Empty, delegate() { return(false); }); });
testBase.TestThrow(String.Empty, typeof(UnitTestFailureException), delegate() { testBase.TestTrue(String.Empty, delegate() { throw new NotImplementedException(); }); });
testBase.TestThrow(String.Empty, typeof(UnitTestFailureException), delegate() { testBase.TestNoThrow(String.Empty, delegate() { throw new NotImplementedException(); }); });
testBase.TestThrow(String.Empty, typeof(UnitTestFailureException), delegate() { testBase.TestThrow(String.Empty, typeof(NotImplementedException), delegate() { throw new NotImplementedException(); }); });
testBase.TestThrow(String.Empty, typeof(UnitTestFailureException), delegate() { testBase.TestThrow(String.Empty, typeof(NotImplementedException), delegate() { throw new Exception(); }); });
testBase.TestNoThrow(String.Empty, delegate() { unitTestMap.TestTree(String.Empty, new SplayTreeMap <int, bool>(), new UnitTestMap.Op <int, bool>[] { }, delegate() { }); });
testBase.TestThrow(String.Empty, typeof(UnitTestFailureException), delegate() { unitTestMap.TestTree(String.Empty, new SplayTreeMap <int, bool>(), new UnitTestMap.Op <int, bool>[] { new FailOp(), }, delegate() { throw new NotImplementedException(); }); });
testBase.TestThrow(String.Empty, typeof(UnitTestFailureException), delegate() { unitTestMap.TestTree(String.Empty, new SplayTreeMap <int, bool>(), new UnitTestMap.Op <int, bool>[] { }, delegate() { throw new NotImplementedException(); }); });
Console.WriteLine(new Range2MapEntry(new Range(0, 0), new Range(0, 0), String.Empty).ToString());
Console.WriteLine(new MultiRankMapEntry(0, new Range(0, 0), 0));
SplayTreeMap <int, int> tree = new SplayTreeMap <int, int>();
tree.Add(1, 1);
tree.Add(2, 2);
TestBase.Dump(tree);
Console.SetOut(savedOutput);
}