| 123456789101112131415161718192021222324252627282930313233 |
- using Component;
- using Microsoft.VisualStudio.TestTools.UnitTesting;
- namespace WorldTest
- {
- [TestClass]
- public class BuffManagerTest
- {
- private TestContext testContextInstance;
- public TestContext TestContext
- {
- get
- {
- return this.testContextInstance;
- }
- set
- {
- this.testContextInstance = value;
- }
- }
- [TestMethod]
- public void TestAdd()
- {
- var buffManager = new BuffManager();
- var buff = new Buff { Type = 1 };
- buffManager.Add(buff);
- var getBuff = buffManager.GetById(buff.Id);
- Assert.AreSame(buff, getBuff);
- }
- }
- }
|