Example #1
0
        public void NullNamespaceNullText()
        {
            var handler = new Eio3Handler();
            var result  = handler.CheckConnection(null, null);

            Assert.IsFalse(result.Result);
            Assert.IsNull(result.Id);
        }
Example #2
0
        public void WrongNamespace()
        {
            var handler = new Eio3Handler();
            var result  = handler.CheckConnection("/test", "/nsp,");

            Assert.IsFalse(result.Result);
            Assert.IsNull(result.Id);
        }
Example #3
0
        public void CorrectNamespaceTextEndsWithoutComma()
        {
            var handler = new Eio3Handler();
            var result  = handler.CheckConnection("/test", "/test");

            Assert.IsTrue(result.Result);
            Assert.IsNull(result.Id);
        }
Example #4
0
        public void NullNamespaceEmptyText()
        {
            var handler = new Eio3Handler();
            var result  = handler.CheckConnection(null, string.Empty);

            Assert.IsTrue(result.Result);
            Assert.IsNull(result.Id);
        }