/// <summary> ///LockFreeDictionary`2 构造函数 的测试 ///</summary> public void LockFreeDictionaryConstructorTestHelper <KeyT, ValueT>() { int iCapacity = 0; // TODO: 初始化为适当的值 LockFreeDictionary <KeyT, ValueT> target = new LockFreeDictionary <KeyT, ValueT>(iCapacity); Assert.Inconclusive("TODO: 实现用来验证目标的代码"); }
/// <summary> ///LockFreeDictionary`2 构造函数 的测试 ///</summary> public void LockFreeDictionaryConstructorTest1Helper <KeyT, ValueT>() { IDictionary <KeyT, ValueT> dictionary = null; // TODO: 初始化为适当的值 LockFreeDictionary <KeyT, ValueT> target = new LockFreeDictionary <KeyT, ValueT>(dictionary); Assert.Inconclusive("TODO: 实现用来验证目标的代码"); }
/// <summary> ///Clear 的测试 ///</summary> public void ClearTestHelper <KeyT, ValueT>() { LockFreeDictionary <KeyT, ValueT> target = new LockFreeDictionary <KeyT, ValueT>(); // TODO: 初始化为适当的值 target.Clear(); Assert.Inconclusive("无法验证不返回值的方法。"); }
/// <summary> ///Remove 的测试 ///</summary> public void RemoveTestHelper <KeyT, ValueT>() { LockFreeDictionary <KeyT, ValueT> target = new LockFreeDictionary <KeyT, ValueT>(); // TODO: 初始化为适当的值 KeyT key = default(KeyT); // TODO: 初始化为适当的值 target.Remove(key); Assert.Inconclusive("无法验证不返回值的方法。"); }
/// <summary> ///AddRange 的测试 ///</summary> public void AddRangeTestHelper <KeyT, ValueT>() { LockFreeDictionary <KeyT, ValueT> target = new LockFreeDictionary <KeyT, ValueT>(); // TODO: 初始化为适当的值 IEnumerable <KeyValuePair <KeyT, ValueT> > collection = null; // TODO: 初始化为适当的值 target.AddRange(collection); Assert.Inconclusive("无法验证不返回值的方法。"); }
/// <summary> ///ForEach 的测试 ///</summary> public void ForEachTestHelper <KeyT, ValueT>() { LockFreeDictionary <KeyT, ValueT> target = new LockFreeDictionary <KeyT, ValueT>(); // TODO: 初始化为适当的值 Action <KeyT, ValueT> action = null; // TODO: 初始化为适当的值 target.ForEach(action); Assert.Inconclusive("无法验证不返回值的方法。"); }
/// <summary> ///Count 的测试 ///</summary> public void CountTestHelper <KeyT, ValueT>() { LockFreeDictionary <KeyT, ValueT> target = new LockFreeDictionary <KeyT, ValueT>(); // TODO: 初始化为适当的值 int actual; actual = target.Count; Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> ///AddRange 的测试 ///</summary> public void AddRangeTest1Helper <KeyT, ValueT>() { LockFreeDictionary <KeyT, ValueT> target = new LockFreeDictionary <KeyT, ValueT>(); // TODO: 初始化为适当的值 IDictionary <KeyT, ValueT> dictionary = null; // TODO: 初始化为适当的值 target.AddRange(dictionary); Assert.Inconclusive("无法验证不返回值的方法。"); }
/// <summary> ///Add 的测试 ///</summary> public void AddTestHelper <KeyT, ValueT>() { LockFreeDictionary <KeyT, ValueT> target = new LockFreeDictionary <KeyT, ValueT>(); // TODO: 初始化为适当的值 KeyT key = default(KeyT); // TODO: 初始化为适当的值 ValueT value = default(ValueT); // TODO: 初始化为适当的值 target.Add(key, value); Assert.Inconclusive("无法验证不返回值的方法。"); }
/// <summary> ///GetEnumerator 的测试 ///</summary> public void GetEnumeratorTestHelper <KeyT, ValueT>() { LockFreeDictionary <KeyT, ValueT> target = new LockFreeDictionary <KeyT, ValueT>(); // TODO: 初始化为适当的值 IEnumerator <KeyValuePair <KeyT, ValueT> > expected = null; // TODO: 初始化为适当的值 IEnumerator <KeyValuePair <KeyT, ValueT> > actual; actual = target.GetEnumerator(); Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> ///ToArray 的测试 ///</summary> public void ToArrayTestHelper <KeyT, ValueT>() { LockFreeDictionary <KeyT, ValueT> target = new LockFreeDictionary <KeyT, ValueT>(); // TODO: 初始化为适当的值 KeyValuePair <KeyT, ValueT>[] expected = null; // TODO: 初始化为适当的值 KeyValuePair <KeyT, ValueT>[] actual; actual = target.ToArray(); Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> ///GetValue 的测试 ///</summary> public void GetValueTestHelper <KeyT, ValueT>() { LockFreeDictionary <KeyT, ValueT> target = new LockFreeDictionary <KeyT, ValueT>(); // TODO: 初始化为适当的值 KeyT key = default(KeyT); // TODO: 初始化为适当的值 ValueT expected = default(ValueT); // TODO: 初始化为适当的值 ValueT actual; actual = target.GetValue(key); Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> ///FindAll 的测试 ///</summary> public void FindAllTestHelper <KeyT, ValueT>() { LockFreeDictionary <KeyT, ValueT> target = new LockFreeDictionary <KeyT, ValueT>(); // TODO: 初始化为适当的值 Predicate <KeyT, ValueT> match = null; // TODO: 初始化为适当的值 KeyValuePair <KeyT, ValueT>[] expected = null; // TODO: 初始化为适当的值 KeyValuePair <KeyT, ValueT>[] actual; actual = target.FindAll(match); Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> ///Exists 的测试 ///</summary> public void ExistsTestHelper <KeyT, ValueT>() { LockFreeDictionary <KeyT, ValueT> target = new LockFreeDictionary <KeyT, ValueT>(); // TODO: 初始化为适当的值 Predicate <KeyT, ValueT> match = null; // TODO: 初始化为适当的值 bool expected = false; // TODO: 初始化为适当的值 bool actual; actual = target.Exists(match); Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> ///ContainsKey 的测试 ///</summary> public void ContainsKeyTestHelper <KeyT, ValueT>() { LockFreeDictionary <KeyT, ValueT> target = new LockFreeDictionary <KeyT, ValueT>(); // TODO: 初始化为适当的值 KeyT key = default(KeyT); // TODO: 初始化为适当的值 bool expected = false; // TODO: 初始化为适当的值 bool actual; actual = target.ContainsKey(key); Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> ///TryGetValue 的测试 ///</summary> public void TryGetValueTestHelper <KeyT, ValueT>() { LockFreeDictionary <KeyT, ValueT> target = new LockFreeDictionary <KeyT, ValueT>(); // TODO: 初始化为适当的值 KeyT key = default(KeyT); // TODO: 初始化为适当的值 ValueT value = default(ValueT); // TODO: 初始化为适当的值 ValueT valueExpected = default(ValueT); // TODO: 初始化为适当的值 bool expected = false; // TODO: 初始化为适当的值 bool actual; actual = target.TryGetValue(key, out value); Assert.AreEqual(valueExpected, value); Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> ///Find 的测试 ///</summary> public void FindTestHelper <KeyT, ValueT>() { LockFreeDictionary <KeyT, ValueT> target = new LockFreeDictionary <KeyT, ValueT>(); // TODO: 初始化为适当的值 Predicate <KeyT, ValueT> match = null; // TODO: 初始化为适当的值 KeyValuePair <KeyT, ValueT> findKeyValuePair = new KeyValuePair <KeyT, ValueT>(); // TODO: 初始化为适当的值 KeyValuePair <KeyT, ValueT> findKeyValuePairExpected = new KeyValuePair <KeyT, ValueT>(); // TODO: 初始化为适当的值 bool expected = false; // TODO: 初始化为适当的值 bool actual; actual = target.Find(match, out findKeyValuePair); Assert.AreEqual(findKeyValuePairExpected, findKeyValuePair); Assert.AreEqual(expected, actual); Assert.Inconclusive("验证此测试方法的正确性。"); }
/// <summary> ///LockFreeDictionary`2 构造函数 的测试 ///</summary> public void LockFreeDictionaryConstructorTest2Helper <KeyT, ValueT>() { LockFreeDictionary <KeyT, ValueT> target = new LockFreeDictionary <KeyT, ValueT>(); Assert.Inconclusive("TODO: 实现用来验证目标的代码"); }