示例#1
0
        public void ApplicationInfoComparingTest()
        {
            ApplicationInfo info1 = new ApplicationInfo {
                Name = "proc1", PPID = 1231, EndTime = DateTime.Now
            };
            ApplicationInfo info2 = new ApplicationInfo {
                Name = "proc1", PPID = 1231
            };

            Assert.IsTrue(ApplicationInfo.AreEqualsByProcess(info1, info2));
            Assert.IsFalse(ApplicationInfo.AreEqual(info1, info2));
        }