Ejemplo n.º 1
0
        public void ContainsWithSinglePattern()
        {
            ProcessFilter f = new ProcessFilter("session");

            Assert.AreEqual(true, f.Contains("RBCWSSession"));
            Assert.AreEqual(true, f.Contains("some session server"));
            Assert.AreEqual(false, f.Contains("Quake"));
            Assert.AreEqual(false, f.Contains(""));
        }
Ejemplo n.º 2
0
        public void ContainsWithMultiplePatterns()
        {
            ProcessFilter f = new ProcessFilter("Session,UserInfo");

            Assert.AreEqual(true, f.Contains("RBCWSUserInfo"));
            Assert.AreEqual(true, f.Contains("Some Session Server"));
            Assert.AreEqual(true, f.Contains("Some Userinfo App"));
            Assert.AreEqual(false, f.Contains("Quake"));
            Assert.AreEqual(false, f.Contains(""));
        }