| 1234567891011121314151617181920 |
- using Microsoft.VisualStudio.TestTools.UnitTesting;
- using NTMiner;
- using System.IO;
- namespace UnitTests {
- [TestClass]
- public class LocalMessageTests {
- [TestMethod]
- public void BenchmarkTest() {
- File.Delete(VirtualRoot.LocalMessageDbFileFullName);
- int times = 2000;
- Assert.IsTrue(times > NTKeyword.LocalMessageSetCapacity);
- string content = "this is a test";
- for (int i = 0; i < times; i++) {
- VirtualRoot.ThisLocalInfo(nameof(LocalMessageTests), content);
- }
- Assert.IsTrue(VirtualRoot.LocalMessages.Count == NTKeyword.LocalMessageSetCapacity);
- }
- }
- }
|