/trunk/Demo.Mmose.Core.Test/ServerEngine/Entity/Item/RemovingSubItemCallEventArgsTest.cs
C# | 116 lines | 64 code | 8 blank | 44 comment | 0 complexity | 9a01a4965e6bb5f09c4853a9fa1a1984 MD5 | raw file
Possible License(s): LGPL-2.1
- using Demo.Mmose.Core.Entity.Item;
- using Microsoft.VisualStudio.TestTools.UnitTesting;
-
- namespace Demo.Mmose.Core.Test
- {
- /// <summary>
- ///这是 RemovingSubItemCallEventArgsTest 的测试类,旨在
- ///包含所有 RemovingSubItemCallEventArgsTest 单元测试
- ///</summary>
- [TestClass()]
- public class RemovingSubItemCallEventArgsTest
- {
- private TestContext testContextInstance;
- /// <summary>
- ///获取或设置测试上下文,上下文提供
- ///有关当前测试运行及其功能的信息。
- ///</summary>
- public TestContext TestContext
- {
- get { return testContextInstance; }
- set { testContextInstance = value; }
- }
-
- #region 附加测试属性
- //
- //编写测试时,还可使用以下属性:
- //
- //使用 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>
- ///RemoveSubItem 的测试
- ///</summary>
- public void RemoveSubItemTestHelper<T>()
- where T : BaseItem
- {
- T removeSubItem = default( T ); // TODO: 初始化为适当的值
- BaseItemContainer<T> itemContainerT = null; // TODO: 初始化为适当的值
- RemovingSubItemCallEventArgs<T> target = new RemovingSubItemCallEventArgs<T>( removeSubItem, itemContainerT ); // TODO: 初始化为适当的值
- T actual;
- actual = target.RemoveSubItem;
- Assert.Inconclusive( "验证此测试方法的正确性。" );
- }
-
- [TestMethod()]
- public void RemoveSubItemTest()
- {
- Assert.Inconclusive( "没有找到能够满足 T 的类型约束的相应类型参数。请以适当的类型参数来调用 RemoveSubItemTestHelper<T>()。" );
- }
-
- /// <summary>
- ///IsCancel 的测试
- ///</summary>
- public void IsCancelTestHelper<T>()
- where T : BaseItem
- {
- T removeSubItem = default( T ); // TODO: 初始化为适当的值
- BaseItemContainer<T> itemContainerT = null; // TODO: 初始化为适当的值
- RemovingSubItemCallEventArgs<T> target = new RemovingSubItemCallEventArgs<T>( removeSubItem, itemContainerT ); // TODO: 初始化为适当的值
- bool expected = false; // TODO: 初始化为适当的值
- bool actual;
- target.IsCancel = expected;
- actual = target.IsCancel;
- Assert.AreEqual( expected, actual );
- Assert.Inconclusive( "验证此测试方法的正确性。" );
- }
-
- [TestMethod()]
- public void IsCancelTest()
- {
- Assert.Inconclusive( "没有找到能够满足 T 的类型约束的相应类型参数。请以适当的类型参数来调用 IsCancelTestHelper<T>()。" );
- }
-
- /// <summary>
- ///RemovingSubItemCallEventArgs`1 构造函数 的测试
- ///</summary>
- public void RemovingSubItemCallEventArgsConstructorTestHelper<T>()
- where T : BaseItem
- {
- T removeSubItem = default( T ); // TODO: 初始化为适当的值
- BaseItemContainer<T> itemContainerT = null; // TODO: 初始化为适当的值
- RemovingSubItemCallEventArgs<T> target = new RemovingSubItemCallEventArgs<T>( removeSubItem, itemContainerT );
- Assert.Inconclusive( "TODO: 实现用来验证目标的代码" );
- }
-
- [TestMethod()]
- public void RemovingSubItemCallEventArgsConstructorTest()
- {
- Assert.Inconclusive( "没有找到能够满足 T 的类型约束的相应类型参数。请以适当的类型参数来调用 RemovingSubItemCallEventArgsConstructorTestH" +
- "elper<T>()。" );
- }
- }
- }