/// <summary> ///Clear 的测试 ///</summary> public void ClearTestHelper <KeyT>() { LockFreeHashSet <KeyT> target = new LockFreeHashSet <KeyT>(); // TODO: 初始化为适当的值 target.Clear(); Assert.Inconclusive("无法验证不返回值的方法。"); }
/// <summary> ///LockFreeHashSet`1 构造函数 的测试 ///</summary> public void LockFreeHashSetConstructorTestHelper <KeyT>() { IEnumerable <KeyT> collection = null; // TODO: 初始化为适当的值 LockFreeHashSet <KeyT> target = new LockFreeHashSet <KeyT>(collection); Assert.Inconclusive("TODO: 实现用来验证目标的代码"); }
/// <summary> ///UnionWith 的测试 ///</summary> public void UnionWithTestHelper <KeyT>() { LockFreeHashSet <KeyT> target = new LockFreeHashSet <KeyT>(); // TODO: 初始化为适当的值 IEnumerable <KeyT> other = null; // TODO: 初始化为适当的值 target.UnionWith(other); Assert.Inconclusive("无法验证不返回值的方法。"); }
// //编写测试时,还可使用以下属性: // //使用 ClassInitialize 在运行类中的第一个测试前先运行代码 //[ClassInitialize()] //public static void MyClassInitialize(TestContext testContext) //{ //} // //使用 ClassCleanup 在运行完类中的所有测试后再运行代码 //[ClassCleanup()] //public static void MyClassCleanup() //{ //} // //使用 TestInitialize 在运行每个测试前先运行代码 //[TestInitialize()] //public void MyTestInitialize() //{ //} // //使用 TestCleanup 在运行完每个测试后运行代码 //[TestCleanup()] //public void MyTestCleanup() //{ //} // #endregion /// <summary> ///Count 的测试 ///</summary> public void CountTestHelper <KeyT>() { LockFreeHashSet <KeyT> target = new LockFreeHashSet <KeyT>(); // TODO: 初始化为适当的值 int actual; actual = target.Count; Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> ///Add 的测试 ///</summary> public void AddTestHelper <KeyT>() { LockFreeHashSet <KeyT> target = new LockFreeHashSet <KeyT>(); // TODO: 初始化为适当的值 KeyT key = default(KeyT); // TODO: 初始化为适当的值 target.Add(key); Assert.Inconclusive("无法验证不返回值的方法。"); }
/// <summary> ///AddRange 的测试 ///</summary> public void AddRangeTestHelper <KeyT>() { LockFreeHashSet <KeyT> target = new LockFreeHashSet <KeyT>(); // TODO: 初始化为适当的值 IEnumerable <KeyT> collection = null; // TODO: 初始化为适当的值 target.AddRange(collection); Assert.Inconclusive("无法验证不返回值的方法。"); }
/// <summary> ///ToArrayAndClear 的测试 ///</summary> public void ToArrayAndClearTestHelper <KeyT>() { LockFreeHashSet <KeyT> target = new LockFreeHashSet <KeyT>(); // TODO: 初始化为适当的值 KeyT[] expected = null; // TODO: 初始化为适当的值 KeyT[] actual; actual = target.ToArrayAndClear(); Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> ///GetEnumerator 的测试 ///</summary> public void GetEnumeratorTestHelper <KeyT>() { LockFreeHashSet <KeyT> target = new LockFreeHashSet <KeyT>(); // TODO: 初始化为适当的值 IEnumerator <KeyT> expected = null; // TODO: 初始化为适当的值 IEnumerator <KeyT> actual; actual = target.GetEnumerator(); Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> ///Contains 的测试 ///</summary> public void ContainsTestHelper <KeyT>() { LockFreeHashSet <KeyT> target = new LockFreeHashSet <KeyT>(); // TODO: 初始化为适当的值 KeyT key = default(KeyT); // TODO: 初始化为适当的值 bool expected = false; // TODO: 初始化为适当的值 bool actual; actual = target.Contains(key); Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> ///IsProperSubsetOf 的测试 ///</summary> public void IsProperSubsetOfTestHelper <KeyT>() { LockFreeHashSet <KeyT> target = new LockFreeHashSet <KeyT>(); // TODO: 初始化为适当的值 IEnumerable <KeyT> other = null; // TODO: 初始化为适当的值 bool expected = false; // TODO: 初始化为适当的值 bool actual; actual = target.IsProperSubsetOf(other); Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> ///RemoveWhere 的测试 ///</summary> public void RemoveWhereTestHelper <KeyT>() { LockFreeHashSet <KeyT> target = new LockFreeHashSet <KeyT>(); // TODO: 初始化为适当的值 Predicate <KeyT> match = null; // TODO: 初始化为适当的值 int expected = 0; // TODO: 初始化为适当的值 int actual; actual = target.RemoveWhere(match); Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> ///LockFreeHashSet`1 构造函数 的测试 ///</summary> public void LockFreeHashSetConstructorTest1Helper <KeyT>() { LockFreeHashSet <KeyT> target = new LockFreeHashSet <KeyT>(); Assert.Inconclusive("TODO: 实现用来验证目标的代码"); }