/// <summary> ///A test for Clear ///</summary> public void ClearTestHelper <T>() { _234Tree <double> target = new _234Tree <double>(); target.Add(1); target.Add(2); target.Add(3); target.Clear(); Assert.IsNull(target.Root); }
// //You can use the following additional attributes as you write your tests: // //Use ClassInitialize to run code before running the first test in the class //[ClassInitialize()] //public static void MyClassInitialize(TestContext testContext) //{ //} // //Use ClassCleanup to run code after all tests in a class have run //[ClassCleanup()] //public static void MyClassCleanup() //{ //} // //Use TestInitialize to run code before running each test //[TestInitialize()] //public void MyTestInitialize() //{ //} // //Use TestCleanup to run code after each test has run //[TestCleanup()] //public void MyTestCleanup() //{ //} // #endregion /// <summary> ///A test for Add ///</summary> public void AddTestHelper <T>() { _234Tree <double> target = new _234Tree <double>(); double data = 3; target.Add(1); target.Add(2); target.Add(data); SearchResult actual = target.Contains(data); Assert.IsNotNull(actual.SearchPath); }